Logstash In Windowsn not Pushing logs to kibana

Hi guys,

  • I wanted to install logstash in windows 2019 server as my server is in AWS and my ES domain is also in AWS. Im directly using logsatsh to transfer logs to ES end point.

  • This is my logstash.conf file

input {
  file {
    path  => "C:\testlog.log"
    start_position => "beginning"
  }
}
filter {
    if [message] =~ /{.*}/ {
        grok { match => { "message" => "(?<[@metadata][json]>({.*}))"} }
        json { source => "[@metadata][json]" remove_field => [ "message" ] }
    }
}

output {	
  amazon_es {
    hosts => ["***********************************************"]
    region => "*****"
    index => "lgst-demologs-%{+YYYY.MM.dd}"
    #user => "elastic"
    #password => "changeme"
  }
}
  • When i run this command c:\logstash\bin\logstash.bat -f c:\logstash\bin\logstash.conf

  • I am getting the result as Logstash endpoint successfully started

  • But when i check in Kibana there is no logs been pushed or even index created and im not even getting any errors

Pls help me out

Do not use backslash in the path option of a file input, it is treated as an escape. Use forward slash.

1 Like

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