server::filtergamin::FilterGamin Class Reference

Log reader class. More...

Inheritance diagram for server::filtergamin::FilterGamin:
[legend]
Collaboration diagram for server::filtergamin::FilterGamin:
[legend]

List of all members.

Public Member Functions

def __init__
 Constructor.
def addLogPath
 Add a log file path.
def callback
def delLogPath
 Delete a log path.
def run
 Main loop.

Public Attributes

 monitor

Detailed Description

Log reader class.

This class reads a log file and detects login failures or anything else that matches a given regular expression. This class is instanciated by a Jail object.

Definition at line 43 of file filtergamin.py.


Member Function Documentation

def server::filtergamin::FilterGamin::__init__ (   self,
  jail 
)

Constructor.

Initialize the filter object with default values.

Parameters:
jail the jail object

Definition at line 51 of file filtergamin.py.

def server::filtergamin::FilterGamin::addLogPath (   self,
  path,
  tail = True 
)

Add a log file path.

Parameters:
path log file path

Definition at line 72 of file filtergamin.py.

def server::filtergamin::FilterGamin::callback (   self,
  path,
  event 
)

Definition at line 59 of file filtergamin.py.

def server::filtergamin::FilterGamin::delLogPath (   self,
  path 
)

Delete a log path.

Parameters:
path the log file to delete

Definition at line 85 of file filtergamin.py.

def server::filtergamin::FilterGamin::run (   self  ) 

Main loop.

This function is the main loop of the thread. It checks if the file has been modified and looks for failures.

Returns:
True when the thread exits nicely

Definition at line 100 of file filtergamin.py.


Member Data Documentation

Definition at line 55 of file filtergamin.py.


The documentation for this class was generated from the following file:
Generated on Sun May 19 03:01:59 2013 for Fail2Ban by  doxygen 1.6.3