diff --git a/plugins/ufm_log_analyzer_plugin/log_analyzer.sh b/plugins/ufm_log_analyzer_plugin/log_analyzer.sh index c3e8ab48..5494a6aa 100755 --- a/plugins/ufm_log_analyzer_plugin/log_analyzer.sh +++ b/plugins/ufm_log_analyzer_plugin/log_analyzer.sh @@ -18,4 +18,4 @@ SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" src_dir=$( realpath "${SCRIPT_DIR}/src" ) export PYTHONPATH="${src_dir}:../../" # The ../../ is to be able to use the utils -python3 "${src_dir}/loganalyze/log_analyzer.py" "$@" +python3 "${src_dir}/log_analyzer.py" "$@" diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/__init__.py b/plugins/ufm_log_analyzer_plugin/src/__init__.py similarity index 100% rename from plugins/ufm_log_analyzer_plugin/src/loganalyze/__init__.py rename to plugins/ufm_log_analyzer_plugin/src/__init__.py diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzer.py b/plugins/ufm_log_analyzer_plugin/src/log_analyzer.py similarity index 90% rename from plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzer.py rename to plugins/ufm_log_analyzer_plugin/src/log_analyzer.py index 1cdece7b..97545051 100755 --- a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzer.py +++ b/plugins/ufm_log_analyzer_plugin/src/log_analyzer.py @@ -29,26 +29,26 @@ from typing import Callable, List, Set, Tuple -from loganalyze.log_analyzers.base_analyzer import BaseImageCreator -from loganalyze.logs_extraction.directory_extractor import DirectoryExtractor -from loganalyze.log_analyzers.ufm_top_analyzer import UFMTopAnalyzer -from loganalyze.logs_extraction.tar_extractor import DumpFilesExtractor -from loganalyze.log_parsing.log_parser import LogParser -from loganalyze.log_parsing.logs_regex import logs_regex_csv_headers_list -from loganalyze.logs_csv.csv_handler import CsvHandler - -from loganalyze.log_analyzers.ufm_log_analyzer import UFMLogAnalyzer -from loganalyze.log_analyzers.ufm_health_analyzer import UFMHealthAnalyzer -from loganalyze.log_analyzers.ibdiagnet_log_analyzer import IBDIAGNETLogAnalyzer -from loganalyze.log_analyzers.events_log_analyzer import EventsLogAnalyzer -from loganalyze.log_analyzers.console_log_analyzer import ConsoleLogAnalyzer -from loganalyze.log_analyzers.rest_api_log_analyzer import RestApiAnalyzer -from loganalyze.log_analyzers.link_flapping_analyzer import LinkFlappingAnalyzer - -from loganalyze.pdf_creator import PDFCreator -from loganalyze.utils.common import delete_files_by_types - -import loganalyze.logger as log +from log_analyzers.base_analyzer import BaseImageCreator +from logs_extraction.directory_extractor import DirectoryExtractor +from log_analyzers.ufm_top_analyzer import UFMTopAnalyzer +from logs_extraction.tar_extractor import DumpFilesExtractor +from log_parsing.log_parser import LogParser +from log_parsing.logs_regex import logs_regex_csv_headers_list +from logs_csv.csv_handler import CsvHandler + +from log_analyzers.ufm_log_analyzer import UFMLogAnalyzer +from log_analyzers.ufm_health_analyzer import UFMHealthAnalyzer +from log_analyzers.ibdiagnet_log_analyzer import IBDIAGNETLogAnalyzer +from log_analyzers.events_log_analyzer import EventsLogAnalyzer +from log_analyzers.console_log_analyzer import ConsoleLogAnalyzer +from log_analyzers.rest_api_log_analyzer import RestApiAnalyzer +from log_analyzers.link_flapping_analyzer import LinkFlappingAnalyzer + +from pdf_creator import PDFCreator +from utils.common import delete_files_by_types + +import logger as log LOGS_TO_EXTRACT = [ "event.log", diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/__init__.py b/plugins/ufm_log_analyzer_plugin/src/log_analyzers/__init__.py similarity index 100% rename from plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/__init__.py rename to plugins/ufm_log_analyzer_plugin/src/log_analyzers/__init__.py diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/base_analyzer.py b/plugins/ufm_log_analyzer_plugin/src/log_analyzers/base_analyzer.py similarity index 98% rename from plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/base_analyzer.py rename to plugins/ufm_log_analyzer_plugin/src/log_analyzers/base_analyzer.py index ecffb517..82ce55b7 100644 --- a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/base_analyzer.py +++ b/plugins/ufm_log_analyzer_plugin/src/log_analyzers/base_analyzer.py @@ -23,8 +23,8 @@ import matplotlib.pyplot as plt import matplotlib.dates as mdates -from loganalyze.log_analyzers.constants import DataConstants -import loganalyze.logger as log +from log_analyzers.constants import DataConstants +import logger as log pd.set_option("display.max_colwidth", None) warnings.filterwarnings("ignore") diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/console_log_analyzer.py b/plugins/ufm_log_analyzer_plugin/src/log_analyzers/console_log_analyzer.py similarity index 96% rename from plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/console_log_analyzer.py rename to plugins/ufm_log_analyzer_plugin/src/log_analyzers/console_log_analyzer.py index d8406f07..f50a40c1 100644 --- a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/console_log_analyzer.py +++ b/plugins/ufm_log_analyzer_plugin/src/log_analyzers/console_log_analyzer.py @@ -15,9 +15,9 @@ import csv import os from typing import List -from loganalyze.log_analyzers.constants import DataConstants -from loganalyze.log_analyzers.base_analyzer import BaseAnalyzer -import loganalyze.logger as log +from log_analyzers.constants import DataConstants +from log_analyzers.base_analyzer import BaseAnalyzer +import logger as log class ConsoleLogAnalyzer(BaseAnalyzer): diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/constants.py b/plugins/ufm_log_analyzer_plugin/src/log_analyzers/constants.py similarity index 100% rename from plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/constants.py rename to plugins/ufm_log_analyzer_plugin/src/log_analyzers/constants.py diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/events_log_analyzer.py b/plugins/ufm_log_analyzer_plugin/src/log_analyzers/events_log_analyzer.py similarity index 97% rename from plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/events_log_analyzer.py rename to plugins/ufm_log_analyzer_plugin/src/log_analyzers/events_log_analyzer.py index 5b71125f..797fb449 100644 --- a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/events_log_analyzer.py +++ b/plugins/ufm_log_analyzer_plugin/src/log_analyzers/events_log_analyzer.py @@ -15,9 +15,9 @@ from typing import List import pandas as pd -from loganalyze.log_analyzers.constants import DataConstants -from loganalyze.log_analyzers.base_analyzer import BaseAnalyzer -import loganalyze.logger as log +from log_analyzers.constants import DataConstants +from log_analyzers.base_analyzer import BaseAnalyzer +import logger as log class EventsLogAnalyzer(BaseAnalyzer): diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/ibdiagnet_log_analyzer.py b/plugins/ufm_log_analyzer_plugin/src/log_analyzers/ibdiagnet_log_analyzer.py similarity index 92% rename from plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/ibdiagnet_log_analyzer.py rename to plugins/ufm_log_analyzer_plugin/src/log_analyzers/ibdiagnet_log_analyzer.py index b867fe56..3c10dc28 100644 --- a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/ibdiagnet_log_analyzer.py +++ b/plugins/ufm_log_analyzer_plugin/src/log_analyzers/ibdiagnet_log_analyzer.py @@ -13,8 +13,8 @@ # pylint: disable=missing-class-docstring from typing import List -from loganalyze.log_analyzers.base_analyzer import BaseAnalyzer -import loganalyze.logger as log +from log_analyzers.base_analyzer import BaseAnalyzer +import logger as log class IBDIAGNETLogAnalyzer(BaseAnalyzer): diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/link_flapping_analyzer.py b/plugins/ufm_log_analyzer_plugin/src/log_analyzers/link_flapping_analyzer.py similarity index 98% rename from plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/link_flapping_analyzer.py rename to plugins/ufm_log_analyzer_plugin/src/log_analyzers/link_flapping_analyzer.py index 82c04a4a..1a967609 100644 --- a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/link_flapping_analyzer.py +++ b/plugins/ufm_log_analyzer_plugin/src/log_analyzers/link_flapping_analyzer.py @@ -19,8 +19,8 @@ from pathlib import Path import pandas as pd from utils.netfix.link_flapping import get_link_flapping -from loganalyze.log_analyzers.base_analyzer import BaseImageCreator -import loganalyze.logger as log +from log_analyzers.base_analyzer import BaseImageCreator +import logger as log FILE_NAME_PATTERN=r"^secondary_(5m|1h|1d|1w)_(\d{14})\.gz$" TIME_PATTERN="%Y%m%d%H%M%S" diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/rest_api_log_analyzer.py b/plugins/ufm_log_analyzer_plugin/src/log_analyzers/rest_api_log_analyzer.py similarity index 98% rename from plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/rest_api_log_analyzer.py rename to plugins/ufm_log_analyzer_plugin/src/log_analyzers/rest_api_log_analyzer.py index 0665d0e1..4d2aa5d6 100644 --- a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/rest_api_log_analyzer.py +++ b/plugins/ufm_log_analyzer_plugin/src/log_analyzers/rest_api_log_analyzer.py @@ -12,7 +12,7 @@ from urllib.parse import urlparse import pandas as pd import numpy as np -from loganalyze.log_analyzers.base_analyzer import BaseAnalyzer +from log_analyzers.base_analyzer import BaseAnalyzer class RestApiAnalyzer(BaseAnalyzer): diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/ufm_health_analyzer.py b/plugins/ufm_log_analyzer_plugin/src/log_analyzers/ufm_health_analyzer.py similarity index 93% rename from plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/ufm_health_analyzer.py rename to plugins/ufm_log_analyzer_plugin/src/log_analyzers/ufm_health_analyzer.py index eadf0d22..1f91b026 100644 --- a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/ufm_health_analyzer.py +++ b/plugins/ufm_log_analyzer_plugin/src/log_analyzers/ufm_health_analyzer.py @@ -12,8 +12,8 @@ # pylint: disable=missing-class-docstring # pylint: disable=missing-module-docstring from typing import List -from loganalyze.log_analyzers.constants import DataConstants -from loganalyze.log_analyzers.base_analyzer import BaseAnalyzer +from log_analyzers.constants import DataConstants +from log_analyzers.base_analyzer import BaseAnalyzer class UFMHealthAnalyzer(BaseAnalyzer): diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/ufm_log_analyzer.py b/plugins/ufm_log_analyzer_plugin/src/log_analyzers/ufm_log_analyzer.py similarity index 98% rename from plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/ufm_log_analyzer.py rename to plugins/ufm_log_analyzer_plugin/src/log_analyzers/ufm_log_analyzer.py index 463c4d35..11474611 100644 --- a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/ufm_log_analyzer.py +++ b/plugins/ufm_log_analyzer_plugin/src/log_analyzers/ufm_log_analyzer.py @@ -17,9 +17,9 @@ from typing import List import pandas as pd -from loganalyze.log_analyzers.constants import DataConstants -from loganalyze.log_analyzers.base_analyzer import BaseAnalyzer -import loganalyze.logger as log +from log_analyzers.constants import DataConstants +from log_analyzers.base_analyzer import BaseAnalyzer +import logger as log class UFMLogAnalyzer(BaseAnalyzer): diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/ufm_top_analyzer.py b/plugins/ufm_log_analyzer_plugin/src/log_analyzers/ufm_top_analyzer.py similarity index 100% rename from plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/ufm_top_analyzer.py rename to plugins/ufm_log_analyzer_plugin/src/log_analyzers/ufm_top_analyzer.py diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_parsing/__init__.py b/plugins/ufm_log_analyzer_plugin/src/log_parsing/__init__.py similarity index 100% rename from plugins/ufm_log_analyzer_plugin/src/loganalyze/log_parsing/__init__.py rename to plugins/ufm_log_analyzer_plugin/src/log_parsing/__init__.py diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_parsing/base_regex.py b/plugins/ufm_log_analyzer_plugin/src/log_parsing/base_regex.py similarity index 100% rename from plugins/ufm_log_analyzer_plugin/src/loganalyze/log_parsing/base_regex.py rename to plugins/ufm_log_analyzer_plugin/src/log_parsing/base_regex.py diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_parsing/console_log_regex.py b/plugins/ufm_log_analyzer_plugin/src/log_parsing/console_log_regex.py similarity index 97% rename from plugins/ufm_log_analyzer_plugin/src/loganalyze/log_parsing/console_log_regex.py rename to plugins/ufm_log_analyzer_plugin/src/log_parsing/console_log_regex.py index 315ac3ee..6f068b02 100644 --- a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_parsing/console_log_regex.py +++ b/plugins/ufm_log_analyzer_plugin/src/log_parsing/console_log_regex.py @@ -14,7 +14,7 @@ import re from typing import Match -from loganalyze.log_parsing.base_regex import RegexAndHandlers +from log_parsing.base_regex import RegexAndHandlers ### # This log is only to find general exceptions and errors, diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_parsing/event_log_regex.py b/plugins/ufm_log_analyzer_plugin/src/log_parsing/event_log_regex.py similarity index 97% rename from plugins/ufm_log_analyzer_plugin/src/loganalyze/log_parsing/event_log_regex.py rename to plugins/ufm_log_analyzer_plugin/src/log_parsing/event_log_regex.py index a039f0f7..c6a7ccf1 100644 --- a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_parsing/event_log_regex.py +++ b/plugins/ufm_log_analyzer_plugin/src/log_parsing/event_log_regex.py @@ -14,7 +14,7 @@ import re from typing import Match -from loganalyze.log_parsing.base_regex import RegexAndHandlers +from log_parsing.base_regex import RegexAndHandlers EVENT_LOG_REGEX = re.compile( # date time na na severity Site and name type objtype objid diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_parsing/ibdiagnet_log_regex.py b/plugins/ufm_log_analyzer_plugin/src/log_parsing/ibdiagnet_log_regex.py similarity index 96% rename from plugins/ufm_log_analyzer_plugin/src/loganalyze/log_parsing/ibdiagnet_log_regex.py rename to plugins/ufm_log_analyzer_plugin/src/log_parsing/ibdiagnet_log_regex.py index 6aeae796..2d6084e3 100644 --- a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_parsing/ibdiagnet_log_regex.py +++ b/plugins/ufm_log_analyzer_plugin/src/log_parsing/ibdiagnet_log_regex.py @@ -14,7 +14,7 @@ import re from typing import Match -from loganalyze.log_parsing.base_regex import RegexAndHandlers +from log_parsing.base_regex import RegexAndHandlers IBDIAGNET_LOG_TOTAL_NODES = re.compile( # Num Nodes diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_parsing/log_parser.py b/plugins/ufm_log_analyzer_plugin/src/log_parsing/log_parser.py similarity index 100% rename from plugins/ufm_log_analyzer_plugin/src/loganalyze/log_parsing/log_parser.py rename to plugins/ufm_log_analyzer_plugin/src/log_parsing/log_parser.py diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_parsing/logs_regex.py b/plugins/ufm_log_analyzer_plugin/src/log_parsing/logs_regex.py similarity index 65% rename from plugins/ufm_log_analyzer_plugin/src/loganalyze/log_parsing/logs_regex.py rename to plugins/ufm_log_analyzer_plugin/src/log_parsing/logs_regex.py index cbbaefeb..209bb31a 100644 --- a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_parsing/logs_regex.py +++ b/plugins/ufm_log_analyzer_plugin/src/log_parsing/logs_regex.py @@ -11,12 +11,12 @@ # # pylint: disable=missing-module-docstring -from loganalyze.log_parsing.event_log_regex import event_log_regex_cls -from loganalyze.log_parsing.ufm_health_regex import ufm_health_regex_cls -from loganalyze.log_parsing.ufm_log import ufm_log_regex_cls -from loganalyze.log_parsing.ibdiagnet_log_regex import ibdiagnet_log_regex_cls -from loganalyze.log_parsing.console_log_regex import console_log_regex_cls -from loganalyze.log_parsing.rest_api_log_regex import rest_api_log_regex_cls +from log_parsing.event_log_regex import event_log_regex_cls +from log_parsing.ufm_health_regex import ufm_health_regex_cls +from log_parsing.ufm_log import ufm_log_regex_cls +from log_parsing.ibdiagnet_log_regex import ibdiagnet_log_regex_cls +from log_parsing.console_log_regex import console_log_regex_cls +from log_parsing.rest_api_log_regex import rest_api_log_regex_cls logs = [ event_log_regex_cls, diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_parsing/rest_api_log_regex.py b/plugins/ufm_log_analyzer_plugin/src/log_parsing/rest_api_log_regex.py similarity index 96% rename from plugins/ufm_log_analyzer_plugin/src/loganalyze/log_parsing/rest_api_log_regex.py rename to plugins/ufm_log_analyzer_plugin/src/log_parsing/rest_api_log_regex.py index 186625c6..1bf5ac84 100644 --- a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_parsing/rest_api_log_regex.py +++ b/plugins/ufm_log_analyzer_plugin/src/log_parsing/rest_api_log_regex.py @@ -14,7 +14,7 @@ import re from typing import Match -from loganalyze.log_parsing.base_regex import RegexAndHandlers +from log_parsing.base_regex import RegexAndHandlers REST_API_LOG_REGEX = re.compile( # Date NA Severity diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_parsing/ufm_health_regex.py b/plugins/ufm_log_analyzer_plugin/src/log_parsing/ufm_health_regex.py similarity index 97% rename from plugins/ufm_log_analyzer_plugin/src/loganalyze/log_parsing/ufm_health_regex.py rename to plugins/ufm_log_analyzer_plugin/src/log_parsing/ufm_health_regex.py index a112812a..703722d3 100644 --- a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_parsing/ufm_health_regex.py +++ b/plugins/ufm_log_analyzer_plugin/src/log_parsing/ufm_health_regex.py @@ -15,7 +15,7 @@ import re from typing import Match -from loganalyze.log_parsing.base_regex import RegexAndHandlers +from log_parsing.base_regex import RegexAndHandlers UFM_HEALTH_LOG_REGEX = re.compile( # Date Severity Test Test Class Status diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_parsing/ufm_log.py b/plugins/ufm_log_analyzer_plugin/src/log_parsing/ufm_log.py similarity index 98% rename from plugins/ufm_log_analyzer_plugin/src/loganalyze/log_parsing/ufm_log.py rename to plugins/ufm_log_analyzer_plugin/src/log_parsing/ufm_log.py index 1a0d7ae0..f1017241 100644 --- a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_parsing/ufm_log.py +++ b/plugins/ufm_log_analyzer_plugin/src/log_parsing/ufm_log.py @@ -15,7 +15,7 @@ import re from typing import Match -from loganalyze.log_parsing.base_regex import RegexAndHandlers +from log_parsing.base_regex import RegexAndHandlers UFM_LOG_BASE = r"^(?P[\d\-]+ [\d\:\.]+) \w+ +(?P\w+) +{}" diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/.pylintrc b/plugins/ufm_log_analyzer_plugin/src/loganalyze/.pylintrc deleted file mode 100644 index 92e8f0be..00000000 --- a/plugins/ufm_log_analyzer_plugin/src/loganalyze/.pylintrc +++ /dev/null @@ -1,6 +0,0 @@ -[MESSAGES CONTROL] -disable=missing-function-docstring, - missing-class-docstring, - missing-module-docstring, - too-few-public-methods, - logging-fstring-interpolation, diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/logger.py b/plugins/ufm_log_analyzer_plugin/src/logger.py similarity index 100% rename from plugins/ufm_log_analyzer_plugin/src/loganalyze/logger.py rename to plugins/ufm_log_analyzer_plugin/src/logger.py diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/logs_csv/__init__.py b/plugins/ufm_log_analyzer_plugin/src/logs_csv/__init__.py similarity index 100% rename from plugins/ufm_log_analyzer_plugin/src/loganalyze/logs_csv/__init__.py rename to plugins/ufm_log_analyzer_plugin/src/logs_csv/__init__.py diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/logs_csv/csv_handler.py b/plugins/ufm_log_analyzer_plugin/src/logs_csv/csv_handler.py similarity index 98% rename from plugins/ufm_log_analyzer_plugin/src/loganalyze/logs_csv/csv_handler.py rename to plugins/ufm_log_analyzer_plugin/src/logs_csv/csv_handler.py index d265ad77..f19adcd2 100644 --- a/plugins/ufm_log_analyzer_plugin/src/loganalyze/logs_csv/csv_handler.py +++ b/plugins/ufm_log_analyzer_plugin/src/logs_csv/csv_handler.py @@ -16,7 +16,7 @@ import os import csv from typing import List, Tuple -import loganalyze.logger as log +import logger as log class CsvHandler: def __init__( diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/logs_extraction/__init__.py b/plugins/ufm_log_analyzer_plugin/src/logs_extraction/__init__.py similarity index 100% rename from plugins/ufm_log_analyzer_plugin/src/loganalyze/logs_extraction/__init__.py rename to plugins/ufm_log_analyzer_plugin/src/logs_extraction/__init__.py diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/logs_extraction/base_extractor.py b/plugins/ufm_log_analyzer_plugin/src/logs_extraction/base_extractor.py similarity index 100% rename from plugins/ufm_log_analyzer_plugin/src/loganalyze/logs_extraction/base_extractor.py rename to plugins/ufm_log_analyzer_plugin/src/logs_extraction/base_extractor.py diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/logs_extraction/directory_extractor.py b/plugins/ufm_log_analyzer_plugin/src/logs_extraction/directory_extractor.py similarity index 96% rename from plugins/ufm_log_analyzer_plugin/src/loganalyze/logs_extraction/directory_extractor.py rename to plugins/ufm_log_analyzer_plugin/src/logs_extraction/directory_extractor.py index 08604515..87c1a73d 100644 --- a/plugins/ufm_log_analyzer_plugin/src/loganalyze/logs_extraction/directory_extractor.py +++ b/plugins/ufm_log_analyzer_plugin/src/logs_extraction/directory_extractor.py @@ -13,7 +13,7 @@ from pathlib import Path import shutil from typing import List -from loganalyze.logs_extraction.base_extractor import BaseExtractor +from logs_extraction.base_extractor import BaseExtractor class DirectoryExtractor(BaseExtractor): def __init__(self, dir_path:Path): diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/logs_extraction/tar_extractor.py b/plugins/ufm_log_analyzer_plugin/src/logs_extraction/tar_extractor.py similarity index 97% rename from plugins/ufm_log_analyzer_plugin/src/loganalyze/logs_extraction/tar_extractor.py rename to plugins/ufm_log_analyzer_plugin/src/logs_extraction/tar_extractor.py index a0730a8b..61709084 100644 --- a/plugins/ufm_log_analyzer_plugin/src/loganalyze/logs_extraction/tar_extractor.py +++ b/plugins/ufm_log_analyzer_plugin/src/logs_extraction/tar_extractor.py @@ -18,9 +18,9 @@ import os from typing import List, Set -from loganalyze.logs_extraction.base_extractor import BaseExtractor -from loganalyze.utils.common import delete_folders -import loganalyze.logger as log +from logs_extraction.base_extractor import BaseExtractor +from utils.common import delete_folders +import logger as log LOGS_GZ_POSTFIX = ".gz" GZIP_MAGIC_NUMBER = b"\x1f\x8b" # Magic number to understand if a file is really a gzip diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/pdf_creator.py b/plugins/ufm_log_analyzer_plugin/src/pdf_creator.py similarity index 100% rename from plugins/ufm_log_analyzer_plugin/src/loganalyze/pdf_creator.py rename to plugins/ufm_log_analyzer_plugin/src/pdf_creator.py diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/requirements.txt b/plugins/ufm_log_analyzer_plugin/src/requirements.txt similarity index 100% rename from plugins/ufm_log_analyzer_plugin/src/loganalyze/requirements.txt rename to plugins/ufm_log_analyzer_plugin/src/requirements.txt diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/utils/common.py b/plugins/ufm_log_analyzer_plugin/src/utils/common.py similarity index 98% rename from plugins/ufm_log_analyzer_plugin/src/loganalyze/utils/common.py rename to plugins/ufm_log_analyzer_plugin/src/utils/common.py index 318d24b6..c6673f6c 100644 --- a/plugins/ufm_log_analyzer_plugin/src/loganalyze/utils/common.py +++ b/plugins/ufm_log_analyzer_plugin/src/utils/common.py @@ -15,7 +15,7 @@ import os import shutil from typing import Set -import loganalyze.logger as log +import logger as log def delete_folders(folders: Set[str], until_folder:str): """