D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
lib
/
panopta-agent
/
library
/
Filename :
log_matcher.pyc
back
Copy
� fK�cc @ sT d d l Z d d l m Z m Z d d l Z d d l Z d e f d � � YZ d S( i����N( t datetimet timedeltat LogMatcherc B s_ e Z d Z d � Z d d � Z d d � Z d � Z d � Z e d � � Z e d � � Z RS( s5 Handles the matching of filter in the logs. c C s | | _ d S( sV @param file_creation: last known creation timestamp of the log file. N( t _inode( t selft inode( ( s- /usr/lib/panopta-agent/library/log_matcher.pyt __init__ s c s� | s g } n y | j � Wn@ t k r_ d d l } | j � \ } } } t j | � g SX� f d � } t t | | � � } | j t j � t | � f � | Sd S( s� Match the ampount of times expression is present in lines, return the results with the new entry appended to it. @param expression: String, @param lines: Iterable @param results: List of past results i����Nc s"