Splunk Search

Monthly reporting

ccntech
Explorer

I am trying to create a report that will show month over month reporting for web service average response time as a percentage against a threshold

sourcetype="web_logs" `web_resp_index` *
| bucket _time span=month
| stats count as total_count count(eval(resp_time>=500)) as fail_count count(eval(resp_time<500)) as success_count count(eval(resp_time=="")) as null_count by source _time
| eval success_percent=round((resp_count/total_count)*100,2)
| eval _time=strftime(_time, "%b")
| Fields - total_count fail_count success_count null_count


I now have :
source_timesuccess_percent
www1Jan94.6
www1Feb93.2
www1Mar94.3
www2Jan98.5
www2Feb92.4
www2Mar84
 
I am looking to transpose and group so that I have 1 row per source and monthly columns
SourceJanFebMar
www194.693.294.3
www298.592.484
Labels (2)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| xyseries source _time success_percent

ccntech
Explorer

that worked perfectly!

Wow I cannot believe the power of the community.  you answered the post within about 5 minutes.

Thank you so much.

Get Updates on the Splunk Community!

Splunk MCP & Agentic AI: Machine Data Without Limits

  Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization ...

Finding Based Detections General Availability

Overview  We’ve come a long way, folks, but here in Enterprise Security 8.4 I’m happy to announce Finding ...

Get Your Hands Dirty (and Your Shoes Comfy): The Splunk Experience

Hands-On Learning and Technical Seminars  Sometimes, you just need to see the code. For those looking for a ...