Class JsonAuditEventHandlerConfiguration
java.lang.Object
org.forgerock.audit.events.handlers.EventHandlerConfiguration
org.forgerock.audit.events.handlers.FileBasedEventHandlerConfiguration
org.forgerock.audit.handlers.json.JsonAuditEventHandlerConfiguration
Configuration for
JsonAuditEventHandler.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classConfiguration of event buffering.Nested classes/interfaces inherited from class org.forgerock.audit.events.handlers.FileBasedEventHandlerConfiguration
FileBasedEventHandlerConfiguration.FileRetention, FileBasedEventHandlerConfiguration.FileRotation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets configuration of event buffering.Gets the directory where the JSON file is located.booleanDetermines if JSON format should be transformed to be compatible with ElasticSearch format restrictions.booleanvoidSets configuration of event buffering.voidsetElasticsearchCompatible(boolean elasticsearchCompatible) Specifies if JSON format should be transformed to be compatible with ElasticSearch format restrictions.voidsetLogDirectory(String directory) Sets the directory where the JSON file is located.Methods inherited from class org.forgerock.audit.events.handlers.FileBasedEventHandlerConfiguration
getFileRetention, getFileRotation, getRotationRetentionCheckInterval, setFileRetention, setFileRotation, setRotationRetentionCheckIntervalMethods inherited from class org.forgerock.audit.events.handlers.EventHandlerConfiguration
getName, getTopics, isEnabled, setEnabled, setName, setTopics
-
Constructor Details
-
JsonAuditEventHandlerConfiguration
public JsonAuditEventHandlerConfiguration()
-
-
Method Details
-
getLogDirectory
Gets the directory where the JSON file is located.- Returns:
- location of the JSON file
-
setLogDirectory
Sets the directory where the JSON file is located.- Parameters:
directory- location of the JSON file
-
isElasticsearchCompatible
Determines if JSON format should be transformed to be compatible with ElasticSearch format restrictions.- Returns:
truefor ElasticSearch JSON format compatibility enforcement andfalseotherwise
-
setElasticsearchCompatible
Specifies if JSON format should be transformed to be compatible with ElasticSearch format restrictions.- Parameters:
elasticsearchCompatible-truefor ElasticSearch JSON format compatibility enforcements andfalseotherwise
-
getBuffering
Gets configuration of event buffering.- Returns:
- configuration of event buffering
-
setBuffering
Sets configuration of event buffering.- Parameters:
buffering- configuration of event buffering
-
isUsableForQueries
- Specified by:
isUsableForQueriesin classEventHandlerConfiguration
-