Class ElasticsearchAuditEventHandlerConfiguration

java.lang.Object
org.forgerock.audit.events.handlers.EventHandlerConfiguration
org.forgerock.audit.handlers.elasticsearch.ElasticsearchAuditEventHandlerConfiguration

public class ElasticsearchAuditEventHandlerConfiguration extends EventHandlerConfiguration
A configuration for Elasticsearch audit event handler.

This configuration object can be created from JSON. Example of valid JSON configuration:

  {
    "name" : "elasticsearch",
    "topics": [ "access", "activity", "config", "authentication" ],
    "connection" : {
      "useSSL" : true,
      "host" : "localhost",
      "port" : 9200,
      "username" : "myUsername",
      "password" : "myPassword"
    },
    "indexMapping" : {
      "indexName" : "audit"
    },
    "buffering" : {
      "enabled" : true,
      "maxSize" : 10000,
      "writeInterval" : "250 millis",
      "maxBatchedEvents" : 500
    }
  }