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!

AI for AppInspect

We’re excited to announce two new updates to AppInspect designed to save you time and make the app approval ...

App Platform's 2025 Year in Review: A Year of Innovation, Growth, and Community

As we step into 2026, it’s the perfect moment to reflect on what an extraordinary year 2025 was for the Splunk ...

Operationalizing Entity Risk Score with Enterprise Security 8.3+

Overview Enterprise Security 8.3 introduces a powerful new feature called “Entity Risk Scoring” (ERS) for ...