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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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