LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Squid proxy not generating reports for all dates :( (https://www.linuxquestions.org/questions/linux-server-73/squid-proxy-not-generating-reports-for-all-dates-787363/)

sco1984 02-06-2010 01:27 AM

Squid proxy not generating reports for all dates :(
 
Hello,

I am having squid proxy server running on OpenSuSe 10.2
I noticed when I generate report it just shows me last date log file.
Although /var/log/squid contains logs of all previous dates.

I really cant remember which file to modify so that I can see all dates reports in html when I use following command
Quote:

cat access.log | /home/user/squint-0.3.10/squint.pl /home/user/report<date>
Any help?

Regards,
Amey.

TB0ne 02-06-2010 11:27 AM

Quote:

Originally Posted by sco1984 (Post 3854526)
Hello,

I am having squid proxy server running on OpenSuSe 10.2
I noticed when I generate report it just shows me last date log file.
Although /var/log/squid contains logs of all previous dates.

I really cant remember which file to modify so that I can see all dates reports in html when I use following command

Any help?

So instead of looking up the answer in the Squint documentation (and on their website, in the FAQ), we should look it up for you??

http://www.ledge.co.za/software/squint/

sco1984 02-06-2010 11:53 AM

Quote:

Originally Posted by TB0ne (Post 3854892)
So instead of looking up the answer in the Squint documentation (and on their website, in the FAQ), we should look it up for you??

http://www.ledge.co.za/software/squint/

@ TBone > I also did google and found above web-page. But the out put = zero.

Those typical documented solutions doesnt work most of the time to be frank. Have you ever did set up of squid BTW? If yes can give any hint what could be the problem? You seems to be well versed with above web-site :)

TB0ne 02-06-2010 07:36 PM

Quote:

Originally Posted by sco1984 (Post 3854922)
@ TBone > I also did google and found above web-page. But the out put = zero.

Those typical documented solutions doesnt work most of the time to be frank. Have you ever did set up of squid BTW? If yes can give any hint what could be the problem? You seems to be well versed with above web-site :)

Yes, I have seven in a HA cluster, and the "typical documented solutions" have always worked. And the reason I'm "well versed with web site", is that I read the instructions. But you're not talking about Squid...you're talking about Squint.

And did you read the README file that comes with Squint?? About how running the command you stated generates a one off report?? About how if you want to CRON it to keep up with what's going on, you've got to do something different???

sco1984 02-06-2010 08:57 PM

Quote:

Originally Posted by TB0ne (Post 3855223)
Yes, I have seven in a HA cluster, and the "typical documented solutions" have always worked. And the reason I'm "well versed with web site", is that I read the instructions. But you're not talking about Squid...you're talking about Squint.

And did you read the README file that comes with Squint?? About how running the command you stated generates a one off report?? About how if you want to CRON it to keep up with what's going on, you've got to do something different???

-I dont want to set up cron job due to some limitations.
-2ndly I mentioned squid because I am using squint for squid proxy application.
-And lastly I can say yes in your case those documented solutions would work because you are on hi fi HA mode probabbly in standard comptible hardware + software module with US certified stuff. [ I noted that as you are from *US* / Althought south US but I guess same standardization as in north US ]
-In Asia things differs. :)

& last but not least I strongly beleive LQ has many genius who can give hint in a single line rather than writting about * heaps of documented stuff * . :) I hope you got my point. Everything you say is right but you see what I was trying to know? :)

TB0ne 02-06-2010 10:52 PM

Quote:

Originally Posted by sco1984 (Post 3855270)
-I dont want to set up cron job due to some limitations.

Probably should have said that to begin with. In that case, AGAIN, read the documentation. Blow away the one-time report directory, and re-run it.
Quote:

-2ndly I mentioned squid because I am using squint for squid proxy application.
Your problem was with Squint, NOT Squid
Quote:

-And lastly I can say yes in your case those documented solutions would work because you are on hi fi HA mode probabbly in standard comptible hardware + software module with US certified stuff. [ I noted that as you are from *US* / Althought south US but I guess same standardization as in north US ]
-In Asia things differs. :)
Squid is the same, no matter the language, as is Squint.
Quote:

& last but not least I strongly beleive LQ has many genius who can give hint in a single line rather than writting about * heaps of documented stuff * . :) I hope you got my point. Everything you say is right but you see what I was trying to know? :)
Nope...you didn't want to look up the answer, but wanted it to be handed to you. I gave you the 'hint' in the single line, but you didn't read the FAQ, READMES, or anything else.

sco1984 02-08-2010 02:34 AM

I figured out I neeed a small code to add in squint.pl which will instruct actual order to search for all dates logs and generate report.

But exisitng squint.pl is enough confusing. Not being a hard core developer dont no where to add code.

TB0ne 02-08-2010 12:58 PM

Quote:

Originally Posted by sco1984 (Post 3856385)
I figured out I neeed a small code to add in squint.pl which will instruct actual order to search for all dates logs and generate report.

But exisitng squint.pl is enough confusing. Not being a hard core developer dont no where to add code.

If you want to generate one-off reports, by the method you're using, you just have to remove the OLD report, move it somewhere else, rename it, whatever. Then re-reun the command.

If you want to run reports regularly, that's what cron is for. If you want to modify the source code, then you'll either have to do it yourself, or hire someone.

sco1984 02-08-2010 06:01 PM

Quote:

Originally Posted by TB0ne (Post 3856947)
If you want to generate one-off reports, by the method you're using, you just have to remove the OLD report, move it somewhere else, rename it, whatever. Then re-reun the command.

If you want to run reports regularly, that's what cron is for. If you want to modify the source code, then you'll either have to do it yourself, or hire someone.

We have many developers in our office. I have assigned this task to 1 of them. :p

sco1984 06-03-2010 11:46 AM

Any1 can give hint as this problem is still pending for me?


All times are GMT -5. The time now is 05:00 PM.