0
votes

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?"}

1
How does your conf look like? And are you sure you've got the exact name of the conf file when you're executing it? - Kulasangar
yeah,i created logstash.config and saved in bin directory of logstash-5.1.1 - Private
actually the code is wrong in logstash.conf file thats why it shown error - Private
so i changed the code it worked fine.. - Private
Was that the config path you missed out? - Kulasangar

1 Answers

0
votes

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.