Book Image

Implementing Splunk (Update)

Book Image

Implementing Splunk (Update)

Overview of this book

Table of Contents (20 chapters)
Implementing Splunk Second Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Boolean and grouping operators


There are a few operators that you can use to refine your searches (note that these operators must be in uppercase to not be considered search terms):

  • AND is implied between terms. For instance, error mary (two words separated by a space) is the same as error AND mary.

  • OR allows you to specify multiple values. For instance, error OR mary means find any event that contains either word.

  • NOT applies to the next term or group. For example, error NOT mary would find events that contain error but do not contain mary.

  • The quote marks ("") identify a phrase. For example, "Out of this world" will find this exact sequence of words. Out of this world would find any event that contains all of these words, but not necessarily in that order.

  • Parentheses ( ( ) ) is used for grouping terms. Parentheses can help avoid confusion in logic. For instance, these two statements are equivalent:

    • bob error OR warn NOT debug

    • bob AND (error OR warn)) AND NOT debug

  • The equal sign (=) is reserved...