# local

Forces a pipeline to run locally.

```tql
local { … }
```

## Description

The `local` operator takes a pipeline as an argument and forces it to run at a client process.

This operator has no effect when running a pipeline through the API or Tenzir Platform.

## Examples

### Do an expensive sort locally

```tql
export
where @name.starts_with("suricata")
local {
  sort timestamp
}
to_file "eve.json" {
  write_ndjson
}
```

## See Also

* [`remote`](https://preview.docs.tenzir.com/375/375/reference/operators/remote.md)