---
title: kapacitor watch
description: The kapacitor watch command streams logs associated with a task.
url: https://docs.influxdata.com/kapacitor/v1/reference/cli/kapacitor/watch/
estimated_tokens: 179
product: Kapacitor
version: v1
publisher: InfluxData
canonical: https://docs.influxdata.com/kapacitor/v1/reference/cli/kapacitor/watch/
date: '2023-10-03T10:49:57-06:00'
lastmod: '2023-10-03T10:49:57-06:00'
---

The `kapacitor watch` command streams logs associated with a task.

## Usage

```sh
kapacitor watch <task-id> [<tags> ...]
```

## Arguments

* **task-id**: Task ID
* **tags**: Log tag key-value pairs to filter by

## Examples

* [Stream all logs from a task](#stream-all-logs-from-a-task)
* [Stream logs from a task filtered by tags](#stream-logs-from-a-task-filtered-by-tags)

### Stream all logs from a task

```sh
kapacitor watch example-task-id
```

### Stream logs from a task filtered by tags

```sh
kapacitor watch example-task-id level=CRITICAL node=alert2
```

#### Related

* [Kapacitor logging](/kapacitor/v1/working/cli_client/#logging)
* [kapacitor logs](/kapacitor/v1/reference/cli/kapacitor/logs/)
