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!

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...

Spotting Financial Fraud in the Haystack: A Guide to Behavioral Analytics with Splunk

In today's digital financial ecosystem, security teams face an unprecedented challenge. The sheer volume of ...

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability As businesses scale ...