Class TailCommand

Current version: 4.0

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

Inheritance
object
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
RequestResponse
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:

RequestResponse
ch-cli audit tail --source Raw

Tail a log with filer:

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

Change the polling interval to 30 seconds:

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

Do you have some feedback for us?

If you have suggestions for improving this article,