icoz / pysymo

syslog-ng mongodb analyzer
GNU General Public License v2.0
1 stars 2 forks source link

README for pysymo

PySyMo is a web-interface for view and analyze syslog data stored in MongoDB.

https://github.com/icoz/pysymo

Requirements

Summary

Pysymo is a web-interface for view and analyze syslog data stored in MongoDB. There are two main things:

Installation

  1. Install requirements.
  2. Config MongoDB database.
    • Change MONGO_DATABASE in app/db.py, tools/config.py if necessary.
    • Init database using tools/initdb.py.
    • Init MEDB (message explanation database) using tools/init_medb.py.
  3. Config LDAP in config.py if necessary.
  4. Config AppArmor (if exists). See example in examples/apparmor/sbin.syslog-ng.
  5. Config logging system to store in MongoDB.
    • example for syslog-ng 2.x in examples/syslog-ng-2.x/syslog-ng.conf.
    • example for syslog-ng 3.x in examples/syslog-ng-3.x/syslog-ng.conf.
    • example for rsyslog in examples/rsyslog/pysymo.conf.
      • syslog process must have rights to run piper script!
  6. Config web-server to run pysymo.fcgi. See example for lighttpd in examples/lighttpd/fastcgi.conf .
  7. Config logging (config['PYSYMO_LOG'], tools/config['PYSYMO_ERROR_LOG']) directory and set write permissions for web-server and syslog process.
  8. Config crontab to run periodic tasks: tools/refresh_cache.py, tools/refresh_charts.py.

Authentication types

LDAP

If you want to use LDAP to authenticate users, you need to config some parameters in config.py.

MEDB

Some syslog messages includes message code (vendor specific), that can be explained in detail. MEDB consists codes and descriptions, currently only for Cisco.

MEDB.txt file format:

([message id], [short description], [long description], [action])

See Cisco ASA message codes: http://www.cisco.com/c/en/us/td/docs/security/asa/syslog-guide/syslogs/logmsgs.html

Directories and files

Links

Syslog protocol RFC - http://tools.ietf.org/html/rfc5424

Sylog-ng OSE - http://www.balabit.com/sites/default/files/documents/syslog-ng-ose-3.3-guides/en/syslog-ng-ose-v3.3-guide-admin-en/html/index.html

Bootstrap theme - http://bootswatch.com/spacelab/