From 2856723a76c3f8adc76ff78d5743d0cda67c0f58 Mon Sep 17 00:00:00 2001 From: SanyaKochhar <42152676+SanyaKochhar@users.noreply.github.com> Date: Mon, 26 Oct 2020 18:49:54 -0400 Subject: [PATCH] Update fluentbit filter regex (#1920) --- charts/osm/templates/fluentbit-configmap.yaml | 2 +- docs/patterns/observability/logs.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/osm/templates/fluentbit-configmap.yaml b/charts/osm/templates/fluentbit-configmap.yaml index 620ea25606..fed096fc91 100644 --- a/charts/osm/templates/fluentbit-configmap.yaml +++ b/charts/osm/templates/fluentbit-configmap.yaml @@ -19,7 +19,7 @@ data: [FILTER] name grep match * - regex $message['level'] error + regex message /"level":"error"/ [OUTPUT] Name stdout Match * diff --git a/docs/patterns/observability/logs.md b/docs/patterns/observability/logs.md index 557e8e33b4..4916de7cf8 100644 --- a/docs/patterns/observability/logs.md +++ b/docs/patterns/observability/logs.md @@ -21,7 +21,7 @@ You may configure log forwarding to an output by following these steps _before_ [FILTER] name grep match * - regex $message['level'] error + regex message /"level":"error"/ ``` 4. Once you have updated the Fluent Bit configmap, you can deploy the sidecar during OSM installation using the `--enable-fluentbit` flag. You should now be able to interact with error logs in the output of your choice as they get generated.