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!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...