Private
Private

Reputation: 1761

logstash config file execution error?

I created a config and saved in bin directory of logstash and wanted to use the config file my giving cmd like this in windows 32

C:\Users\5897852\Desktop\logstash-5.1.1\bin>logstash -f "C:\Users\5897852\Desktop\logstash-5.1.1\bin\logstash.conf"

i got an error like this:

[2016-12-29T17:51:47,591][INFO ][logstash.agent ] No config files found in path {:path=>"C:/Users/571952/Desktop/logstash-5.1.1/bin/logstash.conf"} [2016-12-29T17:51:47,607][ERROR][logstash.agent ] failed to fetch pipeline conf iguration {:message=>"No config files found: C:\Users\571952\Desktop\logstash-5.1.1\ bin\logstash.conf.

Can you make sure this path is a logstash config file?"}

Upvotes: 0

Views: 689

Answers (1)

Kulasangar
Kulasangar

Reputation: 9434

When you're running logstash in Windows, you need to use the forward slash "/" instead of the normal backslash "\", when you're pointing the path to the logstash config file.

Try running it as:

logstash -f "C:/Users/5897852/Desktop/logstash-5.1.1/bin/logstash.conf"

And also make sure that you've given the necessary permissions to the conf file in order to execute.

Upvotes: 0

Related Questions