An analyst wants to parse a custom log string field containing key-value pairs separated by spaces into distinct XQL fields. Which command should be used?
Trap 1: parse raw_log into $key = $val
Syntax does not use the into $key = $val format directly.
Trap 2: parse raw_log "" as @timestamp, action
This lacks the necessary extraction pattern.
Trap 3: parse raw_log "*=*" as key, value
Wildcard parsing syntax does not match kv-pair extraction.
- A
parse raw_log into $key = $val
Why it fails: Syntax does not use the into $key = $val format directly.
- B
parse raw_log "" as @timestamp, action
Why it fails: This lacks the necessary extraction pattern.
- C
parse raw_log "*=*" as key, value
Why it fails: Wildcard parsing syntax does not match kv-pair extraction.
- D
parse raw_log 'KEY-VALUE' as extracted_field
XQL supports parsing predefined patterns like 'KEY-VALUE' or regex extraction to pull fields from strings.