---
title: "Class TailCommand"
slug: "cli--sitecore.ch.cli.plugin.audit.commands.tailcommand"
abstract: ""
---
# Class TailCommand

Tails the specified audit log from the selected Content Hub instance.

## Inheritance

object

System.CommandLine.Symbol

System.CommandLine.IdentifierSymbol

[Command](https://learn.microsoft.com/dotnet/api/system.commandline.command)

Sitecore.CH.Cli.Core.Abstractions.Commands.BaseCommand

Sitecore.CH.Cli.Core.Abstractions.Commands.BaseCommand<THandler>Sitecore.CH.Cli.Plugin.Audit.CommandHandlers.TailCommandHandler

TailCommand

## Namespace: SitecoreSitecore.CHSitecore.CH.CliSitecore.CH.Cli.PluginSitecore.CH.Cli.Plugin.AuditCommands

## Assembly: Sitecore.CH.Cli.Plugin.Audit.dll

## Syntax

```csharp
public class TailCommand : BaseCommand<TailCommandHandler>
```

## Remarks

**Required parameters**

- `--source -s` Specifies the source audit log. Possible values: Action, Business, Raw, Reporting, Scripting, Trigger, User

**Optional parameters**

- `--filter -f` Defines a filter value to reduce the output in the log stream.
- `--poll-interval -p` Defines the poll interval. Default value: 1 second
- `--endpoint -e` Specifies an alternative endpoint name for the execution of this command.

**Global parameters**

- `-? --help -h` Show this help message and exit.
- `-v --verbosity` Enables verbose logging.

## Examples

Tail a log:

```csharp
ch-cli audit tail --source Raw
```

Tail a log with filer:

```csharp
ch-cli audit tail --source User --filter success
```

Change the polling interval to 30 seconds:

```csharp
ch-cli audit tail --source User --polling-interval `00:00`:30
```
