Disable "amazon_es" output plugin console logs

Hi,

I use a docker logstash (7.1.1) and write to AWS ES via amazon_es output plugin.

The plugin as such works fine, but then all the messages are printed on the console and that generates a lot of I/O on disk, making the box unresponsive.

I have tried ,
1.setting logstash.yml log.level: error, doesn't help
2. Overwrote log4j2.properties with this content, doesn't help either

status = error
name = PropertiesConfig
    filters = threshold

filter.threshold.type = ThresholdFilter
filter.threshold.level = debug

appenders = console

appender.console.type = Console
appender.console.name = STDOUT
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = %d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n

rootLogger.level = error
rootLogger.appenderRefs = stdout
rootLogger.appenderRef.stdout.ref = STDOUT

Are there other ways to switch off console logs?

Appreciate your help on this.

Thanks,
Arun

Hi,
It turned out to be the default, /usr/share/logstash/pipeline/logstash.conf that was writing to the console. Since it's a Docker installation I overwrote the file in the "volumes" section.

And that has resolved the issue.

Thanks,
Arun

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.