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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...