Splunk Search

How to create a timechart with a time field?

Marco_Develops
Path Finder

I'm trying to make a time chart where it uses the time value specified in my table.  Rather than the default _time value.

Currently I'm trying something like this:

base search
|eval Failures = if(STATUS ="Failed",1,0)
| timechart sum(Failures) by TIME

DATE TIME  SYSTEM Failures
03/01/2022 12:00 Development 10
03/01/2022 13:00 Development 2
04/01/2022 15:00 Development 3
05/01/2022 18:00 Development 8

 

 Any suggestions help :-).

 

Thank you,

Marco

Labels (3)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
base search
| eval Failures = if(STATUS ="Failed",1,0)
| chart sum(Failures) by TIME

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust
base search
| eval Failures = if(STATUS ="Failed",1,0)
| chart sum(Failures) by TIME
Get Updates on the Splunk Community!

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...

Splunk App Dev Community Updates – What’s New and What’s Next

Welcome to your go-to roundup of everything happening in the Splunk App Dev Community! Whether you're building ...

The Latest Cisco Integrations With Splunk Platform!

Join us for an exciting tech talk where we’ll explore the latest integrations in Cisco + Splunk! We’ve ...