Hi ,
I am a newbie to logstash and configured the logstash.conf as follows:
input {
file
{
path => "C:\log4j\log.out"
start_position => "beginning"
}
}
filter {
grok {
match => { "message" => "%{COMBINEDAPACHELOG} " }
}
date {
match => [ "timestamp" , "dd/MMM/yyyy:HH:mm:ss Z" ]
}
}
output {
elasticsearch { hosts => ["localhost:9200"] }
stdout { codec => rubydebug }
}
My log file is as follows: I am trying to test with the log files to have a working model.
2016-02-42 14:26:15 INFO HelloNew:26 - Hello World
2016-02-42 14:26:15 DEBUG HelloNew:27 - Temperature set to {}. Old temperature was {}.
2016-02-43 14:11:27 INFO HelloNew:26 - Hello World
2016-02-43 14:11:27 DEBUG HelloNew:27 - Temperature set to {}. Old temperature was {}.
I am not seeing the stdout at all indicating it is parsed.
A couple of days ago, I was able to get it working with logs in an external drive log file.
Elastisearch is communicating properly with logstash.
I have logstash 2.2.0 the latest along with latest elastisearch.
Please help