def _extract_features(self):
        """
        Get the feature data from the log file necessary for a reduction
        """
        for parsed_line in self.parsed_lines:
            result = {'raw': parsed_line}

            if 'ip' in parsed_line:
                result['ip'] = parsed_line['ip']
                if result['ip'] not in self.features['ips']:
                    self.features['ips'].append(result['ip'])
def _extract_features ( self ) : for parsed_line in self . parsed_lines : result = { 'raw' : parsed_line } if 'ip' in parsed_line : result [ 'ip' ] = parsed_line [ 'ip' ] if result [ 'ip' ] not in self . features [ 'ips' ] : self . features [ 'ips' ] . append ( result [ 'ip' ] )
Get the feature data from the log file necessary for a reduction