I am doing my first example of logstash located in the Documents and I am not getting a proper curl output from querying "200" from the apache log tutorial.log file
I have configured my config file correctly(tripled checked). My --configtest ran fine. And so did the: bin/logstash -f first-pipeline.conf
And when I issue: curl -XGET 'localhost:9200/alerts/_search?q=response=200'
I get the following message:
The only problem I could think of is I am querying the wrong index. But when you issue the -f first-pipeline.conf which index do we know it went too when we point the config file to a specific file location?
I have two indexes (.kibana and alerts). Any help on how to correctly curl the output of an apache log.
Here is my config file just in case you are wondering:
And than I just hang there with a blinking cursor. So now I ran a simple config file with logstash using stdin and stdout and it works fine. But what I realized was that as I go through the steps of adding input..filter..output in the apache log example I do not once get an output I just get the same Logstash startup completed message at each step of the way. Let me know if you need anymore details.
I had two .sincedb files at the same time. Deleted but I am still getting a blinking cursor when I issue the following:
HOME_NET/bin/logstash -f first-pipeline.conf
I would agree with you that the sincedb was part of the issue. Also, unless It takes more than a few minutes for logstash to log a apache log the problem still persists. (Imagine the cursor is blink on the next line)
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.