Name
useragent_log
Synopsis
This directive causes Squid to create a log file of User-Agent
strings. The file contains three
fields: client identifier, timestamp, and user-agent string. The
client identifier is an IP address, unless you enable the
log_fqdn directive, in which case it is a
hostname if one is available. Squid writes an entry for every HTTP
request that has a User-Agent
header. Unlike access.log,
entries are written to this file when the request is received.
Syntax | useragent_log |
Default | No default |
Example | useragent_log /usr/local/squid/var/logs/useragent.log |
Related | log_fqdn, cache_access_log, referer_log |
Get Squid: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.