FileBeat not Creating New Index in Elasticsearch

After Changing it to
hosts: [ "localhost:9200" ]

From Original- without space after bracket it started working ,and also changed the location of Log Directory

  hosts: ["localhost:9200"]