Search squid archive

Changing the time format for access_log

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



squid 4.8

I changed the default squid log format

logformat squid %ts.%03tu %6tr %>a %Ss/%03>Hs %<st %rm %ru %[un %Sh/%<a %mt

to present a more readable fime:
logformat sma1 %Y-%m-%dT%H:%M:%S %z.%03tu %6tr %>a %Ss/%03>Hs %<st %rm %ru %[un
%Sh/%<a %mt

This did not sit well with squid:
$ squid -k parse
...[ bunch o' stuff ]...
2019/11/19 11:32:51| Processing: logformat sma1  %Y-%m-%dT%H:%M:%S %z.%03tu %6tr
%>a %Ss/%03>Hs %<st %rm %ru %[un %Sh/%<a %mt
2019/11/19 11:32:51| storeDirWriteCleanLogs: Operation aborted.
2019/11/19 11:32:51| FATAL: Can't parse configuration token: '%Y-%m-%dT%H:%M:%S
%z.%03tu %6tr %>a %Ss/%03>Hs %<st %rm %ru %[un %Sh/%<a %mt'

What is the format error?

-- 
James Moe
moe dot james at sohnen-moe dot com
520.743.3936
Think.

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux