Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Splunk Best Practices

You're reading from   Splunk Best Practices Operational intelligent made simpler

Arrow left icon
Product type Paperback
Published in Sep 2016
Publisher Packt
ISBN-13 9781785281396
Length 244 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Travis Marlette Travis Marlette
Author Profile Icon Travis Marlette
Travis Marlette
Arrow right icon
View More author details
Toc

Best practices with search anatomy

There are three basic components of search anatomy. You will have a better working knowledge of search query syntax after reading the following information.

The root search

Always make sure to list as many metadata fields as you can in this section because that will speed up your search results. If you just put a host=host2 call in this part of the search, Splunk will scrub every index, every sourcetype, and every source within your selected time-range for that host, which takes a lot longer than if you specify the data location you want. The proper use of this portion usually looks something like this:

index=MyIndex sourcetype=iisLogs source=".../inetpub/*.log" host=host1 OR host=host2 

This small action can reduce your search times significantly.

Calculation/evaluation

Because this portion of the search query is usually the longest, the order of operation is critical here, as well as calling out all necessary fields and passing them down to...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image