I tried to pass the result token $result._time$ to the "Occured Time" field, but got the following error: "Enter valid epoch time for duration" while saving. It seems to me that the input only accepts epoch value, but that shouldn't prevent me from passing a token from the search result.
@swong2
Can you please try following approach?
1) Store _time
in another field.eg YOUR_SEARCH | eval TIME=_time
2) Use TIME
to pass _time
's value eg. $result.TIME$
Thanks
It didn't work.
I believe the problem is in config file splunk/etc/apps/TA-Demisto/default/restmap.conf
[validation:savedsearch]
action.demisto.param.occured = validate( match('action.demisto.param.occured', "((^[0-9]*$)|(\$trigger_time\$?)$)"), "Enter valid epoch time for duration")
Can you please share your sample search & XML code ?