Interface JsonFileHttpAccessLogPublisherCfg

All Superinterfaces:
Configuration, HttpAccessLogPublisherCfg, LogPublisherCfg

public interface JsonFileHttpAccessLogPublisherCfg extends HttpAccessLogPublisherCfg
A server-side interface for querying JSON File Based HTTP Access Log Publisher settings.

JSON File Based HTTP Access Log Publishers Publish access messages to Json files.

  • Method Details

    • configurationClass

      Class<? extends JsonFileHttpAccessLogPublisherCfg> configurationClass()
      Gets the configuration class associated with this JSON File Based HTTP Access Log Publisher.
      Specified by:
      configurationClass in interface Configuration
      Specified by:
      configurationClass in interface HttpAccessLogPublisherCfg
      Specified by:
      configurationClass in interface LogPublisherCfg
      Returns:
      Returns the configuration class associated with this JSON File Based HTTP Access Log Publisher.
    • addJsonFileHttpAccessChangeListener

      void addJsonFileHttpAccessChangeListener(ConfigurationChangeListener<JsonFileHttpAccessLogPublisherCfg> listener)
      Register to be notified when this JSON File Based HTTP Access Log Publisher is changed.
      Parameters:
      listener - The JSON File Based HTTP Access Log Publisher configuration change listener.
    • removeJsonFileHttpAccessChangeListener

      void removeJsonFileHttpAccessChangeListener(ConfigurationChangeListener<JsonFileHttpAccessLogPublisherCfg> listener)
      Deregister an existing JSON File Based HTTP Access Log Publisher configuration change listener.
      Parameters:
      listener - The JSON File Based HTTP Access Log Publisher configuration change listener.
    • getJavaClass

      String getJavaClass()
      Gets the "java-class" property.

      The fully-qualified name of the Java class that provides the JSON File Based HTTP Access Log Publisher implementation.

      Default value: org.opends.server.loggers.CommonAuditHTTPAccessLogPublisher

      Specified by:
      getJavaClass in interface HttpAccessLogPublisherCfg
      Specified by:
      getJavaClass in interface LogPublisherCfg
      Returns:
      Returns the value of the "java-class" property.
    • getLogDirectory

      Path getLogDirectory()
      Gets the "log-directory" property.

      The directory to use for the log files generated by the JSON File Based HTTP 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.
    • getLogFieldBlacklist

      SortedSet<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 an unmodifiable set containing the values of the "log-field-blacklist" property.
    • getLogFieldWhitelist

      SortedSet<String> getLogFieldWhitelist()
      Gets the "log-field-whitelist" property.

      List of fields that the server includes in access log messages.

      Valid values for this property are JSON paths for fields present in the log file.

      Returns:
      Returns an unmodifiable set containing the values of the "log-field-whitelist" property.
    • getLogFileNamePrefix

      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: http-access

      Returns:
      Returns the value of the "log-file-name-prefix" property.
    • getRetentionPolicy

      SortedSet<String> getRetentionPolicy()
      Gets the "retention-policy" property.

      The retention policy to use for the JSON File Based HTTP Access Log Publisher.

      When multiple policies are used, log files are cleaned when any of the policy's conditions are met.

      Returns:
      Returns an unmodifiable set containing the values of the "retention-policy" property.
    • getRetentionPolicyDns

      SortedSet<Dn> getRetentionPolicyDns()
      Gets the "retention-policy" property as a set of DNs.

      The retention policy to use for the JSON File Based HTTP Access Log Publisher.

      When multiple policies are used, log files are cleaned when any of the policy's conditions are met.

      Returns:
      Returns the DN values of the "retention-policy" property.
    • getRotationPolicy

      SortedSet<String> getRotationPolicy()
      Gets the "rotation-policy" property.

      The rotation policy to use for the JSON File Based HTTP Access Log Publisher.

      When multiple policies are used, rotation will occur if any policy's conditions are met.

      Returns:
      Returns an unmodifiable set containing the values of the "rotation-policy" property.
    • getRotationPolicyDns

      SortedSet<Dn> getRotationPolicyDns()
      Gets the "rotation-policy" property as a set of DNs.

      The rotation policy to use for the JSON File Based HTTP Access Log Publisher.

      When multiple policies are used, rotation will occur if any policy's conditions are met.

      Returns:
      Returns the DN values of the "rotation-policy" property.