Hi I am using filebeat to send beats to logstash,
Able to see in the logs of filebeat that event is generated after reading the file but ,not able to view the logs of logstash whether event is reaching to to logstash so to the elasticsearch.
Syslog evetns are getting processed but not tomcat log event.
filter {
if [type] == "syslog" {
grok {
match => { "message" => "%{SYSLOGTIMESTAMP:syslog_timestamp} %{SYSLOGHOST:syslog_hostname} %{DATA:syslog_program}(?:[%{POSINT:syslog_pid}])?: %{GREEDYDATA:syslog_message}" }
add_field => [ "received_at", "%{@timestamp}" ]
add_field => [ "received_from", "%{host}" ]
}
syslog_pri { }
date {
match => [ "syslog_timestamp", "MMM d HH:mm:ss", "MMM dd HH:mm:ss" ]
}
}
if [type] == "tomcat_log" {
grok{
match=>{"message" => "%{TIMESTAMP_ISO8601:date} %{LOGLEVEL:level} %{DATA:controller}:%{NUMBER} - %{DATA:log} [%{NUMBER:processTime}] ms"}
}
if "_grokparsefailure" in [tags] {
drop {}
}
}
}