Deployment Architecture

suffic index name to all searches made in the app

manikdham
Path Finder

i want to prefix all searches done in my app with index name. How do i do that.
I use q parameter but that prefixes index name to only the first search. i want to make it a kind of hidden and prefix all searches done in the app with the index name.

Tags (4)
0 Karma
1 Solution

adamw
Communicator

I don't think this is currently possible, although you can populate the search bar with a default value, similar to how the Unix app works.

Basically if you edit $SPLUNK_HOME/etc/apps//default/data/ui/views/.xml, you should find an XML module named "SearchBar", and you can add a new param named "q" with the parameter being whatever you want in the search bar for that view.


true
true
index=os
False

See $SPLUNK_HOME/etc/apps/unix/default/data/ui/views/about_dashboard.xml as an example.

Thanks,
--adam

View solution in original post

0 Karma

adamw
Communicator

I don't think this is currently possible, although you can populate the search bar with a default value, similar to how the Unix app works.

Basically if you edit $SPLUNK_HOME/etc/apps//default/data/ui/views/.xml, you should find an XML module named "SearchBar", and you can add a new param named "q" with the parameter being whatever you want in the search bar for that view.


true
true
index=os
False

See $SPLUNK_HOME/etc/apps/unix/default/data/ui/views/about_dashboard.xml as an example.

Thanks,
--adam

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...