Hey.
I have the following configuration:
filter {
grok {
match => {
"message" => "%{TIMESTAMP_ISO8601:event_timestamp}%{SPACE}%{DATA:log_level}%{SPACE}\[%{DATA:host}\]%{SPACE}\[%{DATA:tenant}\]%{SPACE}\[%{DATA:java_class}\]%{SPACE}-%{SPACE}<SchedulerTaskRunLog \[jobName=%{DATA:task}, tenantId=%{DATA:tenant}, startTime=%{TIMESTAMP_ISO8601:task_start_time}, endTime=%{TIMESTAMP_ISO8601:task_end_time}, status=%{DATA:status}, description=%{GREEDYDATA:text}\]>"
"path" => "%{GREEDYDATA:filename}"
}
add_tag => ["scheduled_task1", "processed"]
}
The problem is that the tags are being added even if there was no match.
I know there was no match because I take the event message from Kibana and uses the grok debugger with the same grok pattern and get an error.
Also, I don't see any of my parsed fields in the event.
Another thing is that according to the Kibana 100% of the events have the "scheduled_task1" tag. this is bad...
I will very much appreciate any ideas.
Thank you!