Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.0.58+ Dropeventsfilter plugin ignoring Debug flag settings in config file #305

Open
michaelhigham opened this issue Jul 13, 2022 · 0 comments

Comments

@michaelhigham
Copy link
Contributor

In versions greater than v3.0.58, the dropeventsfilter plugin is ignoring the debug flag settings in the config file. This is causing the syslog to fill up with INFO and drop-events plugin log entries:

root@solr-stats-prod-02:/tmp# /usr/bin/logagent --config /etc/sematext/logagent.conf
2022-07-12T09:55:20.734Z v3.0.68 pid[19596] add files to plugin list
2022-07-12T09:55:20.737Z v3.0.68 pid[19596] init filter: inputFilter
2022-07-12T09:55:20.737Z v3.0.68 pid[19596] init filter: outputFilter
2022-07-12T09:55:20.738Z v3.0.68 pid[19596] set cfg to debug=false for drop-events
2022-07-12T09:55:20.738Z v3.0.68 pid[19596] load outputFilter: 0 drop-events
2022-07-12T09:55:20.738Z v3.0.68 pid[19596] init plugins
2022-07-12T09:55:20.739Z v3.0.68 pid[19596] ../lib/plugins/input/stdin
2022-07-12T09:55:20.751Z v3.0.68 pid[19596] ../lib/plugins/output/stdout
2022-07-12T09:55:20.756Z v3.0.68 pid[19596] ../lib/plugins/output/elasticsearch.js
2022-07-12T09:55:20.764Z v3.0.68 pid[19596] ../lib/plugins/output/elasticsearch
2022-07-12T09:55:20.764Z v3.0.68 pid[19596] ../lib/plugins/input/files
2022-07-12T09:55:20.809Z v3.0.68 pid[19596] using glob pattern: {/var/solr/logs/solr.log,/var/solr/logs/solr_slow_requests.1log}
2022-07-12T09:55:20.897Z v3.0.68 pid[19596] Logagent report: pid[19596] 403 ms 0 lines parsed. 0 lines/s 0.000 MB/s - empty lines: 0
2022-07-12T09:55:20.897Z v3.0.68 pid[19596] Logagent stats: tokens.used=0 logs.shipped=0 http.failed=0 http.retranstmit=0 parser.throughput.lps=0 parser.throughput.bps=0 parser.lines.parsed=0
2022-07-12T09:55:20.898Z v3.0.68 pid[19596] Memory stats: heapUsedMB=20 heapTotalMB=35 memoryRSSMB=63
2022-07-12T09:55:20.898Z v3.0.68 pid[19596] Logagent initialized
2022-07-12T09:55:20.910Z v3.0.68 pid[19596] Watching file:/var/solr/logs/solr_slow_requests.log from position: 4385606
2022-07-12T09:55:20.910Z v3.0.68 pid[19596] Watching file:/var/solr/logs/solr.log from position: 7340032
undefined
drop-events plugin: true - - -
INFO
drop-events plugin: true - - -
INFO
drop-events plugin: true - - -
INFO
drop-events plugin: true - - -
INFO
drop-events plugin: true - - -
INFO

The issue is present in versions v3.0.68 - v3.1.2 and seems to have been introduced by this commit.

michaelhigham added a commit that referenced this issue Jul 18, 2022
Fix for debug flag ignore issue:

#305
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant