Processing the input - the big picture

This section will tell you how a log message transform in an incident, what the delay and pending queues are for, how logpecker eliminates multiple problem reports, and the detailed modus operandi of logpecker.

First Stage: Message Parsing and Matching

As soon as logpecker has finished its initialization, it is watching its input files. When a new line arrives, it is parsed and matched against the rules you have defined. Based on the rules, a so-called incident is created from the input line. If several rules "fire", you get several incidents.

An incident has certain properties:

If there is no rule that matches an input line, logpecker creates a special "unknown" incident type.

Now, when an input line has been parsed and transformed into one or several incidents, the following can happen to them:

Second Stage: Delay Queue

Now, we have created an incident and put it in the delay queue. It hold incidents for a short period to catch message storms and see if this problem would be removed by a "problem resolved" incident that follows directly.

During the delay period, the following can happen:

Third stage: Pending Queue

After the incident has been reported it is held in the pending queue for typically 6 hours. This queue holds all "active" incidents and allows to identify re-occuring problems.

During this time, the following can happen to it:

Further readings