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/22.214.171.124 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.
Popular posts from this blog
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.
My teleco has provided Internet facility in which you can put data SIM card in a USB dongle and use Internet. Its call Ncell Connect . In neighboring country like India, some of them are called Reliance Netconnect+ . In such data SIM card you can only use SMS and Internet. You can't make phone calls. So to recharge or to know about the balance or data balance you have to send SMS. For Windows the software to do all of these comes bundled with the USB dongle. For Linux we'll find our own way. Let us use awesome program called gammu . For Ubuntu, click here to install. After pluging in the USB dongle open terminal and type: dmesg | grep tty This will tell you where your USB dongle is connected. For example mine is ttyUSB0 . Make note of this. Now run gammu-config to configure gammu. You only have to change one thing here. In Port the value should be /dev/ttyUSB0 where ttyUSB0 is what you noted above. Press OK and now we are ready to run gammu.