master
yaml 28 lines 510 Bytes
Raw
1 ---
2 # Advanced unmatched handling test
3 # Tests unmatched log lines with injections
4
5 pattern: "MATCHED: (?P<data>.*)"
6
7 inject:
8 - key: ALWAYS_PRESENT
9 value: "always here"
10
11 rewrite:
12 - key: PROCESSED_DATA
13 value: "Processed: ${data}"
14 inject: yes
15
16 # Handle unmatched lines
17 unmatched:
18 key: RAW_MESSAGE
19 inject:
20 - key: PARSE_ERROR
21 value: "failed to match pattern"
22 - key: ERROR_TYPE
23 value: "unmatched_log_line"
24 - key: SEVERITY
25 value: "warning"
26
27 filename:
28 key: FILENAME