1. Sitecore.CH.Cli.Plugin.Audit.Commands

Class TailCommand

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

Inheritance

object

System.CommandLine.Symbol

System.CommandLine.IdentifierSymbol

Command

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

Sitecore.CH.Cli.Core.Abstractions.Commands.BaseCommandSitecore.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

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:

ch-cli audit tail --source Raw

Tail a log with filer:

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

Change the polling interval to 30 seconds:

ch-cli audit tail --source User --polling-interval `00:00`:30
If you have suggestions for improving this article, let us know!