Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 10-19-2009, 06:37 AM   #1
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.

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

Rep: Reputation: 165Reputation: 165
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:
awk '/192\.168\.1\.20/ {print strftime("%c",$1),$4,$7}' /var/log/squid/access.log


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 08:57 AM
Squid problem with http_access and time acl mago Linux - Networking 1 11-25-2005 02:11 PM
Squid : Time ACL problem ikillu Linux - Networking 4 07-18-2005 03:44 PM
set time acl and custom message squid cgelectek Linux - Software 1 06-25-2005 12:17 PM
squid acl - time statement xscousr Linux - Networking 4 08-08-2003 01:12 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:55 PM.

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