Skip to content

Latest commit

 

History

History
75 lines (66 loc) · 2.2 KB

README.md

File metadata and controls

75 lines (66 loc) · 2.2 KB

backup_grep/backup_log_map

backup_grep: Identifying common errors in the MMS0.log file based on an error list.

backup_log_map: Creating a straightforward backup process flow, highlighting significant events and errors across all shard logs from OM servers.

Tested on MAC M1 and Windows10 64 x86

Installation:

  1. To install python on macOS
    $brew install python3
    
  2. Clone the repository:
    MAC:
    $gh repo clone Vodyanoy17/backup_grep
    
    WINDOWS:
    >git clone https://github.com/Vodyanoy17/backup_grep.git .
    
  3. create a virtual environment
    MAC:
    $ python3 -m venv venv1
    $ source venv1/bin/activate
    
    WINDOWS:
    > python -m venv venv1
    > venv1\Scripts\activate.bat
    
  4. install the packages according to the configuration file
    MAC:
    $ python3 -m pip install --upgrade pip
    $ pip install -r backup_grep/requirements.txt
    
    WINDOWS:
    > python.exe -m pip install --upgrade pip
    > pip install -r requirements.txt
    
    Solution for Linux, Windows (WSL/Ubuntu) and MacOS: Please install python-tk manually from Homebrew
    $ brew install python-tk
    

backup_grep

  1. Example of execution grep ustility
    MAC:
     venv1/bin/python backup_grep/grep/bckgrepgui.py
    
    WINDOWS
    >python grep\bckgrepgui.py
    

image

backup_log_map

  1. Example of execution grep backup_log_map from cli if you want to run it over several OM's logs you need to manually combine all files by cat file1 file2 | sort > sorted.log The GUI version with a more efficient method of sorting.
   venv1/bin/python  backup_grep/log_map/backup_log_map.py [mms0 logs directory]
image
  1. The is an option to run GUI and select different files from several OM instances. /python /backup_grep/log_map/map_gui.py image