For ElasticSearch, We have to update elasticsearch configuration file.
$ cat /etc/elasticsearch/elasticsearch.yml
# Cluster name identifies your cluster for auto-discovery. If you're running# multiple clusters on the same network, make sure you're using unique names.
cluster.name: Gateway
# Note, that for development on a local machine, with small indices, it usually# makes sense to "disable" the distributed features:
index.number_of_shards: 1
index.number_of_replicas: 0
# Allow to create logstash index
action.auto_create_index: logstash-*