title: Filebeat is not creating index in Elasticsearch
body: <p>I'm setting up Filebeat to send logs to Elasticsearch. This is my <code>filebeat.yml</code>:</p>
  
  <pre><code>filebeat.prospectors:
  - type: log
    paths:
    - '/var/log/project/*.log'
    json.message_key: message
  
  output.elasticsearch:
    hosts: ["localhost:9200"]
  </code></pre>
  
  <p>I have this file <code>/var/log/project/test.log</code> with this content:</p>
  
  <pre><code>{ "message": "This is a test" }
  </code></pre>
  
  <p>and I was expecting this log to be sent to Elasticsearch. Elasticsearch is running in a Docker container in localhost at 9200. </p>
  
  <p>When I run filebeat (Docker), no index is created in Elasticsearch. So, in Kibana, I don't see any data.</p>
  
  <p>Why is that? Isn't supposed that Filebeat creates index automatically?</p>