Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

Want to access Real time data from searcheventhandler.

$
0
0
Hi, I wanted to access "value": "$result.abc$" inside of SearchEventHandler. It contains real time value. new SearchEventHandler ({ managerid: "myid", event: "preview", conditions: [ { attr: "any", value: "*", actions: [ {"type": "set", "token": "abc", "value": "$result.abc$"}, {"type": "set", "token": "def", "value": "$result.def$"}, ] } ] }); I tried creating a dummy JSON object (refer below code), and i was able to access th "value": "data is accessible" using the below method: var e = obj.value; var obj = ({ "value": "data is accessible", "b": "1234" }); Is there a different way to access the data inside "SearchEventHandler" ??? Pls suggest.

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>