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.
Popular posts from this blog
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.
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.