0

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.

Kamiccolo
  • 7,758
  • 3
  • 34
  • 47
Sateesh M
  • 3
  • 5

1 Answers1

0

Try this rex command in your query.

... | rex "message\":\"(?<message>[^\"]+)\",\"code\":\"(?<code>\d+)" | ...
RichG
  • 9,063
  • 2
  • 18
  • 29