I need to parse event and time separated by tab using the date filter in logstash, but logstash failed to identify tab and gives an error
grok{
patterns_dir => ["./patterns"]
match => { "message" => "%{TIMEFORMAT:eventtime}\t%{WORD:typedata}\t%{WORD:loglevel}\t%{TIME}\t%{HOSTNAME:hostmachine}\t%{GREEDYDATA:serviceinfo}\t%{SERVMSG}" }
}
date{
match=>["eventtime","yyyy-MM-dd\tHH:mm:ss"]
}
}
TIMEFORMAT %{YEAR}-%{MONTHNUM}-%{MONTHDAY}\t%{TIME}
COMP %{WORD:componenttype}\t%{GREEDYDATA:logmessage}
SERVMSG %{COMP}|\t%{GREEDYDATA:logmessage}
SERVICEDATA %{WORD:environment}\\%{GREEDYDATA:machine}\|%{POSINT:PID}\|%{GREEDYDATA:service}
"Unable to configure plugins: Illegal pattern component: t"
So, How can I create the mapping for eventtime to date in logstash?