WWW.DBVERSITY.COM
WWW.DBVERSITY.COM
Menu
  • Home
  • About us
  • Discussions
  • Login / Register
Welcome to the world of Database Technologies
Browse: Home » Processing Apache logs using a Python script

Processing Apache logs using a Python script

June 9, 2015 · by dbversity · in Linux

[root@localhost apache2]# cat ../apache.py __author__ = ‘root’ #!/usr/bin/python import re import sys from datetime import datetime, date, timedelta from collections import Counter # Define the day of interest in the Apache common log format. try:   daysAgo = int(sys.argv[1]) except:…

Categories

Categories

Copyright © 2025 WWW.DBVERSITY.COM

Powered by WordPress and Origin