Skip to content

anilarya/logErrorUtility

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 

Repository files navigation

  1. Use this logparser-utility for following reasons :

             -To see 5xx errors, 4xx errors and 2xx  counts  from log file  in  a tabular format.
             -To analyze these errors in pi-charts.
             -To see all 5xx errors in attached file.
             -To see general log info in other txt file. Like --
                   -Slow urls > 2.0 ms and number of hits.
                   -ClientIPs with number of requests made .
                   -Average Number of requests per Hour.
    
  2. Simply modify settings.py file to cinfigure user information like Project Name , Logpath, Name of App web server, Recipient-email-id , SMTP settings.

====================================OR=============================

simply use following command line arguments without looking into settings.py file

After making modification in settings.py file , Run following command to run handler.py file to
parse log files to fetch general log info :

===================================================================

                $ python utils/handler.py   # It takes user info from settings.py   

===================or from Command Line Arguments==================

                $ python utils/handler.py Lithium-dashboard-Qa  e-xzrtpezf2s  /home/arya/Desktop/log apache  anil.kumar@hashedin.com     

Arguments explanation

                $ python utils/handler.py  "envName  or projectName-env"  "environment-Id"  "logpath"  "server_name"  "mailTo"                 
                
                # This sends mail reports to given recipients email-Ids.

About

Utility to create package which automatically sends mail to the users by doing some cron job.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages