We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89d829f commit 5afb43aCopy full SHA for 5afb43a
1 file changed
filters/utmstack/utmstack.yml
@@ -1,8 +1,18 @@
1
-# UTMStack filter, version 1.0.0
+# UTMStack filter, version 1.0.1
2
3
pipeline:
4
- dataTypes:
5
- utmstack
6
steps:
7
+ # Only parse as JSON if it contains the standard schema with "msg": and "args":
8
- json:
- source: raw
9
+ source: raw
10
+ where: 'contains("raw", "\"msg\":") && contains("raw", "\"args\":")'
11
+
12
+ # If it doesn't have the standard schema, just store the content in log.message using grok
13
+ - grok:
14
15
+ patterns:
16
+ - fieldName: log.message
17
+ pattern: '{{.greedy}}'
18
+ where: '!contains("raw", "\"msg\":") || !contains("raw", "\"args\":")'
0 commit comments