Ad Widget

Collapse

More items from one logfile via logrt

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • skupko.sk
    Junior Member
    • Apr 2018
    • 8

    #1

    More items from one logfile via logrt

    Is it possible to get more items analyzing the same line of logfile?

    Read the documentation of Zabbix log file monitoring, but it is not obvious whether Zabbix is storing the file size and offset per item or per log file.
    I need to write monitoring for rsyslog server. It is capable to write performance statistics to local files.

    Line example:
    Apr 22 06:29:19 127.0.0.1 syslog.debug rsyslogd-pstats: ABC queue: origin=core.queue size=0 enqueued=158665149 full=0 discarded.full=0 discarded.nf=0 maxqsize=1375

    I need to get values of size, enqueued, full and maxqsize.
    Those files are not large, thus should not cause any performance issues on Zabbix agent side (up to 200MB per week).

    Know there are other possibilities with use of logtail preprocessing and Zabbix sender, but use of logrt could be much simpler approach according the amount of processed data.
  • skupko.sk
    Junior Member
    • Apr 2018
    • 8

    #2
    Found the answer by myself on this forum. Very nice description of how the more log entries in one source file are processed.

    Comment

    Working...