I have an API onboarded to splunk and the API logs are streamed to Splunk as well. I need to create a report for the time taken by the external APIs. With this basic search command I'm able to get list of external API calls but when I try to use rex or split it doesn't work.
index=my_index message="*time-taken*" | table message
This returns results like below
service=http://www.example.com:status=200:time-taken=200
service=http://www.example2.com:status=201:time-taken=500
service=http://www.example2.com:status=202:time-taken=240
I'd like to create a report something like this, any help us much appreciated
|date|service|max(time-taken)|avg(time-taken)|