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!

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

New Release | Splunk Cloud Platform 10.1.2507

Hello Splunk Community!We are thrilled to announce the General Availability of Splunk Cloud Platform 10.1.2507 ...

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

&#x1f5e3; You Spoke, We Listened  Audit Trail v2 wasn’t written in isolation—it was shaped by your voices.  In ...