1. TailCommand

Class TailCommand

Version:
日本語翻訳に関する免責事項

このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。

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

Inheritance
System.Object
System.CommandLine.Symbol
System.CommandLine.NamedSymbol
System.CommandLine.Command
Sitecore.CH.Cli.Core.Abstractions.Commands.BaseCommand<Sitecore.CH.Cli.Plugin.Audit.CommandHandlers.TailCommandHandler>
TailCommand
Namespace: Sitecore.CH.Cli.Plugin.Audit.Commands
Assembly: Sitecore.CH.Cli.Plugin.Audit.dll
Syntax
public class TailCommand : BaseCommand<TailCommandHandler>, ICommand, IIdentifierSymbol, ISymbol, ISuggestionSource, IEnumerable<Symbol>, IEnumerable
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
この記事を改善するための提案がある場合は、 お知らせください!