I have a log event getting in a json format like this
{
"level":"level name",
"exception":"exception message",
"logger":"com.log",
"thread":"thread name",
"message":"exception message",
"properties":{
"id":"1234",
"process":"Process name,
"host":"host name",
"type":"type name"
}
}
I need a splunk query to get host inside properties as a value to get it in a table. Please help me.
It would help to see what you've tried already so we don't suggest something that doesn't work.
There probably are a few ways to do that, but here's one of them.
Note I specifically did not call the field "host" to avoid conflict with the built-in field of the same name.