Pages

Wednesday, 20 November 2013

Zipper– Log Archiver tool

 

Zipper is log archiving utility that compresses and archives application log files. I developed it to use it to archive Genesys application logs but can be used for other application logs, as well.

Why we need zipper utility?


Have you ever heard these conversations from your support team?

‘We don’t have log files for this particular time frame’

‘Log files rolled over. Have to wait for next occurrence’

Even though, both engineer and customer know that there is an issue, they can’t do anything due to lack of log files. Also, you can compress log file to 90% of its original size i.e) you can store 9 times more than your current configuration. This led me to develop tool on my own to scan for log files on predefined intervals, compress and store it in different folder.

Design Considerations


Initially, I designed to watch log file directory for changes to start archiving activity but decided against it as there is no need to have this application running (& utilizing system resources) for log archiving. Now, zipper can be configured in windows scheduled tasks so that user can configure to schedule it as per their requirements.

You can download and install Zipper from here.

How to configure?


Zipper can be configured to scan log files in multiple directories and easily configured using any text editor. To configure, follow the steps below

  • Open ‘zipper.exe.config’ from installation directory in any text editor
  • Go to section ‘zipper’ as shown in screenshot below

image

image name – Unique identifier for each directory
image sourcedirectory – Directory path where log files will be available. Zipper application will scan this directory for files
image targetdirectory – Directory path where log files will be compressed and stored by zipper application
image filepattern – Used to define file extensions. For Genesys logs, use “*.log”
image deleteoriginal – Setting this option to ‘true’ will delete log file once it is compressed and archived. ‘false’ will keep original file in the source directory

I am looking to expand functionality by adding scheduling functionality within the application and will release it in next version. For any feedback, feel free to comment me and will try to add it.

Download zipper.setup

No comments:

Post a Comment