auth_param basic program /usr/lib/squid3/basic_ncsa_auth /etc/squid/passwords
#auth_param basic children 5 startup = 5 idle = 1
auth_param basic realm proxy
auth_param basic credentialsttl 1 second
connect_timeout 1 second
acl authenticated proxy_auth REQUIRED
http_access allow authenticated

logformat splunk_recommended_squid %ts.%03tu logformat=splunk_recommended_squid duration=%tr src_ip=%>a src_port=%>p dest_ip=%<a dest_port=%<p user_ident="%[ui" user="%[un" local_time=[%tl] http_method=%rm request_method_from_client=%<rm request_method_to_server=%>rm url="%ru" http_referrer="%{Referer}>h" http_user_agent="%{User-Agent}>h" status=%>Hs vendor_action=%Ss dest_status=%Sh total_time_milliseconds=%<tt http_content_type="%mt" bytes=%st bytes_in=%>st bytes_out=%<st sni=ssl::>sni

logfile_rotate 0
cache_log stdio:/proc/self/fd/1 splunk_recommended_squid
access_log stdio:/proc/self/fd/1 splunk_recommended_squid
cache_store_log stdio:/proc/self/fd/1 splunk_recommended_squid

# Choose the port you want. Below we set it to default 3128.
http_port 3128
