fluent-plugin-grok-parser
fluent-plugin-grok-parser copied to clipboard
Seems like field's type is not counted by this plugin.
Even though I am providing grokked field with type as follow:
%{NUMBER:response:integer}
It appears in EFK as type string.
Though no errors in fluentd's logs etc.
It seems like it's being ignored at all.
Any bits of advice on how can it be overcome?
root@fluentd-fluentd-elasticsearch-jpcqh:/# fluentd --version
fluentd 1.3.3
Sorry for the delay. Do you have the raw logs?
I tested the following configuration, but I could not reproduce your situation.
<source>
@type dummy
tag dummy
dummy [
{"message": "500 This is test"},
{"message": "404 This is test"},
{"message": "302 This is test"},
{"message": "200 This is test"}
]
</source>
<filter dummy>
@type parser
key_name message
<parse>
@type grok
<grok>
pattern %{NUMBER:response:integer} %{GREEDYDATA:msg}
</grok>
</parse>
</filter>
<match dummy>
@type stdout
</match>