# Path: logparser/logmatch/regexmatch.py
# class PatternMatch(object):
#     def __init__(self, outdir='./result/', n_workers=1, optimized=False, logformat=None):
#     def add_event_template(self, event_template, event_Id=None):
#     def _generate_template_regex(self, template):
#     def match_event(self, event_list):
#     def read_template_from_csv(self, template_filepath):
#     def match(self, log_filepath, template_filepath):
#     def _dump_match_result(self, log_filename, log_dataframe):
#     def _generate_hash_eventId(self, template_str):
#     def _get_parameter_list(self, row):
# def match_fn(event_list, template_match_dict, optimized=True):
# def regex_match(msg, template_match_dict, optimized):


import sys
from logparser.logmatch import regexmatch

#!/usr/bin/env python
sys.path.append('../')

input_dir    = '../logs/HDFS/' # The input directory
output_dir   = 'logmatch_result/' # The result directory
log_filepath = input_dir + 'HDFS_2k.log' # The input log file path
log_format   = '<Date> <Time> <Pid> <Level> <Component>: <Content>' # HDFS log format
n_workers    = 1 # The number of workers in parallel

# Path: logparser/logmatch/regexmatch.py
# class PatternMatch(object):
#     def __init__(self, outdir='./result/', n_workers=1, optimized=False, logformat=None):
#     def add_event_template(self, event_template, event_Id=None):
#     def _generate_template_regex(self, template):
#     def match_event(self, event_list):
#     def read_template_from_csv(self, template_filepath):
#     def match(self, log_filepath, template_filepath):
#     def _dump_match_result(self, log_filename, log_dataframe):
#     def _generate_hash_eventId(self, template_str):
#     def _get_parameter_list(self, row):
# def match_fn(event_list, template_match_dict, optimized=True):
# def regex_match(msg, template_match_dict, optimized):


# Path: demo/logmatch_demo.py
import sys
from logparser.logmatch import regexmatch

#!/usr/bin/env python
sys.path.append('../')

input_dir    = '../logs/HDFS/' # The input directory
output_dir   = 'logmatch_result/' # The result directory
log_filepath = input_dir + 'HDFS_2k.log' # The input log file path
log_format   = '<Date> <Time> <Pid> <Level> <Component>: <Content>' # HDFS log format
n_workers    = 1 # The number of workers in parallel

template_filepath = log_filepath + '_templates.csv' # The event template file path
