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!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI! Discover how Splunk’s agentic AI ...

[Puzzles] Solve, Learn, Repeat: Dereferencing XML to Fixed-length events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Stay Connected: Your Guide to December Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...