Colin_K
December 21, 2021, 9:41pm
1
When I use the file output plugin I see INFO log lines that we are opening and closing a file to write to.
But when using the s3 output plugin I get writes but no logging.
log4j2.properties
status = debug
name = LogstashRspecConfig
appender.console.type = Console
appender.console.name = console
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = [%d{ISO8601}][%-5p][%-25c] %m%n
rootLogger.level = debug
rootLogger.appenderRef.console.ref = console
Badger
December 21, 2021, 11:01pm
2
Correct. The output does not log informational messages.
Colin_K
December 22, 2021, 12:21am
3
Badger
December 22, 2021, 12:35am
4
Indeed the output does have some DEBUG messages , but I do not see any INFO messages.
Colin_K
December 22, 2021, 1:07am
5
Debug messages as referenced aren't appearing with the provided log4j configuration. The question is how do we get logging output.
Badger
December 22, 2021, 1:29am
6
Well you could set --log.level to DEBUG, but that affects everything. When I configure an s3 input and call
curl -XGET 'localhost:9600/_node/logging?pretty'
then "logstash.inputs.s3" : "INFO",
is in the list so you could try
curl -XPUT 'localhost:9600/_node/logging?pretty' -H 'Content-Type: application/json' -d'{ "logstash.inputs.s3" : "DEBUG" }'
You could also try appending
logger.randomname.name = logstash.inputs.s3
logger.randomname.level = DEBUG
to your log4j2.properties but I am not sure on that one.
Colin_K
December 22, 2021, 11:07am
7
I will try the CLI flag and take a look. Think there must be something wrong with the log4j2 config if messages are supposed to exist.
system
(system)
Closed
January 19, 2022, 11:07am
8
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.