Hi there,
I couldn't find this question already on here. Hopefully it's a simple one.
I use Splunk regularly in my work and often have to run a quick query.
I've configured Chrome so that I can quickly search from the omnibox/address bar by typing a shortcut, so that I can search other regularly used systems (like Jira).
Can Splunk do the same?
This is what I've tried:
Chrome > Settings > Manage Search Engins (alternatively, chrome://settings/searchEngines)
I then add a new Search engine with the following details:
Name "Splunk"
Keyword "s"
URL "http://splunk_vm_box:8000/en-US/app/search/search?q=search%20"
So, when I'm in the address bar/omnibox in Chrome I should be able to type "s" then press the space bar to initiate a Splunk query.
It doesn't seem to like this though.
I don't believe the issue is caused by user authentication - other systems I've configured in a similar way also require logging in.
Is my search URL incorrect?
I know splunk assigns an individual search ID to each query, but I figure this would happen AFTER I submit the query, not prior.
Hi oxnard,
Thanks for this question and nice hint using chrome like this!
I tried it myself and got it working, you missed one little thing 😉
You have to provide a %s
somewhere in the URL so chrome will know where to place the search string.
Change your config to something like this:
Name "Splunk"
Keyword "s"
URL "http://splunk_vm_box:8000/en-US/app/search/search?q=search%20%s"
and it will work like a charm 🙂
hope this helps ...
cheers, MuS
Hi oxnard,
Thanks for this question and nice hint using chrome like this!
I tried it myself and got it working, you missed one little thing 😉
You have to provide a %s
somewhere in the URL so chrome will know where to place the search string.
Change your config to something like this:
Name "Splunk"
Keyword "s"
URL "http://splunk_vm_box:8000/en-US/app/search/search?q=search%20%s"
and it will work like a charm 🙂
hope this helps ...
cheers, MuS
Firefox can use keyword searches for this without the need for an extension.
Then you search by typing the keyword followed by the splunk search string:
Thanks MuS.
That works a treat!
Do we have a similar solution for firefox?
No, but may be this add-on for Firefox can help you https://addons.mozilla.org/en-US/firefox/addon/add-to-search-bar/
I did not test it, because I don't use Firefox 😉
Thanks so much.. That worked..