logstash - How to debug python beaver? -
i have python beaver service running on machine. configured along logstash push logs kibana dashboard. reason beaver not collecting logs of services starting 15min. want debug beaver not sure how so.
i tried running command:
/usr/bin/beaver -c /etc/beaver/conf
the output is
[2014-12-18 16:42:06,084] info starting worker... [2014-12-18 16:42:06,085] info working... [2014-12-18 16:42:06,092] info [fe01g1e15e8] - watching logfile <some-log-file> [2014-12-18 16:42:06,092] info [fe01g1e15ed] - watching logfile <some-log-file> [2014-12-18 16:42:06,093] info [fe01g14105c] - watching logfile <some-log-file> [2014-12-18 16:42:06,193] info starting queue consumer
the functionality working fine. how debug on happened first 15min? also, there no log files beaver
i found out best method debuging beaver work closely open source code.
first of debuging use parameter --debug more log infromation , in code parts collects data or problematic error prints recieve debug messages. can add own prints , temporarily replace code on server in order understand problematic part might be.
from know, problem can in 1 of 2 parts, first part consumes data internal queue , second part gets information queue , sends using selected transport method (in case logstash).
i have pull request waiting approval include prints status of number of messages in queue , number of messages transported (in debug mode) , guess can understand part not working.
Comments
Post a Comment