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!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...