Kafka CDR Consumer Log Rotation Properties

You can configure log rotation in the Kafka CDR Consumer Helm Chart component using environment variables as values for the SizeBasedTriggeringPolicy and DefaultRolloverStrategy elements of the log4j2.xml file. Kafka CDR Consumer Log File Rotation Environment Variables describes the environment variables that configure log file rotation for Kafka CDR Consumer.

Table 1. Kafka CDR Consumer Log File Rotation Environment Variables
Environment Variable Description
FILE_LOG_SIZE The file size used to trigger log file rollover. The default value is 20 MB.
FILE_LOG_MAX The maximum number of old log file archives. Once this value is reached, older archives are deleted upon later rollovers. The default value is 10.
The following is a log rotation example:
 configuration:
    container:
      environment:
        - name: FILE_LOG_SIZE
          value: '1000 M'
        - name: FILE_LOG_MAX
          value: '100'

For more information about log rotation configuration and related environment variables, see the discussion about log rotation triggering policy in MATRIXX Monitoring and Logging.

You can also fine-tune the logging levels as needed for Kafka CDR Consumer. See the discussion about logging level in MATRIXX Configuration.