public interface FormattedAuditEvent
| Modifier and Type | Method and Description |
|---|---|
String |
action()
The audit event action.
|
String |
actorUrn()
The audit event actor as URN string.
|
Map<String,Object> |
attributes()
The audit event attributes that will be stored in the database.
|
String |
messageTemplate()
The message template string that will be used to present the audit event to humans.
|
String |
namespace()
The audit event namespace.
|
String |
objectUrn()
The audit event object as URN.
|
String actorUrn()
AuditActor.urn() to build the URN!
Examples:
urn:graylog:user:jane
urn:graylog:node:28164cbe-4ad9-4c9c-a76e-088655aa7889String namespace()
server.String objectUrn()
urn:graylog:dashboard:56f2fdefa0275b357744230c:widget:57ab37cc67d0cb54582d43a0
urn:graylog:message_input:56f2fdefa0275b357744230c
urn:graylog:pipeline-rule:57ab37cc67d0cb54582d43a0String action()
create
delete
update
start
stopString messageTemplate()
attributes() as well as the following fields can be used as variables.
"Message input ${input_name} created"Map<String,Object> attributes()
messageTemplate() should be in here.
Make sure you do not store any sensitive information like passwords and API tokens!Copyright © 2012–2021 Graylog, Inc.. All rights reserved.