I am trying to run logstash as a container on marathon framework (DCOS) taking input from Kafka .
the marathon json file fetches the uri from gist which has the logstash.conf file . I can also see the conf file in the sandbox. But logstash is not able to load the conf flie .
this is the json file for launching logstash
Starting task logstash.1fb3452b-f2db-11e5-a4e9-0242355bdcac
Error: No config files found: /logstash.conf
Can you make sure this path is a logstash config file?
@Shashi_Ravula how can you resolved your probleme.i still have the same error.
C:\logstash-5.4.0\bin>logstash -f sample.conf
Could not find log4j2 configuration at path /logstash-5.4.0/config/log4j2.properties. Using default config which logs to console
14:11:58.149 [LogStash::Runner] INFO logstash.agent - No config files found in path {:path=>"C:/logstash-5.4.0/bin/sample.conf"}
14:11:58.154 [LogStash::Runner] ERROR logstash.agent - failed to fetch pipeline configuration {:message=>"No config files found: sample.conf. Can you make sure this path is a logstash config file?"}
and this is config file:
input { stdin { } }
output {
elasticsearch { hosts => ["localhost:9200"] }
stdout { codec => rubydebug }
}
thank you for your help.
@baha1, it seems that sample.conf is not in the C:\logstash-5.4.0\bin directory. Where is it? You should perhaps specify a full path to the configuration file, e.g. logstash -f C:\path\to\sample.conf
@theuntergeek thank you so match for your answer.i have the file sample.conf in C:\logstash-5.4.0\bin\sample.conf.
that what i excute in cmd commande:
C:\logstash-5.4.0\bin>logstash -f sample.conf
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.