I want to write data coming into logstash to a log file.
I tried many plugins to write data to log file but it didn't work.
And I edit log4j2 settings like
logger.logstash_stdout.name = logstash.outputs.stdout
logger.logstash_stdout.level = info
logger.logstash_stdout.appenderRef.rolling.ref = plain_rolling
I think you need this... what you are trying to set is just for the logs that are internally generated by logstash not the events that you are collecting through a pipeline.
It was work. However I worry about the performance degradation.
The pipeline opens and closes the system log file whenever data comes in and writes the behavior to pipeline log.
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.