title: Logstash not reading file input using docker-compose.yaml file
body: <p>logstash.conf file:</p>
  
  <pre><code> input {
  
   file {
      type =&gt; "java"
      path =&gt; "/elk/spring-boot-elk.log"
      start_position =&gt; "beginning"
    }
  }
  
  
  filter {
    #If log line contains tab character followed by 'at' then we will tag that entry as 
  stacktrace
    if [message] =~ "\tat" {
      grok {
        match =&gt; ["message", "^(\tat)"]
        add_tag =&gt; ["stacktrace"]
      }
    }
  
  }
  
  output { 
    stdout {
      codec =&gt; rubydebug
    }
  
    # Sending properly parsed log events to elasticsearch
    elasticsearch {
      hosts =&gt; ["elasticsearch:9200"]
    }
  }
  </code></pre>
  
  <p><code>docker-compose.yaml</code> file:</p>
  
  <pre><code>version: "3"
  services:
    elasticsearch:
      image: elasticsearch:7.5.2
      ports: 
      - "9200:9200"
      - "9300:9300"
      environment:
      - discovery.type=single-node
    kibana:
      image: kibana:7.5.2
      ports:
      - "5601:5601"
      links:
      - elasticsearch
      depends_on:
      - elasticsearch
    logstash:
      image: logstash:7.5.2
      links:
      - elasticsearch
      volumes:
      - ./:/config-dir
      command: logstash -f /config-dir/logstash.conf
      depends_on:
      - elasticsearch
  </code></pre>
  
  <p>All containers are running but there is no data present on <code>kibana</code>. </p>
  
  <p>I think the issue is with <code>logstash</code>. </p>
  
  <blockquote>
  <pre><code>[2020-04-26T16:37:44,502][WARN ][logstash.outputs.elasticsearch] You are using a deprecated config setting "document_type" set in elasticsearch. Deprecated settings will continue to work, but are scheduled for removal from logstash in the future. Document types are being deprecated in Elasticsearch 6.0, and removed entirely in 7.0. You should avoid this feature If you have any questions about this, please visit the #logstash channel on freenode irc. {:name=&gt;"document_type", :plugin=&gt;&lt;LogStash::Outputs::ElasticSearch bulk_path=&gt;"/_monitoring/bulk?system_id=logstash&amp;system_api_version=7&amp;interval=1s", hosts=&gt;[http://elasticsearch:9200], sniffing=&gt;false, manage_template=&gt;false, id=&gt;"7d7dfa0f023f65240aeb31ebb353da5a42dc782979a2bd7e26e28b7cbd509bb3", document_type=&gt;"%{[@metadata][document_type]}", enable_metric=&gt;true, codec=&gt;&lt;LogStash::Codecs::Plain id=&gt;"plain_1a08e50c-ae97-4f38-a5b7-7aa70df94f4a", enable_metric=&gt;true, charset=&gt;"UTF-8"&gt;, workers=&gt;1, template_name=&gt;"logstash", template_overwrite=&gt;false, doc_as_upsert=&gt;false, script_type=&gt;"inline", script_lang=&gt;"painless", script_var_name=&gt;"event", scripted_upsert=&gt;false, retry_initial_interval=&gt;2, retry_max_interval=&gt;64, retry_on_conflict=&gt;1, ilm_enabled=&gt;"auto", ilm_rollover_alias=&gt;"logstash", ilm_pattern=&gt;"{now/d}-000001", ilm_policy=&gt;"logstash-policy", action=&gt;"index", ssl_certificate_verification=&gt;true, sniffing_delay=&gt;5, timeout=&gt;60, pool_max=&gt;1000, pool_max_per_route=&gt;100, resurrect_delay=&gt;5, validate_after_inactivity=&gt;10000, http_compression=&gt;false&gt;}
  [2020-04-26T16:37:44,544][INFO ][logstash.outputs.elasticsearch] Elasticsearch pool URLs updated {:changes=&gt;{:removed=&gt;[], :added=&gt;[http://elasticsearch:9200/]}}
  [2020-04-26T16:37:44,550][WARN ][logstash.outputs.elasticsearch] Restored connection to ES instance {:url=&gt;"http://elasticsearch:9200/"}
  [2020-04-26T16:37:44,555][INFO ][logstash.outputs.elasticsearch] ES Output version determined {:es_version=&gt;7}
  [2020-04-26T16:37:44,555][WARN ][logstash.outputs.elasticsearch] Detected a 6.x and above cluster: the `type` event field won't be used to determine the document _type {:es_version=&gt;7}
  [2020-04-26T16:37:44,586][INFO ][logstash.outputs.elasticsearch] New Elasticsearch output {:class=&gt;"LogStash::Outputs::ElasticSearch", :hosts=&gt;["http://elasticsearch:9200"]}
  [2020-04-26T16:37:44,597][INFO ][logstash.javapipeline    ] Starting pipeline {:pipeline_id=&gt;".monitoring-logstash", "pipeline.workers"=&gt;1, "pipeline.batch.size"=&gt;2, "pipeline.batch.delay"=&gt;50, "pipeline.max_inflight"=&gt;2, "pipeline.sources"=&gt;["monitoring pipeline"], :thread=&gt;"#&lt;Thread:0x61a1055 run&gt;"}
  [2020-04-26T16:37:44,636][INFO ][logstash.javapipeline    ] Pipeline started {"pipeline.id"=&gt;".monitoring-logstash"}
  [2020-04-26T16:37:44,654][INFO ][logstash.agent           ] Pipelines running {:count=&gt;2, :running_pipelines=&gt;[:main, :".monitoring-logstash"], :non_running_pipelines=&gt;[]}
  [2020-04-26T16:37:44,899][INFO ][logstash.agent           ] Successfully started Logstash API endpoint {:port=&gt;9600}
  </code></pre>
  </blockquote>