From ea350dd1a70db51805b295b6ad100cee1dc9065c Mon Sep 17 00:00:00 2001 From: Thomas Ryckeboer Date: Fri, 8 Feb 2019 15:36:29 +0100 Subject: [PATCH 1/5] Add txt files and notebooks files to .gitignore + Drain compatibility with Python 3.7 --- .gitignore | 5 +++++ demo/Drain_demo.py | 42 ++++++++++++++++++------------------- logparser/Drain/Drain.py | 8 +++---- logparser/Drain/__init__.py | 2 +- 4 files changed, 31 insertions(+), 26 deletions(-) diff --git a/.gitignore b/.gitignore index 39920103..7eb461c0 100644 --- a/.gitignore +++ b/.gitignore @@ -57,3 +57,8 @@ target/ Unused/ .idea/ POP/ +*.txt +demo/.ipynb_checkpoints/ +demo/DrainEvaluation/.ipynb_checkpoints/ +logparser/Drain/.ipynb_checkpoints/ +*.ipynb diff --git a/demo/Drain_demo.py b/demo/Drain_demo.py index daf8759c..c6428ba0 100644 --- a/demo/Drain_demo.py +++ b/demo/Drain_demo.py @@ -1,21 +1,21 @@ -#!/usr/bin/env python -import sys -sys.path.append('../') -from logparser import Drain - -input_dir = '../logs/HDFS/' # The input directory of log file -output_dir = 'Drain_result/' # The output directory of parsing results -log_file = 'HDFS_2k.log' # The input log file name -log_format = '