Take log message and parse as JSON (create new column jsonobj):
parse "*" as jsonobjTake new jsonobj column and create a new column for the specified key in the JSON:
json field=jsonobj "my-obj-key"Allow extracting multiple keys from the json object:
json field=jsonobj "event", "url" as event, urlExtract a regex match:
parse regex field=url "cps/asset/(?<asset_id>[^?]+)"Requires the use of a named capturing group
(?<your_name>pattern_here)
Indicate case insensitivity with (?i):
(?<a_match>(?i)topics)Parse contents out from the default message column:
_collector=Mozart | where component="mozart-routing" | where environment="int" | parse "HTTPD*" as ApacheYou can use a different format as well:
(_collector=Mozart) environment = "live" component = "mozart-composition"