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!

Reduce and Transform Your Firewall Data with Splunk Data Management

Managing high-volume firewall data has always been a challenge. Noisy events and verbose traffic logs often ...

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...