Package org.forgerock.audit.handlers.csv
Class CsvAuditEventHandlerConfiguration
java.lang.Object
org.forgerock.audit.events.handlers.EventHandlerConfiguration
org.forgerock.audit.events.handlers.FileBasedEventHandlerConfiguration
org.forgerock.audit.handlers.csv.CsvAuditEventHandlerConfiguration
A configuration for CSV audit event handler.
 
This configuration object can be created from JSON. Example of valid JSON configuration:
  {
    "name" : "csv",
    "topics": [ "access", "activity", "config", "authentication" ],
    "logDirectory" : "/path/to/audit/files/",
    "formatting" : {
      "quoteChar" : "\"",
      "delimiterChar" : ",",
      "endOfLineSymbols" : "\n"
    },
    "buffering" : {
      "enabled" : "true",
      "autoFlush" : "true"
    }
  }
 - 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classContains the csv writer configuration parameters.static classConfiguration of event buffering.Nested classes/interfaces inherited from class org.forgerock.audit.events.handlers.FileBasedEventHandlerConfiguration
FileBasedEventHandlerConfiguration.FileRetention, FileBasedEventHandlerConfiguration.FileRotation - 
Field Summary
FieldsModifier and TypeFieldDescriptionEvent buffering is disabled by default. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionReturns the configuration for events buffering.Returns the CSV formatting options.Returns the directory where CSV file is located.booleanStates if anAuditEventHandlercan be used for queries.voidsetBufferingConfiguration(CsvAuditEventHandlerConfiguration.EventBufferingConfiguration bufferingConfiguration) Sets the configuration for events buffering.voidSets the CSV formatting options.voidsetLogDirectory(String directory) Sets the directory where CSV 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 
- 
Field Details
- 
buffering
@JsonPropertyDescription("audit.handlers.csv.buffering") protected CsvAuditEventHandlerConfiguration.EventBufferingConfiguration bufferingEvent buffering is disabled by default. 
 - 
 - 
Constructor Details
- 
CsvAuditEventHandlerConfiguration
public CsvAuditEventHandlerConfiguration() 
 - 
 - 
Method Details
- 
getLogDirectory
Returns the directory where CSV file is located.- Returns:
 - the location of the CSV file.
 
 - 
setLogDirectory
Sets the directory where CSV file is located.- Parameters:
 directory- the directory.
 - 
getFormatting
Returns the CSV formatting options.- Returns:
 - the CSV formatting options.
 
 - 
setFormatting
Sets the CSV formatting options.- Parameters:
 formatting- the CSV formatting options to set.
 - 
getBuffering
Returns the configuration for events buffering.- Returns:
 - the configuration
 
 - 
setBufferingConfiguration
public void setBufferingConfiguration(CsvAuditEventHandlerConfiguration.EventBufferingConfiguration bufferingConfiguration) Sets the configuration for events buffering.- Parameters:
 bufferingConfiguration- The configuration
 - 
isUsableForQueries
public boolean isUsableForQueries()Description copied from class:EventHandlerConfigurationStates if anAuditEventHandlercan be used for queries.- Specified by:
 isUsableForQueriesin classEventHandlerConfiguration- Returns:
 - True - If the 
AuditEventHandlercan be used for queries. False - If theAuditEventHandlercan not be used for queries. 
 
 -