Splunk Search

Add hidden search string to flashtimeline view

christian_l
Path Finder

Hi there,

I'd like to modify the default search form of Splunk (flashtimeline view) for a new app.
Therefore I'd like to add some search-strings to the search-field. These search-strings shouldn't be seen by the user. I think this would be a task for HiddenIntention module but read this module is deprecated, so I don't want to use it for a new app.
How can the task be done without the HiddenIntention module?

Regards,
Christian

0 Karma

sowings
Splunk Employee
Splunk Employee

In the near term, you could certainly continue to use an intention; I've done this for precisely the reasons you describe. I placed an addterm intention in a local/ copy of the flashtimeline view for my app. Below is the module block I used:


<module name="ConvertToIntention">
<param name="intention">
<param name="name">addterm</param>
<param name="arg">
<param name="index">test-*</param>
</param>
</param>

I placed this as a child of my <SubmitButton>, and closed the tags appropriately.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...