Thanks to visit codestin.com
Credit goes to github.com

Skip to content
mbrewster edited this page May 29, 2013 · 14 revisions

Loft Overview

Loft parses multiple log inputs, filter them, and transmit a state message via a REST interface, standard out, file, or other user definable method.

Features

  • Regular Expression Filter: Loft will filter based on a list of regular expressions. This is useful for tracking common, known errors and statuses.
  • State Inspector: Loft will also issue a report based on a set of criteria. If all of the criteria are met within a specified amount of time, a configurable condition met report message is issued. If not all of the criteria are met, a configurable condition not met report is issued. This is useful for monitoring status of complex systems.
  • Multiple Outputs: Loft can output results to multiple destinations, such as a text file or a REST interface.

Installation

The loft automated installation will install as a RHEL/CentOS Linux service and by default installs as a python module in site packages. # pip install git+git://github.com/base2solutions/loft.git@master

The module can also be downloaded and run as a script or python module. https://github.com/base2solutions/loft.git

The loft/conf directory contains three files which can be used for configuration.

Config.py is used to set the logs that will be monitored.

Filters.py is used to define the regular expressions and state inspector.

Output.py is used to define where output results are to be sent.

##Start Up If running as a Linux service, standard options apply:

# service loft start|stop|restart|status

If running from the command line, run as a python module:

# /usr/bin/python -m loft.LoftEngine

Or even better:

# nohup /usr/bin/python -m loft.LoftEngine >/dev/null 2>&1 &

Clone this wiki locally