PDA

View Full Version : Sarg got no record found



guan yu
4th January 2009, 12:15 PM
Hi all,

Previously, I had my SARG configured properly. I deleted all the access.log.gz files and left access.log. I also deleted all the html report generated previous.

After that, I tried to generate report manually to test whether new report being accordingly. No html report as well. I've checked my log rotate for access.log is weekly basis.

I got the msg as per below
Now generating Sarg report from Squid log file /var/log/squid/access.log and all rotated versions ..


sarg -l /var/log/squid/access.log
SARG: Records in file: 295, reading: 0.00%
SARG: No records found
SARG: End
SARG: Records in file: 295, reading: 100.00%
sarg -l /var/log/squid/access.log.bak
SARG: Records in file: 5396, reading: 0.00%
SARG: Records in file: 5396, reading: 92.66%
SARG: No records found
SARG: End
SARG: Records in file: 5396, reading: 100.00%

.. Sarg finished, but no report was generated. See the output above for details.

[root@tbp1 squid]# ls -la
total 2548
drwxrwxrwx 2 squid squid 4096 2009-01-04 18:21 .
drwxr-xr-x 21 root root 4096 2009-01-04 18:19 ..
-rw-r----- 1 squid squid 108076 2009-01-04 19:03 access.log
-rw-r----- 1 squid squid 733692 2009-01-04 18:20 access.log.bak
-rw-r----- 1 squid squid 14132 2009-01-04 18:46 cache.log
-rw-r----- 1 squid squid 4532 2008-12-28 01:17 cache.log-20081228.gz
-rw-r----- 1 squid squid 7191 2009-01-04 04:03 cache.log-20090104.gz
-rw-r--r-- 1 root root 72 2008-12-26 16:16 squid.out
-rw-r----- 1 squid squid 1005783 2009-01-04 19:03 store.log
-rw-r----- 1 squid squid 495285 2008-12-28 01:17 store.log-20081228.gz
-rw-r----- 1 squid squid 189943 2009-01-04 04:03 store.log-20090104.gz
[root@tbp1 squid]#


Here is the current access.log
[root@tbp1 squid]# tail -f access.log
1231066228.744 2144 192.168.1.181 TCP_MISS/200 538 POST http://www.facebook.com/ajax/chat/typ.php? - DIRECT/69.63.180.12 application/x-javascript
1231066229.056 4688 192.168.1.181 TCP_MISS/200 692 POST http://www.facebook.com/ajax/chat/send.php? - DIRECT/69.63.180.12 application/x-javascript
1231066229.927 1046 192.168.1.181 TCP_MISS/200 692 POST http://www.facebook.com/ajax/chat/send.php? - DIRECT/69.63.180.12 application/x-javascript
1231066232.961 543 192.168.1.181 TCP_MISS/302 1108 GET http://www.facebook.com/logout.php? - DIRECT/69.63.180.12 text/html
1231066237.500 2140 192.168.1.181 TCP_MISS/200 784 POST http://www.facebook.com/ajax/chat/buddy_list.php? - DIRECT/69.63.180.12 application/x-javascript
1231066238.846 5835 192.168.1.181 TCP_MISS/200 9433 GET http://www.facebook.com/index.php? - DIRECT/69.63.180.12 text/html
1231066282.269 20 192.168.1.139 TCP_MISS/503 2143 GET http://license.bluesoleii.com/activate.asp? - DIRECT/license.bluesoleii.com text/html
1231066288.663 62323 192.168.1.181 TCP_MISS/000 0 GET http://0442959738.channel32.facebook.com/x/2210600156/false/p_1351881893=6 - DIRECT/69.63.176.192 -
1231066633.837 21 192.168.1.139 TCP_MISS/503 2143 GET http://license.bluesoleii.com/activate.asp? - DIRECT/license.bluesoleii.com text/html
1231066985.404 20 192.168.1.139 TCP_MISS/503 2143 GET http://license.bluesoleii.com/activate.asp? - DIRECT/license.bluesoleii.com text/html

Guys any idea?


Thanks.