Please advise the splunk search to extract multiple field values from the xml in splunk.
For example, how can I get both the user name and user id using the sample xml below.
You can use the spath command to get the values that you want. See the xml examples towards the bottom.
You can also have Splunk extract all fields automatically for you:
Maybe you can update the XML to show what you are talking about. Right now it's hard to tell why it's not working for you.
Thank you! This is very helpful.
I am able to extract most of the elements except for the element value with forward slash.
the xml element below users.usr.url returns an empty value.
Is there a special function for this?