Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UsageLogger ¶
type UsageLogger struct { // Entry is a log entry *logrus.Entry // contains filtered or unexported fields }
UsageLogger is a trivial audit log sink that forwards an anonymized subset of audit log events to Teleport.
func New ¶
func New(reporter usagereporter.UsageReporter, log logrus.FieldLogger, inner apievents.Emitter) (*UsageLogger, error)
New creates a new usage event IAuditLog impl, which wraps another IAuditLog impl and forwards a subset of audit log events to the cluster UsageReporter service.
func (*UsageLogger) EmitAuditEvent ¶
func (u *UsageLogger) EmitAuditEvent(ctx context.Context, event apievents.AuditEvent) error
Click to show internal directories.
Click to hide internal directories.