Hi Mates,
Can anyone please tell me, why I got "_grokparsefailure" while reading logs from file? My logs look like this:
2016-01-27T21:17:31+01:00 10.1.2.132 %ASA-1-302013: Built outbound TCP connection 890918059 for test:10.3.3.54/2222 (10.3.3.54/2222) to inside:192.24.3.103/62065 (192.24.3.103/62065)
I have searched forum and google and I found out that grok thinks that it's not a "syslog style" log. But it is (at least it is a file saved by rsyslog on CentOS 7 so I assume that it's compatible with RFC).
My grok filter:
filter {
if [type] == "syslog" {
grok {
match => { "message" => "<%{POSINT:syslog_pri}>%{SYSLOGTIMESTAMP:syslog_timestamp} %{SYSLOGHOST:syslog_hostname} %{DATA:syslog_program}(?:[%{POSINT:syslog_pid}])?: %{GREEDYDATA:syslog_message}" }
}
}
}