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 so as not to be considered search terms):

We will discuss this in Chapter 6Advanced Search Examples.

You can use these operators in fairly complicated ways if you want to be very specific, or even to find multiple sets of events in a single query. The following are a few examples:

This can also be written with some whitespace for clarity:

index=myapplicationindex 
( 
sourcetype=security 
AND 
( 
(bob NOT error) 
OR 
(mary AND warn) 
) 
) 
OR 
( 
sourcetype=application 
(jacky info) 
)