Skip to content

Latest commit

 

History

History
82 lines (59 loc) · 5.35 KB

File metadata and controls

82 lines (59 loc) · 5.35 KB
id modify-search-from-messages-tab
title Modify a Search from the results table
description After running a search, you can modify subsequent searches by selecting text displayed in the Messages tab.

import useBaseUrl from '@docusaurus/useBaseUrl';

When you run a search your results are provided in a Messages tab. If the search conducted an aggregation you'll also get an Aggregates tab. The options to modify your search will differ depending on the tab you're viewing.

Messages tab

After running a search, you can make these changes in the Messages tab:

Add to your search

After you select text and right click, you'll see a menu pop up with the following options:

Option Added to Search
Copy Selected Text Copies the text to your computer clipboard.
Parse selected text/key [search] parse [selected text] as [fieldName]
Add selected text as AND [search] AND [selected text]
Add selected text as AND NOT [search] AND ! [selected text]
Add selected text as OR [search] OR [selected text]
Add selected text as OR NOT [search] OR ! [selected text]

After the option is added to your existing search, click Start (or press Enter/Return) to run the appended search.

Parse a field from message text

If you come across text that you'd like to parse as a field, you can select that text and name the field from the Messages tab.

To parse a field from message text:

  1. In the search results, select the text or string you'd like to parse, right click, and click Parse selected text.
    <img src={useBaseUrl('img/search/get-started-search/search-page/parse-selected-text.png')} alt="Parse selected text" style={{border: '1px solid gray'}} width="800" />
  2. In the Parse Text dialog box, select any text that you do not want to include in the parsed field. Then click Extract this value. For example, to parse just the client URL, select the unique client URL, then select Click to extract this value.
    <img src={useBaseUrl('img/search/get-started-search/search-page/extract-value.png')} alt="Extract value" style={{border: '1px solid gray'}} width="500" />
  3. Type a name for the Field. This name appears at the top of the parsed column. Field names can contain alphanumeric characters and underscores (_). The name must start and end with an alphabet character. Then click Submit.
    <img src={useBaseUrl('img/search/get-started-search/search-page/parse-text.png')} alt="Parse text" style={{border: '1px solid gray'}} width="500" /> :::note If you do not enter a field name, you'll see an error in the Search tab. :::
  4. In the Search tab, click Start to being the search.

Filter results from a column

You can filter your search results directly from a column in the Messages tab instead of typing a filter clause into the query. When you apply a filter, Sumo Logic adds a where clause to your query, which you then run to see the narrowed results.

To filter results from a column:

  1. Run a search. In the Messages tab, click the filter icon in the header of the column you want to filter.
    <img src={useBaseUrl('img/search/get-started-search/search-page/search-assist-filter.png')} alt="Filter icon and filter panel on a search results column" style={{border: '1px solid gray'}} width="800" />
  2. Choose an operator and provide a value.
    • String fields. Select an operator such as Text contains, Text does not contain, or Text starts with, then enter a value. You can also select a value from the Top 10 values list, which shows the most common values in the column with their approximate counts.
    • Number fields. Select an operator such as Greater than, Less than, or Equal to, then enter a value.
  3. Click Apply. Sumo Logic adds the filter to your query as a where clause (for example, | where _size > 1000).
  4. Click the search button to run the updated query.

:::note

  • You can filter on one value at a time. Multi-select is not currently supported.
  • When you apply filters on multiple columns, they combine with an AND. Contradictory filters return no results.
  • Applying a filter returns you to the first page of results. :::

Aggregates tab

After running an aggregate search, you can copy values and select from several options to add more operations to your query based on the results in the Aggregates tab.

After you select text and right click, you'll see a menu pop up with the following options:

Option Added to Search
Copy Selected Text Copies the text to your computer clipboard.
Add selected text as AND [search] AND [selected text]
Add selected text as AND NOT [search] AND ! [selected text]
Add selected text as OR [search] OR [selected text]
Add selected text as OR NOT [search] OR ! [selected text]

After the option is added to your existing search, click Start (or press Enter/Return) to run the appended search.