DS 7.1.8

File Based HTTP Access Log Publisher

File Based HTTP Access Log Publishers publish HTTP access messages to the file system.

Parent

The File Based HTTP Access Log Publisher object inherits from HTTP Access Log Publisher.

Dependencies

File Based HTTP Access Log Publishers depend on the following objects:

File Based HTTP Access Log Publisher Properties

You can use configuration expressions to set property values at startup time. For details, see Property Value Substitution.

Basic Properties Advanced Properties

append
enabled
log-file
log-file-permissions
log-format
log-record-time-format
retention-policy
rotation-policy

asynchronous
auto-flush
buffer-size
java-class
queue-size
time-interval

Basic Properties

Use the --advanced option to access advanced properties.

append

Synopsis

Specifies whether to append to existing log files.

Default Value

true

Allowed Values

true

false

Multi-valued

No

Required

No

Admin Action Required

None

Advanced

No

Read-Only

No

enabled

Synopsis

Indicates whether the Log Publisher is enabled for use.

Default Value

None

Allowed Values

true

false

Multi-valued

No

Required

Yes

Admin Action Required

None

Advanced

No

Read-Only

No

log-file

Synopsis

The file name to use for the log files generated by the File Based HTTP Access Log Publisher. The path to the file is relative to the server root.

Default Value

None

Allowed Values

A path to an existing file that is readable by the server.

Multi-valued

No

Required

Yes

Admin Action Required

The object must be disabled and re-enabled for changes to take effect.

Advanced

No

Read-Only

No

log-file-permissions

Synopsis

The UNIX permissions of the log files created by this File Based HTTP Access Log Publisher.

Default Value

640

Allowed Values

A valid UNIX mode string. The mode string must contain three digits between zero and seven.

Multi-valued

No

Required

Yes

Admin Action Required

None

Advanced

No

Read-Only

No

log-format

Synopsis

Specifies how log records should be formatted and written to the HTTP access log.

Default Value

cs-host c-ip cs-username x-datetime cs-method cs-uri-stem cs-uri-query cs-version sc-status cs(User-Agent) x-connection-id x-etime x-transaction-id

Allowed Values

A space separated list of fields describing the extended log format to be used for logging HTTP accesses. Available values are listed on the W3C working draft http://www.w3.org/TR/WD-logfile.html and Microsoft website https://docs.microsoft.com/en-us/windows/win32/http/w3c-logging OpenDJ supports the following standard fields: "c-ip", "c-port", "cs-host", "cs-method", "cs-uri", "cs-uri-stem", "cs-uri-query", "cs(User-Agent)", "cs-username", "cs-version", "s-computername", "s-ip", "s-port", "sc-status". OpenDJ supports the following application specific field extensions: "x-connection-id" displays the internal connection ID assigned to the HTTP client connection, "x-datetime" displays the completion date and time for the logged HTTP request and its ouput is controlled by the "ds-cfg-log-record-time-format" property, "x-etime" displays the total execution time for the logged HTTP request, "x-transaction-id" displays the transaction id associated to a request

Multi-valued

No

Required

No

Admin Action Required

None

Advanced

No

Read-Only

No

log-record-time-format

Synopsis

Specifies the format string that is used to generate log record timestamps.

Default Value

dd/MMM/yyyy:HH:mm:ss Z

Allowed Values

Any valid format string that can be used with the java.text.SimpleDateFormat class.

Multi-valued

No

Required

No

Admin Action Required

None

Advanced

No

Read-Only

No

retention-policy

Synopsis

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

Description

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

Default Value

No retention policy is used and log files are never cleaned.

Allowed Values

The name of an existing log-retention-policy.

Multi-valued

Yes

Required

No

Admin Action Required

None

Advanced

No

Read-Only

No

rotation-policy

Synopsis

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

Description

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

Default Value

No rotation policy is used and log rotation will not occur.

Allowed Values

The name of an existing log-rotation-policy.

Multi-valued

Yes

Required

No

Admin Action Required

None

Advanced

No

Read-Only

No

Advanced Properties

Use the --advanced option to access advanced properties.

asynchronous

Synopsis

Indicates whether the File Based HTTP Access Log Publisher will publish records asynchronously.

Default Value

true

Allowed Values

true

false

Multi-valued

No

Required

Yes

Admin Action Required

None

Advanced

Yes

Read-Only

No

auto-flush

Synopsis

Specifies whether to flush the writer after every log record.

Description

If the asynchronous writes option is used, the writer is flushed after all the log records in the queue are written.

Default Value

true

Allowed Values

true

false

Multi-valued

No

Required

No

Admin Action Required

None

Advanced

Yes

Read-Only

No

buffer-size

Synopsis

Specifies the log file buffer size.

Default Value

64kb

Allowed Values

Uses size syntax.

Lower limit: 1.

Multi-valued

No

Required

No

Admin Action Required

None

Advanced

Yes

Read-Only

No

java-class

Synopsis

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

Default Value

org.opends.server.loggers.TextHTTPAccessLogPublisher

Allowed Values

A Java class that extends or implements:

  • org.opends.server.loggers.LogPublisher

Multi-valued

No

Required

Yes

Admin Action Required

None

Advanced

Yes

Read-Only

No

queue-size

Synopsis

The maximum number of log records that can be stored in the asynchronous queue.

Default Value

5000

Allowed Values

An integer.

Lower limit: 1.

Multi-valued

No

Required

No

Admin Action Required

None

Advanced

Yes

Read-Only

No

time-interval

Synopsis

Specifies the interval at which to check whether the log files need to be rotated.

Default Value

5s

Allowed Values

Lower limit: 1 milliseconds.

Multi-valued

No

Required

No

Admin Action Required

None

Advanced

Yes

Read-Only

No

Copyright © 2010-2024 ForgeRock, all rights reserved.