You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by Veiko Kukk <ve...@gmail.com> on 2017/12/11 14:08:09 UTC
Garbled log date stamp
Hi
ATS 7.1.1.
I'm trying to get human readable timestamps with ascii log formats.
-- Squid Log Format.
squid = format {
Format = '%<cqtt> %<ttms> %<chi> %<crc>/%<pssc> %<psql> %<cqhm> %<cquc>
%<caun> %<phr>/%<pqsn> %<psct>'
}
test_url_include = filter.accept('cquc CONTAIN /testurl')
test_url_exclude = filter.reject('cquc CONTAIN /testurl')
-- Log only test requests
log.ascii {
Filename = 'test_url',
Format = squid,
Filters = { test_url_include }
}
-- Normal client usage, excluded test url
log.ascii {
Filename = 'access',
Format = squid,
Filters = { test_url_exclude }
}
# file test_url.log
test_url.log: data
When trying to open with less, less says file is binary.
less test_url.log
"test_url.log" may be a binary file. See it anyway?
With timestamp in cqtq this does not happen. Why?
Re: Garbled log date stamp
Posted by Veiko Kukk <ve...@gmail.com>.
Hi Leif,
Thank you for the answer. Good to know, it's known bug.
Veiko
2017-12-18 5:35 GMT+02:00 Leif Hedstrom <zw...@apache.org>:
> Some broken log tags were fixed fairly recently, which also is going into
> 7.1.2.Look at https://github.com/apache/trafficserver/pull/2943 and see
> if this is your issue?
>
> — Leif
>
>
> On Dec 11, 2017, at 7:08 AM, Veiko Kukk <ve...@gmail.com> wrote:
>
> Hi
>
> ATS 7.1.1.
> I'm trying to get human readable timestamps with ascii log formats.
>
> -- Squid Log Format.
> squid = format {
> Format = '%<cqtt> %<ttms> %<chi> %<crc>/%<pssc> %<psql> %<cqhm> %<cquc>
> %<caun> %<phr>/%<pqsn> %<psct>'
> }
>
> test_url_include = filter.accept('cquc CONTAIN /testurl')
> test_url_exclude = filter.reject('cquc CONTAIN /testurl')
>
> -- Log only test requests
> log.ascii {
> Filename = 'test_url',
> Format = squid,
> Filters = { test_url_include }
> }
>
> -- Normal client usage, excluded test url
> log.ascii {
> Filename = 'access',
> Format = squid,
> Filters = { test_url_exclude }
> }
>
> # file test_url.log
> test_url.log: data
>
> When trying to open with less, less says file is binary.
> less test_url.log
> "test_url.log" may be a binary file. See it anyway?
>
> With timestamp in cqtq this does not happen. Why?
>
>
>
>
Re: Garbled log date stamp
Posted by Leif Hedstrom <zw...@apache.org>.
Some broken log tags were fixed fairly recently, which also is going into 7.1.2.Look at https://github.com/apache/trafficserver/pull/2943 <https://github.com/apache/trafficserver/pull/2943> and see if this is your issue?
— Leif
> On Dec 11, 2017, at 7:08 AM, Veiko Kukk <ve...@gmail.com> wrote:
>
> Hi
>
> ATS 7.1.1.
> I'm trying to get human readable timestamps with ascii log formats.
>
> -- Squid Log Format.
> squid = format {
> Format = '%<cqtt> %<ttms> %<chi> %<crc>/%<pssc> %<psql> %<cqhm> %<cquc> %<caun> %<phr>/%<pqsn> %<psct>'
> }
>
> test_url_include = filter.accept('cquc CONTAIN /testurl')
> test_url_exclude = filter.reject('cquc CONTAIN /testurl')
>
> -- Log only test requests
> log.ascii {
> Filename = 'test_url',
> Format = squid,
> Filters = { test_url_include }
> }
>
> -- Normal client usage, excluded test url
> log.ascii {
> Filename = 'access',
> Format = squid,
> Filters = { test_url_exclude }
> }
>
> # file test_url.log
> test_url.log: data
>
> When trying to open with less, less says file is binary.
> less test_url.log
> "test_url.log" may be a binary file. See it anyway?
>
> With timestamp in cqtq this does not happen. Why?
>
>