## Term search for logs

Term search identifies logs that contain specific words or phrases.

## Search terms

To search log terms, type in the search bar and press `return` (on macOS) or `enter` (on PC).

Do not use quotation marks. Term search uses the `chip` construct to encapsulate the search terms, such as `chip (error)`, and so on.

### Supported data types

Term search supports all data types, and treats them as String data type; see [Search data types](https://docs.kloudfuse.com/platform/3.5.0/log-search-syntax/#search-data-types).

### Supported operators

Terms search uses only the [Not Equal](https://docs.kloudfuse.com/platform/3.5.0/log-search-syntax/#not-equals) operator; see [Search operators](https://docs.kloudfuse.com/platform/3.5.0/log-search-syntax/#search-operators).

|     |     |
| --- | --- |
|  | Term search is case-insensitive. |

## Supported set combinations

**AND**  
Term search supports intersection by combining terms using spaces, and finds logs that contain _all_ specified terms.

**OR**  
Term search supports the union operator through the OR keyword within the chip function, and finds logs that contain _any_ of the specified terms.

**NOT**  
Prefix a term with [!](https://docs.kloudfuse.com/platform/3.5.0/log-search-syntax/#not) (exclamation mark) to exclude logs that contain that term.

## Examples of term search

Here are some examples of term search:

| Operator | Example |
| --- | --- |
| "error" | `chip(error)` |
| not "error" | `chip(!error)` |
| "error" and "user" | `chip(error user)`<br>`chip(error) chip (user)` |
| "payment failed" or "out of stock" | `chip(payment failed OR out of stock)` |
| "payment failed or denied" | `chip(payment failed \OR denied)` |
| “database” but not “connection refused” | `chip(database) chip(!connection refused)` |
