Interface JsonFileAccessLogPublisherCfgClient
- All Superinterfaces:
AccessLogPublisherCfgClient, CommonAuditAccessLogPublisherCfgClient, ConfigurationClient, LogPublisherCfgClient
JSON File Based Access Log Publishers publish access messages to JSON files.
-
Method Summary
Modifier and TypeMethodDescriptionManagedObjectDefinition<? extends JsonFileAccessLogPublisherCfgClient, ? extends JsonFileAccessLogPublisherCfg> Get the configuration definition associated with this JSON File Based Access Log Publisher.Gets the "java-class" property.Gets the "log-directory" property.Gets the "log-field-blacklist" property.Gets the "log-file-name-prefix" property.Gets the "log-file-permissions" property.Gets the "retention-policy" property.Gets the "rotation-policy" property.voidsetJavaClass(ValueOrExpression<String> value) Sets the "java-class" property.voidsetLogDirectory(ValueOrExpression<Path> value) Sets the "log-directory" property.voidSets the "log-field-blacklist" property.voidSets the "log-file-name-prefix" property.voidSets the "log-file-permissions" property.voidsetRetentionPolicy(Collection<ValueOrExpression<String>> values) Sets the "retention-policy" property.voidsetRotationPolicy(Collection<ValueOrExpression<String>> values) Sets the "rotation-policy" property.Methods inherited from interface AccessLogPublisherCfgClient
createAccessLogFilteringCriteria, getAccessLogFilteringCriteria, getFilteringPolicy, isSuppressInternalOperations, isSuppressSynchronizationOperations, listAccessLogFilteringCriteria, removeAccessLogFilteringCriteria, setFilteringPolicy, setSuppressInternalOperations, setSuppressSynchronizationOperationsMethods inherited from interface CommonAuditAccessLogPublisherCfgClient
getExcludeValuesOfAttributes, getIncludeValuesOfAttributes, isLogControls, isLogModifiedAttributeValues, setExcludeValuesOfAttributes, setIncludeValuesOfAttributes, setLogControls, setLogModifiedAttributeValuesMethods inherited from interface ConfigurationClient
commit, propertiesMethods inherited from interface LogPublisherCfgClient
isEnabled, setEnabled
-
Method Details
-
definition
ManagedObjectDefinition<? extends JsonFileAccessLogPublisherCfgClient, ? extends JsonFileAccessLogPublisherCfg> definition()Get the configuration definition associated with this JSON File Based Access Log Publisher.- Specified by:
definitionin interfaceAccessLogPublisherCfgClient- Specified by:
definitionin interfaceCommonAuditAccessLogPublisherCfgClient- Specified by:
definitionin interfaceConfigurationClient- Specified by:
definitionin interfaceLogPublisherCfgClient- Returns:
- Returns the configuration definition associated with this JSON File Based Access Log Publisher.
-
getJavaClass
Gets the "java-class" property.The fully-qualified name of the Java class that provides the JSON File Based Access Log Publisher implementation.
Default value:
org.opends.server.loggers.JsonFileAccessLogPublisher- Specified by:
getJavaClassin interfaceAccessLogPublisherCfgClient- Specified by:
getJavaClassin interfaceLogPublisherCfgClient- Returns:
- Returns the value of the "java-class" property.
-
setJavaClass
Sets the "java-class" property.The fully-qualified name of the Java class that provides the JSON File Based Access Log Publisher implementation.
- Specified by:
setJavaClassin interfaceAccessLogPublisherCfgClient- Specified by:
setJavaClassin interfaceLogPublisherCfgClient- Parameters:
value- The value of the "java-class" property.- Throws:
PropertyException- If the new value is invalid.
-
getLogDirectory
Gets the "log-directory" property.The directory to use for the log files generated by the JSON File Based Access Log Publisher. The path to the directory is relative to the server root.
Default value:
logs- Returns:
- Returns the value of the "log-directory" property.
-
setLogDirectory
Sets the "log-directory" property.The directory to use for the log files generated by the JSON File Based Access Log Publisher. The path to the directory is relative to the server root.
- Parameters:
value- The value of the "log-directory" property.- Throws:
PropertyException- If the new value is invalid.
-
getLogFieldBlacklist
SortedSet<ValueOrExpression<String>> getLogFieldBlacklist()Gets the "log-field-blacklist" property.List of fields that the server omits from access log messages.
Valid values for this property are JSON paths for fields present in the log file.
- Returns:
- Returns the values of the "log-field-blacklist" property.
-
setLogFieldBlacklist
Sets the "log-field-blacklist" property.List of fields that the server omits from access log messages.
Valid values for this property are JSON paths for fields present in the log file.
- Parameters:
values- The values of the "log-field-blacklist" property.- Throws:
PropertyException- If one or more of the new values are invalid.
-
getLogFileNamePrefix
ValueOrExpression<String> getLogFileNamePrefix()Gets the "log-file-name-prefix" property.File name prefix (without extension) for CSV and JSON file based access log publishers.
Default value:
ldap-access- Returns:
- Returns the value of the "log-file-name-prefix" property.
-
setLogFileNamePrefix
Sets the "log-file-name-prefix" property.File name prefix (without extension) for CSV and JSON file based access log publishers.
- Parameters:
value- The value of the "log-file-name-prefix" property.- Throws:
PropertyException- If the new value is invalid.
-
getLogFilePermissions
Gets the "log-file-permissions" property.The UNIX permissions of the log files created by this JSON File Based Access Log Publisher.
Default value:
640- Returns:
- Returns the value of the "log-file-permissions" property.
-
setLogFilePermissions
@MandatoryProperty void setLogFilePermissions(ValueOrExpression<String> value) throws PropertyException Sets the "log-file-permissions" property.The UNIX permissions of the log files created by this JSON File Based Access Log Publisher.
- Parameters:
value- The value of the "log-file-permissions" property.- Throws:
PropertyException- If the new value is invalid.
-
getRetentionPolicy
SortedSet<ValueOrExpression<String>> getRetentionPolicy()Gets the "retention-policy" property.The retention policy to use for the JSON File Based Access Log Publisher.
When multiple policies are used, log files are cleaned when any of the policy's conditions are met.
- Returns:
- Returns the values of the "retention-policy" property.
-
setRetentionPolicy
Sets the "retention-policy" property.The retention policy to use for the JSON File Based Access Log Publisher.
When multiple policies are used, log files are cleaned when any of the policy's conditions are met.
- Parameters:
values- The values of the "retention-policy" property.- Throws:
PropertyException- If one or more of the new values are invalid.
-
getRotationPolicy
SortedSet<ValueOrExpression<String>> getRotationPolicy()Gets the "rotation-policy" property.The rotation policy to use for the JSON File Based Access Log Publisher.
When multiple policies are used, rotation will occur if any policy's conditions are met.
- Returns:
- Returns the values of the "rotation-policy" property.
-
setRotationPolicy
Sets the "rotation-policy" property.The rotation policy to use for the JSON File Based Access Log Publisher.
When multiple policies are used, rotation will occur if any policy's conditions are met.
- Parameters:
values- The values of the "rotation-policy" property.- Throws:
PropertyException- If one or more of the new values are invalid.
-