Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-02-2009, 05:54 AM
|
#1
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Rep: 
|
Calamaris would not generate reports if I change logformat.
Hello
I have squid running on two sites mainly for internet sharing and content filtering with dansguardian. I started using calamaris recently to view the log files. Till then I manually went through the file.
For my facility to understand the date and time of the log file I changed the default logformat in squid.conf file. Now it displays local time.
But this has triggered some problem and now calamaris can not understand the log file format I guess.
Is there any option where I can keep the log format settings in squid.conf file to display local time and still run calamaris?
|
|
|
02-02-2009, 11:24 PM
|
#2
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Original Poster
Rep: 
|
I tried changing the log format to original that was there. But still calamaris gives me error.
Quote:
/usr/bin/calamaris: I don't know this input format. Please check the
input. If you're sure that the following line is NOT corrupt and the error
also occurs with the recent version of Calamaris (see the README for pointers
and known bugs) then report it with the following line to
<Calamaris-bug@Cord.de>. Thank You.
02/Feb/2009:09:04:18 +0530.308 485 192.168.1.58 TCP_MISS/200 1791 GET http://www.goal.com/css2_5/img/i/MC_en.gif - DIRECT/210.166.229.141 image/gif
|
|
|
|
02-03-2009, 01:28 AM
|
#3
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Original Poster
Rep: 
|
Solved:
Just edited the command and mentioned the type of log file to be of squid explicitly.
Code:
calamaris -a -f squid -F html /var/log/squid/access.log
|
|
|
02-06-2009, 12:02 AM
|
#4
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Original Poster
Rep: 
|
No. Suddenly calamaris has stopped working the way it was.
I think calamaris is unable to understand the log format once I change it to display the local time in time stamp rather than the epoch time.
Is there any way I can change the code for calamaris to make it understand the local time so that it can parse this time?
Last edited by linuxlover.chaitanya; 02-06-2009 at 12:12 AM.
|
|
|
02-09-2009, 07:00 AM
|
#5
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Original Poster
Rep: 
|
Now that. I got webmin and webalizer and it does not understand the log file format for local date as well. Any tool that can understand the local time in log file if I change the log format in squid configuration file?
|
|
|
All times are GMT -5. The time now is 03:22 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|