Skip to content

cr-solutions/apache_log_analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Analyze Apache access logs for bot activity.

positional arguments:

log_file Path to the Apache access log file.
start_time Start time (YYYY-MM-DD HH:MM:SS +ZZZZ).
end_time End time (YYYY-MM-DD HH:MM:SS +ZZZZ).

options:

-h, --help show this help message and exit
--suspicious_count SUSPICIOUS_COUNT

Example:

python3 apache_log_analyzer.py /var/log/apache2/access.log '2025-04-16 06:45:00 +0000' '2025-04-16 07:15:00 +0000'


Apache Log Format;

LogFormat "%{X-Forwarded-For}i %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined



License: CDDL Version 1.1

About

Analyze Apache access logs for bot activity

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages