

{"id":480,"date":"2016-11-21T10:06:54","date_gmt":"2016-11-21T00:06:54","guid":{"rendered":"https:\/\/kng.tech\/blog\/?p=480"},"modified":"2016-11-21T10:06:54","modified_gmt":"2016-11-21T00:06:54","slug":"squid-access-log-with-human-readable-time","status":"publish","type":"post","link":"https:\/\/kng.tech\/blog\/squid-access-log-with-human-readable-time\/","title":{"rendered":"Squid Access Log with human readable Time"},"content":{"rendered":"<p>To see the access log with human readable time in terminal:<\/p>\n<pre><code>tail -f \/var\/log\/squid\/access.log | perl -p -e 's\/^([0-9]*)\/\"[\".localtime($1).\"]\"\/e'<\/code><\/pre>\n<p>Reference <a href=\"http:\/\/www.commandlinefu.com\/commands\/view\/8784\/read-squid-logs-with-human-readable-timestamp\" target=\"_blank\">here<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To see the access log with human readable time in terminal: tail -f \/var\/log\/squid\/access.log | perl -p -e 's\/^([0-9]*)\/\"[\".localtime($1).\"]\"\/e' Reference here<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[65,67,32],"class_list":["post-480","post","type-post","status-publish","format-standard","hentry","category-tech","tag-linux","tag-squid","tag-terminal"],"_links":{"self":[{"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/posts\/480","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/comments?post=480"}],"version-history":[{"count":1,"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/posts\/480\/revisions"}],"predecessor-version":[{"id":481,"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/posts\/480\/revisions\/481"}],"wp:attachment":[{"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/media?parent=480"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/categories?post=480"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/tags?post=480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}