use sensible log format for squid

Bug #1931155 reported by Junien F
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Repository Cache Charm
Fix Released
High
Haw Loeung

Bug Description

By default, squid uses "milliseconds since epoch" to log timestamps. We should configure something more readable.

Current workaround is to send your logs through :
perl -pe 's/\d+/localtime($&)/e'

Related branches

Haw Loeung (hloeung)
Changed in ubuntu-repository-cache:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Haw Loeung (hloeung)
status: Confirmed → In Progress
Revision history for this message
Haw Loeung (hloeung) wrote :

That's also LP:1780341

Haw Loeung (hloeung)
Changed in ubuntu-repository-cache:
status: In Progress → Fix Committed
Haw Loeung (hloeung)
Changed in ubuntu-repository-cache:
status: Fix Committed → Fix Released
Revision history for this message
Haw Loeung (hloeung) wrote :

Updated MP changing '%tg{%F %H:%M:%S}' to be '%{%F %H:%M:%S}tg' so it works on older versions of Squid (3.5 shipped with Xenial).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.