Splunk Search

Change click behavior in Search in 4.1.2

justinhall
Engager

Any idea how to change the 'click to search' behavior in 4.1.2? Specifically I want to disable the feature that allows a user to click on text in the search result (automatically adding that text to the query & running the new search). I know in 3.4 it was possible (see www.splunk.com/base/documentation/3.4/user/changesplunkwebpreferences) but I can't find the equivalent configuration option in 4.1.2. Is it changeable? If so, can it be done on an individual user basis? Thanks!

Tags (2)
1 Solution

ziegfried
Influencer

Yes it is changeable. You can modify the default search screen by editing the view $SPLUNK_HOME/etc/apps/search/default/data/ui/views/flashtimeline.xml. (Or better copy the flashtimeline.xml to $SPLUNK_HOME/etc/apps/search/local/data/ui/views/ and edit it there)

Look for the EventsViewer module and change its parameters.

<module name="EventsViewer" layoutPanel="resultsAreaLeft">
  <param name="segmentation">full</param>
  <param name="reportFieldLink">report_builder_format_report</param>
  <param name="enableBehavior">False</param>
  <param name="enableTermSelection">False</param>
</module>

(I've added the enableBehavior and enableTermSelection parameters)

To get a list of all supported parameters for the EventsViewer module, you can take a look at the documentation in your Splunk instance at http://<yoursplunkserver>:8000/modules.

To get different search views for different users, you will probably need to either build a separate search view or a separate app. But its doable.

View solution in original post

0 Karma

ziegfried
Influencer

Yes it is changeable. You can modify the default search screen by editing the view $SPLUNK_HOME/etc/apps/search/default/data/ui/views/flashtimeline.xml. (Or better copy the flashtimeline.xml to $SPLUNK_HOME/etc/apps/search/local/data/ui/views/ and edit it there)

Look for the EventsViewer module and change its parameters.

<module name="EventsViewer" layoutPanel="resultsAreaLeft">
  <param name="segmentation">full</param>
  <param name="reportFieldLink">report_builder_format_report</param>
  <param name="enableBehavior">False</param>
  <param name="enableTermSelection">False</param>
</module>

(I've added the enableBehavior and enableTermSelection parameters)

To get a list of all supported parameters for the EventsViewer module, you can take a look at the documentation in your Splunk instance at http://<yoursplunkserver>:8000/modules.

To get different search views for different users, you will probably need to either build a separate search view or a separate app. But its doable.

0 Karma

rroberts
Splunk Employee
Splunk Employee

Any updates to this for SimpleXML or HTML/JS Splunk 6.X?

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...