Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot seem to add a custom parser to the parsers conf of fluentd #141

Open
punkle opened this issue Jun 21, 2023 · 1 comment
Open

Cannot seem to add a custom parser to the parsers conf of fluentd #141

punkle opened this issue Jun 21, 2023 · 1 comment

Comments

@punkle
Copy link

punkle commented Jun 21, 2023

The following error appears when starting fluentd. It continues to start up fine however it does not seem to continue to configure any custom parsers that come after it.

[2023/06/21 15:18:14] [error] [parser:container_firstline] Invalid regex pattern (?<log>(?<="log":")\S(?!\.).*?)(?<!\)".*(?<stream>(?<="stream":").*?)".*(?<time>\d{4}-\d{1,2}-\d{1,2}T\d{2}:\d{2}:\d{2}\.\w*).*(?=})

It seems to be configured here https://github.com/aws-samples/amazon-cloudwatch-container-insights/blob/main/k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring/fluent-bit/fluent-bit.yaml#L229

@omidraha
Copy link

Same issue, I used fluent-bit.yaml mentioned here.

Info:

kubectl logs fluent-bit-4bqlk  -n amazon-cloudwatch -f
Fluent Bit v1.9.10
* Copyright (C) 2015-2022 The Fluent Bit Authors
* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
* https://fluentbit.io

[2023/08/31 19:43:28] [error] [parser:container_firstline] Invalid regex pattern (?<log>(?<="log":")\S(?!\.).*?)(?<!\)".*(?<stream>(?<="stream":").*?)".*(?<time>\d{4}-\d{1,2}-\d{1,2}T\d{2}:\d{2}:\d{2}\.\w*).*(?=})
[2023/08/31 19:43:28] [ info] [fluent bit] version=1.9.10, commit=1f4d09e087, pid=1
[2023/08/31 19:43:28] [ info] [storage] created root path /var/fluent-bit/state/flb-storage/
[2023/08/31 19:43:28] [ info] [storage] version=1.3.0, type=memory+filesystem, sync=normal, checksum=disabled, max_chunks_up=128
[2023/08/31 19:43:28] [ info] [storage] backlog input plugin: storage_backlog.0
[2023/08/31 19:43:28] [ info] [cmetrics] version=0.3.7
[2023/08/31 19:43:28] [ info] [input:storage_backlog:storage_backlog.0] queue memory limit: 4.8M
[2023/08/31 19:43:28] [ info] [sp] stream processor started

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants