I have a splunk log in the below format:
{"Apple":
{"message":"abcdefgh.ijkl","code":"200"}
}
I want to filter the message "abcdefgh.ijkl" and code separately.
I have a splunk log in the below format:
{"Apple":
{"message":"abcdefgh.ijkl","code":"200"}
}
I want to filter the message "abcdefgh.ijkl" and code separately.
Try this rex
command in your query.
... | rex "message\":\"(?<message>[^\"]+)\",\"code\":\"(?<code>\d+)" | ...