Interface FormattedAuditEvent


public interface FormattedAuditEvent
  • Method Details

    • actorUrn

      String actorUrn()
      The audit event actor as URN string. Use AuditActor.urn() to build the URN! Examples: urn:graylog:user:jane urn:graylog:node:28164cbe-4ad9-4c9c-a76e-088655aa7889
      Returns:
      the actor URN
    • namespace

      String namespace()
      The audit event namespace. Each plugin should have its own, unique namespace. The Graylog server namespace is server.
      Returns:
      namespace string
    • objectUrn

      String objectUrn()
      The audit event object as URN. Examples: urn:graylog:dashboard:56f2fdefa0275b357744230c:widget:57ab37cc67d0cb54582d43a0 urn:graylog:message_input:56f2fdefa0275b357744230c urn:graylog:pipeline-rule:57ab37cc67d0cb54582d43a0
      Returns:
      the object URN
    • action

      String action()
      The audit event action. A simple string that identifies the action for the object. Examples: create delete update start stop
      Returns:
      the action
    • messageTemplate

      String messageTemplate()
      The message template string that will be used to present the audit event to humans. All data in attributes() as well as the following fields can be used as variables.
      • actor
      • namespace
      • object
      • action
      Examples: "Message input ${input_name} created"
      Returns:
    • attributes

      Map<String,Object> attributes()
      The audit event attributes that will be stored in the database. All information that is needed by the messageTemplate() should be in here. Make sure you do not store any sensitive information like passwords and API tokens!
      Returns:
      the audit event attributes