I am using logstash log4j2.properties configuration for log controlling e.g. log rotation, log preservation, controlling file name for logging, location of logs etc.
Based on below discussion I used to configure log4j2.properties.
I have 3 pipelines running on my log stash environment.
PipelineA.config, PipelineB.config, PipelineC.config but due to log4j2.properties configuration it is writing only in one log file logfilename.logs
I want 3 different log files for different pipelines, and create 3 separate log files for easy debugging.
PipelineA.config should write in PipelineA.log file.
PipelineB.config should write in PipelineB.log file.
PipelineC.config should write in PipelineC.log file.
# ------------ Other Settings --------------
#
# Where to find custom plugins
# path.plugins: []
#
# Flag to output log lines of each pipeline in its separate log file. Each log filename contains the pipeline.name
# Default is false
pipeline.separate_logs: true
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.