Over a million developers have joined DZone.

Define Your Log Repository as a Chrome Custom Search Engine

· DevOps Zone

The DevOps Zone is brought to you in partnership with Sonatype Nexus. The Nexus Suite helps scale your DevOps delivery with continuous component intelligence integrated into development tools, including Eclipse, IntelliJ, Jenkins, Bamboo, SonarQube and more. Schedule a demo today

If you have a production app, you should be using some log repository (we use Splunk at Commerce Sciences).

Now, Splunk is great, but it’s causing us a bit of a headache – whenever we access it, we have to go through a few pages of login (not really needed), and a page requesting we upgrade to the latest version (we usually ignore it). All and all, it takes too much time and friction to search for logs.

Today, I had a cool idea – why not configure a Chrome Custom Search Engine and save us the trouble? It turns out it works and it’s awesome (it makes your log just a CTRL-L away). Just add a new Splunk search engine (read the help if you need), enter your favorite keyboard shortcut (I went with “spl”, but you can use “log”) and as a URL enter

http://yoursplunkserver.com/en-US/app/search/flashtimeline?q=search%20%s

That’s it – you just made your logs a whole lot more accessible. If you try this on another log repository other than Splunk, please post your own URL as a comment. Enjoy!

The DevOps Zone is brought to you in partnership with Sonatype Nexus. Use the Nexus Suite to automate your software supply chain and ensure you're using the highest quality open source components at every step of the development lifecycle. Get Nexus today

Topics:

Published at DZone with permission of Ron Gross, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}