# Grep search for logs

Grep search performs exact pattern matching on your log lines, for precise search results. It is both the slowest and most accurate search type.

## Search with grep

To search using grep, enclose the pattern within double quotes, (“…​”).

### Supported data types

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

### Supported operators

Grep search _does not_ use operators.

|     |     |
| --- | --- |
|  | - Grep search is case-insensitive.<br>  <br>- Grep does not support search with wildcards. |

## Supported set combinations

**AND**

Grep search supports intersection by using spaces to find logs that match _all_ patterns.

**OR**

Grep search supports the union operator inside quotes to find logs that match _any_ of the specified patterns.

**NOT**

Prefix a pattern with \[!\] (exclamation mark, not) to exclude logs that contain a match.

## Examples of grep search

Here are some examples of grep search:

| Operator | Example | Supported data types |
| --- | --- | --- |
| Pattern1 AND Pattern2 | `“P1” “P2”` | All |
| Pattern1 OR Pattern2 | `“P1 OR P2”` | All |
