Skip to main content

About Search Basics

Our Search Syntax is based on a funnel or "pipeline" concept. The wide mouth of the funnel begins with all your current Sumo Logic data, and you narrow the funnel by entering keywords and operators separated by pipes (|). Each operator acts on the results from the previous operator so that you can progressively filter and pinpoint your search until you find exactly what you鈥檙e looking for.

Micro Lesson

How to search data using the Basic Search Mode in Sumo Logic.

In the聽Search聽tab, a search query is typically formatted something like this:

keyword search | parse | where | group-by | sort | limit

Start with a basic search:

  1. Classic UI. Go to the Home screen and select Log Search.
    New UI. In the main Sumo Logic menu, select Logs > Log Search. You can also click the Go To... menu at the top of the screen and select Log Search.
  2. Enter a simple key term like "error" in the search field, or type an asterisk wildcard (*) to find all messages.聽
  3. Hit聽Enter聽or click聽Start.
  4. Sumo Logic returns all the log entries containing the search term in the Messages tab below the histogram.

Review a slightly more complex search query to see how queries are formed.

All queries begin with a keyword or string search. Wildcards are allowed including an asterisk (*) for zero or more characters and a question mark (?) for a single character. Strings can be parsed based on start and stop anchor points in messages, and then aliased as user-created fields. All operators are separated by the pipe symbol (|).

Here's an example:

_sourceCategory=apache | parse "* --" as src_ip | count by src_ip | sort _count

This query means:

A diagram illustrating a Sumo Logic query. The query is '_sourcecategory=apache | parse "* - -" as src_ip | count by src_ip | sort_count'. The diagram breaks down the query into three parts: a keyword expression '_sourcecategory=apache' to specify the source category (in this case, a metadata field), parsing out the IP address into a field named 'src_ip' using an endpoint anchor 'parse "* - -" as src_ip', and counting and sorting the results 'count by src_ip | sort_count'.

As queries get longer and more complex, it is a best practice to format your queries by using a soft return before the pipes, such as:

_sourceCategory=apache
| parse "* --" as src_ip
| count by src_ip | sort _count

This method lines up the pipes and makes your query much easier to read.

note

Searches can be long and complex, but they are limited to a maximum of 15,000 characters.

Default data scope鈥�/a>

The data that is used to execute the query when there is no _index, _sourcecategory, _view , or metadata fields in the source expression of a query is called Default scope data.

See also鈥�/a>

Status
Legal
Privacy Statement
Terms of Use

Copyright 漏 2025 by Sumo Logic, Inc.