Dashboards & Visualizations

How to create a new variable using Eval and then pass it in Timechart

aditsss
Motivator

Hi Everyone,

I need to create one variable using Eval my variable name is  - JOB_EXEC_TIME how can I create a variable using eval.

And then I need to pass it in below query:

timechart sum(JOB_EXEC_TIME) as TotalExecTime by JOB_NM

Can someone guide me How can I do this in splunk.

Labels (3)
0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@aditsss 

 

Can you please share more details where you want to create variable like (from input or search result) and how you want to use in time chart?

0 Karma

aditsss
Motivator

@kamlesh_vaghela 

Currently I am passing JOB_EXEC_TIME is my timechart like below:

 

 timechart sum(JOB_EXEC_TIME) as TotalExecTime by JOB_NM

 

Now I want to pass -JOB_EXEC_TIME(reverse order) in timechart.How can I pass that.

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust
Did you tried?

|timechart sum("JOB_EXEC_TIME(reverse order)") as TotalExecTime by JOB_NM
0 Karma

aditsss
Motivator

@kamlesh_vaghela 

nothing is coming

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust
Is it possible to share sample OP of search before time chart?
0 Karma

aditsss
Motivator

@kamlesh_vaghela 

what is OP?

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust
Output
0 Karma
Get Updates on the Splunk Community!

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...