> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-fix-nav-issues.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Search with ClickStack

> Search with ClickStack

export const Image = ({img, alt, size}) => {
  return <Frame>
      <img src={img} alt={alt} />
    </Frame>;
};

ClickStack allows you to do a full-text search on your events (logs and traces). You can get started searching by just typing keywords that match your events. For example, if your log contains "Error", you can find it by just typing in "Error" in the search bar.

This same search syntax is used for filtering events with Dashboards and Charts
as well.

<h2 id="search-features">
  Search features
</h2>

<h3 id="natural-language-syntax">
  Natural language search syntax
</h3>

* Searches aren't case sensitive
* Searches match by whole word by default (ex. `Error` will match `Error here`
  but not `Errors here`). You can surround a word by wildcards to match partial
  words (ex. `*Error*` will match `AnyError` and `AnyErrors`)
* Search terms are searched in any order (ex. `Hello World` will match logs that
  contain `Hello World` and `World Hello`)
* You can exclude keywords by using `NOT` or `-` (ex. `Error NOT Exception` or
  `Error -Exception`)
* You can use `AND` and `OR` to combine multiple keywords (ex.
  `Error OR Exception`)
* Exact matches can be done via double quotes (ex. `"Error tests not found"`)

<Image img="https://mintcdn.com/private-7c7dfe99-fix-nav-issues/FZqG0tBuMc0GoOY1/images/use-cases/observability/hyperdx-27.png?fit=max&auto=format&n=FZqG0tBuMc0GoOY1&q=85&s=00207e867d10a2ac452d652a72f9be56" alt="Search" size="md" width="3430" height="2340" data-path="images/use-cases/observability/hyperdx-27.png" />

<h4 id="column-search">
  Column/property search
</h4>

* You can search columns and JSON/map properties by using `column:value` (ex. `level:Error`,
  `service:app`)
* You can search for a range of values by using comparison operators (`>`, `<`,
  `>=`, `<=`) (ex. `Duration:>1000`)
* You can search for the existence of a property by using `property:*` (ex.
  `duration:*`)

<h3 id="time-input">
  Time input
</h3>

* Time input accepts natural language inputs (ex. `1 hour ago`, `yesterday`,
  `last week`)
* Specifying a single point in time will result in searching from that point in
  time up until now.
* Time range will always be converted into the parsed time range upon search for
  easy debugging of time queries.
* You can highlight a histogram bar to zoom into a specific time range as well.

<h3 id="sql-syntax">
  SQL search syntax
</h3>

You can optionally toggle search inputs to be in SQL mode. This will accept any valid
SQL WHERE clause for searching. This is useful for complex queries that can't be
expressed in Lucene syntax.

<h3 id="select-statement">
  Select statement
</h3>

To specify the columns to display in the search results, you can use the `SELECT`
input. This is a SQL SELECT expression for the columns to select in the search page.
Aliases aren't supported at this time (ex. you can not use `column as "alias"`).

<h2 id="saved-searches">
  Saved searches
</h2>

You can save your searches for quick access later. Once saved, your searches will appear on the `Saved Searches` page, making it easy to revisit frequently used search queries without having to reconstruct them.

<Image img="https://mintcdn.com/private-7c7dfe99-fix-nav-issues/FZqG0tBuMc0GoOY1/images/use-cases/observability/clickstack-saved-search-listing.png?fit=max&auto=format&n=FZqG0tBuMc0GoOY1&q=85&s=3ba98a849961f24bf6d10693a024c8ab" alt="Saved Search Listing Page" size="lg" width="1468" height="614" data-path="images/use-cases/observability/clickstack-saved-search-listing.png" />

To save a search, simply configure your search query and click the save button. You can give your saved search a descriptive name to help identify it later.

<Image img="https://mintcdn.com/private-7c7dfe99-fix-nav-issues/FZqG0tBuMc0GoOY1/images/use-cases/observability/clickstack-saved-search.png?fit=max&auto=format&n=FZqG0tBuMc0GoOY1&q=85&s=d491d53312dc65d48aa8df5e13965bd8" alt="Saving a Search" size="md" width="912" height="711" data-path="images/use-cases/observability/clickstack-saved-search.png" />

<h3 id="alerts-on-saved-searches">
  Adding alerts to saved searches
</h3>

Saved searches can be monitored with alerts to notify you when certain conditions are met. You can set up alerts to trigger when the number of events matching your saved search exceeds or falls below a specified threshold.

For more information on setting up and configuring alerts, see the [Alerts documentation](/clickstack/features/alerts).

<h3 id="tagging">
  Tagging
</h3>

You can add tags to dashboards and saved searches to help organize them.
Tags provide a flexible way to categorize and filter based on your needs.

<h4 id="how-tags-work">
  How tags work
</h4>

* **Organization**: Tags appear in the left sidebar, where dashboards and saved searches are grouped by their assigned tags
* **Multiple tags**: You can add one or more tags to a single item for better categorization
* **Auto-creation**: If you assign a tag that doesn't exist yet, it will be automatically created
* **Easy management**: You can add or remove tags at any time to adjust your organization structure

This makes it easy to find related items and maintain an organized workspace as your collection grows.

<Image img="https://mintcdn.com/private-7c7dfe99-fix-nav-issues/FZqG0tBuMc0GoOY1/images/use-cases/observability/clickstack-tags-search.png?fit=max&auto=format&n=FZqG0tBuMc0GoOY1&q=85&s=d9d179d40c6655ac40f7089e79958af7" alt="Tags in saved search" size="md" border width="743" height="230" data-path="images/use-cases/observability/clickstack-tags-search.png" />

You can also select multiple tags to filter and view items across different categories:

<Image img="https://mintcdn.com/private-7c7dfe99-fix-nav-issues/FZqG0tBuMc0GoOY1/images/use-cases/observability/clickstack-tags-dashboard.png?fit=max&auto=format&n=FZqG0tBuMc0GoOY1&q=85&s=0c14449a0e6323347e30049bf891b545" alt="Multiple tags selected in dashboard" size="md" border width="529" height="252" data-path="images/use-cases/observability/clickstack-tags-dashboard.png" />
