Skip to content

Configure log output for the Pulsar outbound connector

For the complete documentation index see: llms.txt

All documentation pages available in markdown.

The logging section in aerospike-pulsar-outbound.yml defines where the Pulsar outbound connector writes logs, how many rotated files to keep, the log level for each logger, and the log format.

Logging

The logging section of the aerospike-pulsar-outbound.yml file controls log output. Generated log files are rotated daily. The last 30 days of logs are retained by default.

OptionRequiredDefaultDescription
filenoN/AThe output log file path. Rotated logs are placed in the same folder as this log file.
enable-console-loggingnofalseWhen set to true and a log file is specified, logging is sent to both console and the log file. enable-console-logging is false by default but if a log file is not specified, it is forced to true.
max-historyno30Maximum number of log files to retain.
levelsnoN/AMap from logger name to its log level. Valid log levels are error, warn, info, debug, and trace.
ticker-intervalno10Ticker log interval in seconds.
formatnosimpleFormat of the log. See Logging Formats Section for more details.

Logging formats

Logs can be output in one of the following logging formats:

FormatDescription
simpleSimple space delimited format of a log line.
jsonJSON formatted logs.

Example

logging:
file: /var/log/aerospike-pulsar-outbound/aerospike-pulsar-outbound.log
levels:
root: info # Set default logging level to info.
record-parser: debug # The Aerospike record parser class.
server: debug # The server class logs.
com.aerospike.connect: debug # Set all the classes to default log level.