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:
{"took":3,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":
{"total":0,"max_score":null,"hits":[]}}
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:
input {
file {
path => "/home/suricata/logstash-tutorial.log"
start_position => beginning
}
}
filter {
grok {
match => { "message" => "%{COMBINEDAPACHELOG}"}
}
geoip {
source=> "clientip"
}
}
output {
elasticsearch {}
stdout {}
}