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$" ?

View solution in original post

0 Karma
Did you miss .conf21 Virtual?

Good news! The event's keynotes and many of its breakout sessions are now available online, and still totally FREE!