Closed
Description
We use fluent-bit in kubernetes and wish to omit unstructured logs.
I have a regular expression that works in rubular here.
However, when I run it with fluent-bit (0.13-dev branch) I get:
[2018/02/04 17:36:40] [error] [filter_grep]: Failed to compile regex: Invalid regular expression
This is the configuration I am using:
[INPUT]
Name tail
Tag kube.*
Path /var/log/containers/*.log
Parser docker
DB /var/log/flb_kube.db
Mem_Buf_Limit 5MB
Skip_Long_Lines On
Refresh_Interval 10
[FILTER]
Name grep
Match kube.*
Regex log ^[^\{]*(\{.*\})[^\s]*$