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!

Now Available: Cisco Talos Threat Intelligence Integrations for Splunk Security Cloud ...

At .conf24, we shared that we were in the process of integrating Cisco Talos threat intelligence into Splunk ...

Preparing your Splunk Environment for OpenSSL3

The Splunk platform will transition to OpenSSL version 3 in a future release. Actions are required to prepare ...

Easily Improve Agent Saturation with the Splunk Add-on for OpenTelemetry Collector

Agent Saturation What and Whys In application performance monitoring, saturation is defined as the total load ...