8000 Grep filter not accepting Regex that works in Rubular · Issue #502 · fluent/fluent-bit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Grep filter not accepting Regex that works in Rubular #502
Closed
@StevenACoffman

Description

@StevenACoffman

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]*$

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0