#NEWLINE# def process( self , event ) : #NEWLINE# #INDENT# if ( self . field in event ) : #NEWLINE# #INDENT# data = event . pop ( self . field ) #NEWLINE# m = self . regex . search ( data ) #NEWLINE# if m : #NEWLINE# #INDENT# d = m . groupdict ( ) #NEWLINE# if ( 'timestamp' in d ) : #NEWLINE# #INDENT# d [ 'timestamp' ] = dateutil . parser . parse ( d [ 'timestamp' ] ) #NEWLINE# #UNINDENT# self . logger . debug ( ( 'Matched: %s' % d ) ) #NEWLINE# event . update ( d ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _error ( event , 'no match' )