Ejemplo n.º 1
0
def main():
    file_in = sys.argv[1]
    file_out = sys.argv[2]
    log_format = sys.argv[3]
    line_pattern = getattr(log_analysis.LogFormats, log_format)

    log_data = log_analysis.parse(file_in, line_pattern)
    log_analysis.save(log_data, file_out)
Ejemplo n.º 2
0
def main():
    file_in = sys.argv[1]
    file_out = sys.argv[2]
    url_regex = sys.argv[3]

    data = log_analysis.load(file_in)
    data = limits.limitUrl(data, url_regex)

    reports.summary(data)
    log_analysis.save(data, file_out)