Splunk Search

Update search command string of search Manager by js


i have an button that change the search command string, i want to update that string to "search" of searchManager and trigger the it to update data in the view
is that possible ?

can some one please help ?
example is better for me to understand .

0 Karma



You can update SearchManager using below JS code.

var searchManager = new SearchManager(...) // this is your search manager
var UpdatedSearchCommand  = "Search My new search String";
searchManager.settings.set("search",UpdatedSearchCommand  )


0 Karma
Get Updates on the Splunk Community!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

 (view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...