Splunk Enterprise

Custom search using timechart

vishwa
Path Finder

Query:

index=new "application status" AND Condition=Begin OR Condition=Done
|rex field = _raw "DIDS \s+\[?<data>[^\]]+)"
|dedup data
|timechart span=1d count by application

Result:

_timeapplication1application2
2022-01-061020
2022-01-071214
2022-01-081830

 

I want to include Condition field as well in the table, how can i do it???

Labels (1)
0 Karma

bowesmana
SplunkTrust
SplunkTrust

You can generally do this by concatenating the two data items into a single field for the split by clause of the timechart, i.e.

...
| eval split=application.":".Condition
| timechart span=1d count by split

vishwa
Path Finder

Thank you @bowesmana  it worked 

0 Karma

bowesmana
SplunkTrust
SplunkTrust

@vishwa can you mark it as a solution so others can see it as a valid solution

0 Karma
Get Updates on the Splunk Community!

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...