Skip to content

Commit e030ea8

Browse files
committed
feat(utm): update UTMStack filter configuration for version 3.0.5
1 parent 4d427bf commit e030ea8

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

backend/src/main/resources/config/liquibase/changelog/20260209024_update_filter_utmstack.xml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,27 @@
1212
UPDATE public.utm_logstash_filter
1313
SET filter_version='3.0.5',
1414
updated_at=now(),
15-
logstash_filter=$$ # UTMStack filter, version 1.0.1
15+
logstash_filter= $$
16+
17+
# UTMStack filter, version 1.0.1
1618
1719
pipeline:
1820
- dataTypes:
1921
- utmstack
2022
steps:
2123
# Only parse as JSON if it contains the standard schema with "msg": and "args":
22-
- json:
23-
source: raw
24-
where: 'contains("raw", "\"msg\":") && contains("raw", "\"args\":")'
24+
- json:
25+
source: raw
26+
where: 'contains("raw", "\"msg\":") && contains("raw", "\"args\":")'
2527
26-
# If it doesn't have the standard schema, just store the content in log.message using grok
28+
# If it doesn't have the standard schema, just store the content in log.message using grok
2729
- grok:
2830
source: raw
2931
patterns:
3032
- fieldName: log.message
3133
pattern: '{{.greedy}}'
32-
where: '!contains("raw", "\"msg\":") || !contains("raw", "\"args\":")' $$
34+
where: '!contains("raw", "\"msg\":") || !contains("raw", "\"args\":")'
35+
$$
3336
WHERE id=1531;
3437
]]>
3538
</sql>

0 commit comments

Comments
 (0)