Ad Widget

Collapse

Monitoring selfmade logfile, what format do I need?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MarkusL
    Member
    • Nov 2008
    • 41

    #1

    Monitoring selfmade logfile, what format do I need?

    Hi all!

    I´m facing a little problem with logfiles.
    I create some logfiles from batchjobs which I want to monitor with a Zabbix Active Agent (log[/bla/log.txt,ERROR]).

    Now zabbix gives a format with Timestamp, Local Time, Source, Severity, Value.

    My question is

    1. how to build the logfile to match this format?
    (f.e. 2009.05.04, 17.40h#8050#ERROR#Something goes wrong) where # are the delimiter for zabbix

    2. do I have to pass this delimiter to zabbix-item and if yes, how? :-)


    At the moment Timestamp is filled with zabbix-internal time, when the log-entry arrives (ok), Local Time and Source are empty, Severity is always Not classified (could change that with ,ERROR in item-expression; I know,...) and value gives me the hole string from 1. (2009.05.04, 17.40h#8050#ERROR#Something goes wrong) which is not the goal.


    To complete that, there is a thread discussing this problem, but without a result:



    Thanks for your help,

    kind regards,

    Markus.
Working...