I am currently writing a Splunk Query to pull a report over the events and I am using this now to do it and it has to be using table only
index=1234 source="/apps/logs/*.log" AND "logType=API_RESPONSE"
| spath input=request
| spath input=response
| rename body.data.Item1 as Item1
| rename body.data.Item2 as Item2
| rename body.data.Item3 as Item3
| stats count by URI
| rename count as NumberofTimes_Called_URI, URI as URI_Called
| table Item1,Item2,Item3
Prerequisites
- The API_RESPONSE is a JSON response
- Item1, Item2, and Item3 are JSON fields in response.
Issue: Not able to render the Splunk table in the statistics for this part
| stats count by URI
| rename count as NumberofTimes_Called_URI, URI as URI_Called
individually the above is working but when i combine and render the table it's not working.
Please help me fix this problem.