LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 10-19-2009, 05:37 AM   #1
thetzawko
LQ Newbie
 
Registered: Mar 2005
Posts: 17

Rep: Reputation: 0
Date Time ACL in squid for Local time


I want to use Date Time ACLs in squid with local time. Not GMT or UTC.
How could I configure it? I also want to see local time in access.log file and squid generated error pages.

Thanks
 
Old 10-20-2009, 06:58 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
From what I remember, using acl aclname time [day-abbrevs] [h1:m1-h2:m2] in the squid.conf file used whatever time setting your box did - is your Linux box using GMT or UTC?

As far as parsing the logs goes, it's easier to use a tool like calamaris to generate and format a report. Alternatively, to just pull out the first, fourth and seventh fields of the access log you could do this:
Code:
awk '/192\.168\.1\.20/ {print strftime("%c",$1),$4,$7}' /var/log/squid/access.log
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i configure time acl in squid redhat 5.o sukhwaljai Linux - Newbie 1 05-27-2009 07:57 AM
Squid problem with http_access and time acl mago Linux - Networking 1 11-25-2005 01:11 PM
Squid : Time ACL problem ikillu Linux - Networking 4 07-18-2005 02:44 PM
set time acl and custom message squid cgelectek Linux - Software 1 06-25-2005 11:17 AM
squid acl - time statement xscousr Linux - Networking 4 08-08-2003 12:12 AM


All times are GMT -5. The time now is 05:12 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration