Skip to content
gmlexx edited this page Oct 21, 2014 · 19 revisions

README

The problem

  • your system is a hundreds services having log4net logs
  • email notifications is tons of spam and don't work anymore
  • you haven't clear picture about your system

solution: "Errors Digest"

Architecture

Twisted python application: UPD and HTTP server

  • UDP: Receiving udp packets from log4net.Appender.UdpAppender
  • HTTP: display digest in pretty html page and management patterns

Installation

install scikit-learn, scipy, numpy python libraries

Set up your log4net format

Log4NetFeeder expects to receive log4net record with defined number of parts.

Current log4net format is defined by log4net config xml:

<conversionPattern value="%level %date{ISO8601} [%thread] %property{log4net:HostName} %logger %m%newline" />

You must bring in correspondence log4net log format with backend module

Have a look at tree.py put()

Run

  1. Configure server.py (default udp port: 8001, http: 8080)
  2. Run script e.g. twistd -y server.py -n