Dashboards & Visualizations

Pass a run time variable in spunk

JyotiP
Path Finder

I have the following query where $eventBreakdownDateTime$ is a selection input which I want to assign it to a variable called temp

AppDomain="AutomationServer"
UserName=*
Token=*
| spath output=Message path=Message
| fieldformat EventDateTime=strftime(_time,"%Y%d%m%H%M%S%3N")
| eval temp = $eventBreakdownDateTime$
| table Message, _time, EventDateTime, SelectedDate, temp

This is giving me an error Error in eval: the expression is malformed

Tags (2)
0 Karma
1 Solution

kamlesh_vaghela
SplunkTrust
SplunkTrust

@JyotiP

have you tried | eval temp = "$eventBreakdownDateTime$" ?

View solution in original post

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@JyotiP

have you tried | eval temp = "$eventBreakdownDateTime$" ?

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...