Class TailCommand
Tails the specified audit log from the selected Content Hub instance.
Inheritance
object
System.CommandLine.Symbol
System.CommandLine.IdentifierSymbol
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
RequestResponse
public class TailCommand : BaseCommand<TailCommandHandler>Remarks
Required parameters
--source -sSpecifies the source audit log. Possible values: Action, Business, Raw, Reporting, Scripting, Trigger, User
Optional parameters
--filter -fDefines a filter value to reduce the output in the log stream.--poll-interval -pDefines the poll interval. Default value: 1 second--endpoint -eSpecifies an alternative endpoint name for the execution of this command.
Global parameters
-? --help -hShow this help message and exit.-v --verbosityEnables verbose logging.
Examples
Tail a log:
RequestResponse
ch-cli audit tail --source RawTail a log with filer:
RequestResponse
ch-cli audit tail --source User --filter successChange the polling interval to 30 seconds:
RequestResponse
ch-cli audit tail --source User --polling-interval 00:00:30