The application.properties file

This file is optional and applies to both batch mode and stream mode. It defines the application-related configurations such as log level properties, the Data Collector settings, and Apache Kafka client Transport Layer Security (TLS) settings.

Log level properties

logging.level.com.ibm.zmanage.cdpz.collection
Defines the log level for the code that is related to the Data Collector only. Change the value of this parameter only affects the log level for phases including collection, parse, and Apache Kafka client. Allowed values are ERROR, WARN, INFO, DEBUG, and TRACE. The default value is INFO.

Data Collector setting properties

dc.pk-level
The level of Apache Kafka producer key.
dc.topic-partition-num
The default number of partitions to create new topics.
dc.topic-replica-factor
The default number of replica-factor to create new topics.

Apache Kafka client Transport Layer Security (TLS) settings

For detailed instructions on how to define parameters to enable TLS communications with the Apache Kafka server, see Updating the configuration file of the Data Collector.

Sample configuration:
# ****** log level  ******
logging.level.com.ibm.zmanage.cdpz.collection=INFO


# pk-level=1: Using lpar as the producer key.
# pk-level=2: Using lpar_subtype as the producer key.
# pk-level=3: Using lpar_subtype_date as the producer key.
dc.pk-level=1
dc.topic-partition-num=3
dc.topic-replica-factor=1

# -------------------------------------------------------------------------------------------
# Basic Kafka client SSL settings
# -------------------------------------------------------------------------------------------
#spring.kafka.properties.security.protocol=SSL
#spring.kafka.properties.ssl.truststore.type=PKCS12
#spring.kafka.properties.ssl.truststore.location=/u/kafka/ssl/client.truststore.p12
#spring.kafka.properties.ssl.truststore.password=test1234

# -------------------------------------------------------------------------------------------
# Additional Kafka client SSL settings if client authentication is required
# -------------------------------------------------------------------------------------------
#spring.kafka.properties.ssl.keystore.type=PKCS12
#spring.kafka.properties.ssl.keystore.location=/u/kafka/ssl/client.keystore.p12
#spring.kafka.properties.ssl.keystore.password=test1234
#spring.kafka.properties.ssl.key.password=test1234