---
title: "Filter and summarise"
description: "Treat a table like a spreadsheet you can query."
canonical_url: "https://docs.logstrace.dev/guides/exploring/querying"
---
# Filter and summarise

> Treat a table like a spreadsheet you can query.

Open a table to see its rows. Every column can be filtered, sorted and summarised.

## Filters

Up to 20 filters, all must match.

<table>
<thead>
  <tr>
    <th>
      Operator
    </th>
    
    <th>
      Meaning
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        eq
      </code>
      
       / <code>
        neq
      </code>
    </td>
    
    <td>
      Equals / not equals
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        contains
      </code>
      
       / <code>
        not_contains
      </code>
    </td>
    
    <td>
      Text inside the value
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        gt
      </code>
      
       <code>
        gte
      </code>
      
       <code>
        lt
      </code>
      
       <code>
        lte
      </code>
    </td>
    
    <td>
      Number comparison
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        between
      </code>
    </td>
    
    <td>
      Between two numbers
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        in
      </code>
    </td>
    
    <td>
      One of a list
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        empty
      </code>
      
       / <code>
        not_empty
      </code>
    </td>
    
    <td>
      Value missing or present
    </td>
  </tr>
</tbody>
</table>

Example: payments that were `declined` and above `100`.

## Summary mode

Switch to **Summary** to turn rows into numbers:

- **Metrics** (up to 6): `count`, `sum`, `avg`, `min`, `max`, `count_distinct`.
- **Group by** up to 3 columns, for example `status` and `currency`.
- **Bucket** by minute, hour, day, week or month to get a chart over time.

Example: count and total `amount` per day where `status` is `captured`.

## Export

Click **Export CSV** to download rows or summaries (up to 10,000 rows). Cells that start with `=`, `+`, `-` or `@` get a leading `'` so spreadsheets don't run them as formulas.

## Share

The whole query is stored in the URL. Copy it, or save it as a [view](https://docs.logstrace.dev/guides/exploring/saved-views).


## Sitemap

See the full [sitemap](https://docs.logstrace.dev/sitemap.md) for all pages.
