What is wrong with my logstash conf?

Hello,
I installed a new Windows instance that is running parrallel to my Linux Cluster.

The Problem:
The following .conf file works perfectly on Linux, but not on Windows:

input {
  file {
        path => [ "C:\Elastic-Stack\logstash-tutorial.log" ]
        start_position => "beginning"
  }
}

output {
  elasticsearch {
    hosts => "http://IP:9200"
    user => 'user'
    password => pass
    index => "logstash-%{+yyyy.MM.dd}-tutorial.data"
    }
}

My Linux VM shows the index seconds after starting logstash(NOTE: The path is a different one, of course) but my windows kibana server does not receive any data at all. I tried multiple files but the problem should be somewhere else. I hope.

Use forward slashes in your input configuration for Windows.

path => [ "C:/Elastic-Stack/logstash-tutorial.log" ]

Somestimes it can be as easy as that.
Thank you very much.

1 Like

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