Skip to content

PanDas3/ArchiveLog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Name

  • ArchiveLog - version 1.2.7

Project date: from April to August/2022

Additional infromation

  • Icon from: https://icon-icons.com/icon/file-archive/193973

  • Not commercial used.

  • This project will save me a lot of time at work because my services generate 70 GB of logs per month, and the law requires log archiving for +/- 20 years.

  • I wrote this program after my job, because it is an element of my self-development.

  • If you find a bug you can write to me :)

Table of Contents

General Information

The program has:

  • Getting params from configuration file
  • Securing password in configuration file
  • Archived application (or IIS) log to zip
  • Export archives log to FTP
  • Delete source logs from directory
  • Delete archives files (with time shift)
  • Sending E-Mail after error

Technologies Used

  • Python - version 3.10.1
    • SMTPLib
    • ZipFile
    • DateUtil
  • ConfigParser (pycparser) - version 2.21
  • ConfigUpdater - version 3.1
  • Cryptography - version 37.0.2
  • PyInstaller - version 5.1

Usage

If you would like to run from script:

  1. Run main.py
  2. Complete config.ini
  3. Run main.py
  4. Look at the log file

If u would like to run EXE (and then example put it into Task Scheduler, like me):

Generate EXE file - CMD ->

pip install pyinstaller --proxy http://user:pass@proxy.pl:3128
cd Building
pyinstaller ArchiveLog.spec
  1. Run .\dist\ArchiveLog.exe
  2. Complete config.ini
  3. Run again ArchiveLog.exe
  4. Look at the log file

Project Status

Project is: Production Deployment

Contact

Created by @Majster

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages