Hi
We are using grok to parse the audit.logs . The grok pattern is correct ( verified in grok debugger ) . The configuration seems to be working perfectly after restart, but on the Kibana, the message still aren't parsed. Everything comes in one line.
Any help would be appreciated. This is the current fluentd configuration side
<source>
type config_expander
<config>
type tail
format none
path /var/log/audit/audit.log
pos_file /var/log/td-agent/tmp/audit.log.pos
tag sys.test
</config>
format grok_pure
grok_pattern type=%{WORD:audit_type} msg=audit\(%{NUMBER:audit_epoch}:%{NUMBER:audit_counter}\): pid=%{NUMBER:audit_pid} uid=%{NUMBER:audit_uid} auid=%{NUMBER:audit_auid} ses=%{NUMBER:audit_ses} msg=%{GREEDYDATA:audit_message}
grok_pattern_path /etc/td-agent/plugin/fluent-plugin-grok-parser/patterns/grok-patterns
</source>
<match sys.*>
type forest
subtype copy
<template>
<store>
type elasticsearch
logstash_format true
host 192.168.25.100
port 9200
</store>
</template>
</match>