Logs Filtering not working with grep and exclude #10050
ritik872000
started this conversation in
General
Replies: 1 comment
-
Easiest way is to provide a simple reproducer: you can easily use dummy input and stdout output to generate this test case. I'm imagining something in your regex or config is not quite right but without actual examples it's hard to say. Ultimately regex exclude does work so need to debug your specific usage. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I have a service running on ECS and I am using fluent bit to collect logs and send to datadogs and I want to prevent health check logs, check below
"GET /api/v1.0/health completed successfully. Status:200"
I am customizing the fluentbit image mainly fluentbit conf file to have a filter like this
[Filter]
Name grep
Match *
Exclude GET /(health(/check)?(/index\.html)?|api(/v[0-9]+(?:\.[0-9]+)*)?/health|_stcore/health)/
but still the logs are showing up. so, can you guide me towards a working solution?I have been scratching my head for past2 days over this thing.
@PettitWesley
Beta Was this translation helpful? Give feedback.
All reactions