Re: [squid-users] Access log not using logformat config line.

From: Michael Hendrie <michael_at_hendrie.id.au>
Date: Thu, 5 May 2011 09:35:34 +0930

On 05/05/2011, at 9:06 AM, Farokh Irani wrote:

> I don't have any specific access_log config line, but that's not the issue. The access log file is being created but the entries aren't in the format I've specified.
>

That is the cause of your issue. If there is no access_log configuration specified it will use the default - http://www.squid-cache.org/Doc/config/access_log/. You need to tell squid to use your logging format as Amos described below.

> Thanks.
>
> Amos Jeffries wrote:
>> On Wed, 04 May 2011 13:34:01 -0400, Farokh Irani wrote:
>>> I've got the following entry in my squid.conf file:
>>>
>>> logformat ourlogformat %tl %>a %Ss/%03>Hs %<st %rm %ru %un %Sh/%<A %mt
>>>
>>> But the access.log entries look like this:
>>> 1304530209.280 2765 x.x.x.x TCP_MISS/200 306 POST https://xxxxx? -
>>> DIRECT/x.x.x.x text/html
>>>
>>> It doesn't seem to be using the logformat I specified, and I'm not
>>> sure why.
>>>
>>> Any ideas?
>>
>> Did you use it to format that output file?
>> access_log /path/to/file ourformat
>>
>> http://www.squid-cache.org/Doc/config/access_log/
>>
>> Amos
>
> --
> Farokh Irani
> farokh_at_itouchpoint.com
> Skype: farokhitp
> Phone: 914-262-1594
>

Received on Thu May 05 2011 - 00:05:33 MDT

This archive was generated by hypermail 2.2.0 : Thu May 05 2011 - 12:00:02 MDT