Logstash loads the log file at initial run. But when the logfile is updated it does not show in Kibana

Hello.

I'm new to logstash

  • Logstash, ElasticSearch and Kibana are running in docker container on windows machine on same network.
  • Springboot microservice logs to a log file - which is configured for logstash
  • When i start the Logstash container - it pull the log file for the first time and shows in Kibana
  • But when the log file is appended with additional logs from the spring boot application, kibana does not shows the latest logs.

Here is my logstash.conf

input {
  file {
    path => "/usr/share/logstash/pipeline/data/contacts-ws.log"
    start_position => "beginning"
    sincedb_path => "/dev/null"
  }
}

output {
  elasticsearch {
    hosts => ["192.168.1.244:9200"] 
    index => "contacts"
    document_type => "order_status"
  }
  stdout { codec => rubydebug }
}

Thanks for the Help.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.