(edited to give a more accurate example) I have an input that is json, but then includes escaped json a much more complex version of the example below (many fields and nesting both outside of message and in the message string), so this isn't just a field extraction of a particular field, I need to tell splunk to extract the message string (removing the escaping) and then parse that as json {
"message": "{\"foo\": \"bar\", \"baz\": {\"a\": \"b\", \"c\": \"d\"}}"
} I can extract this at search time with rex and spath, but would prefer to do so at index time. parsing this message with jq .message -r |jq . gives: {
"foo": "bar",
"baz": {
"a": "b",
"c": "d"
}
} what I ideally want is to have it look ike: {
"message": {
"foo": "bar",
"baz": {
"a": "b",
"c": "d"
}
}
}
... View more