Squid access log is very informative if you know how to dig something out of it. Following is an a line from access.log file. 1201172176.719 1190 127.0.0.1 TCP_MISS/200 529 GET http://www.blogger.com/status.g? - DIRECT/126.96.36.199 application/xml This line can be written as: Timestamp, Total time, Source, Action/Code, Size, Method, URL, Ident, Hierarchy/From, Content type 1: Timestamp Time when the request was completed. 2: Total time Total time taken to complete the request 3: Source IP address of the client 4: Action/Code Action taken for the request 5: Size Total size of the request in bytes 6: Method Whether the request was GET or POST 7: URL The actual request 8: Ident Usually - 9: Hierarchy/From How the object is fetched and from where 10: Content type Type of object Action "TCP_" refers to requests on the HTTP port (3128) TCP_HIT A valid copy of the requested object was in the cache. TCP_MISS The requested object was not in the cache.
This Python logging handler can be used to combine multiple log message in one email message and send the log email using Amazon SES . Boto is used to send email using Amazon SES. Email will be send once the buffer reaches the capacity you've specified. To force send the email before it reaches the buffer capacity you can shutdown the logger by calling its shutdown method.You can simultaneously keep logging in file or other places by adding more handler.
I was trying to use Disk Utility program to edit some partition in my system. But I got a strange error message "invalid partition table on /dev/sda -- wrong signature 0." and couldn't proceed. So I tried with gparted(Gnome Partition Editor). The result wasn't any different. Today while clean installing Ubuntu 11.10 Oneiric Ocelot, the installer said that there was no partition in my disk. While trying live CD, I could find all the partition and read data. If you also encounter any of the above problem, simple run fdisk by sudo fdisk /dev/sda press p and then press w . You'll see a message "The partition table has been altered!". Now try running the partition editor or the installer again.