Splunk Search

How to group by two months.

tabishritz
Observer

My query

"mwt-service"  my query |stats count by channel service date_month

yields result like

channelservicemonthcount
PBXFNTFnovember4
STEACTRnovember5
PBXFNTFoctober6
STEACTRoctober9

 

But I want to have two columns of each month count as below

channelservicenovoct
PBXFNTF45
STEACTR38

 

please advice.
 
 
Labels (2)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| eval nov=if(month="november",count,null)
| eval oct=if(month="october",count,null)
| fields - month count
| stats values(*) as * by channel, service
0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...