You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by Sevan Gelici <se...@gmail.com> on 2018/11/18 07:31:17 UTC
trafficserver 8 - Logging Client request (domain)
Hello,
I dont know if its a issue or if i do it wrong but logging in trafficserver
8.0 doesnt work well for me. When i add to
"/etc/trafficserver/logging.yaml" the value %<cqtx> its not giving me
output anymore.
In the default logging.yaml i modified this part
logs:
- filename: squid
format: welf
mode: ascii
this works but when i modify as example %<ttms> to %<cqtx> it doesnt work
anymore.
Could someone explain why it doesnt log anymore after giving these value?
-
https://ats-zh.readthedocs.io/en/latest/admin/event-logging-formats.en.html#custom-logging-fields
- http://trafficserver.apache.org/logbuilder/
Kind regards,
Sevan Gelici
Re: trafficserver 8 - Logging Client request (domain)
Posted by Sevan Gelici <se...@gmail.com>.
Miles,
Yes remaps are configured. I will need to perform a few more tests and then
i will let u know. I think it will be tomorrow.
---------- Forwarded message ---------
From: Miles Libbey <ml...@apache.org>
Date: ma 19 nov. 2018 om 20:33
Subject: Re: trafficserver 8 - Logging Client request (domain)
To: <us...@trafficserver.apache.org>
Weird. I just copied these values and put it on one of our 8.0x
machines, and it worked fine -- the remapped url and method appeared
as the time keyword's value. But, we also have/had cqtx logged on the
same machine, so, I suppose it not surprising that it worked for me.
Do you have cqtx working on a 7.1.x node? (And I suppose silly
question, you do have remaps configured right?)
On Mon, Nov 19, 2018 at 10:47 AM Sevan Gelici <se...@gmail.com> wrote:
>
> I just did a few tests example
>
> - format: "id=firewall time=\"%<cqtx> %<cqtt>\" fw=%<phn> pri=6
> proto=%<cqus> duration=%<ttmsf> sent=%<psql> rcvd=%<cqhl> src=%<chi>
> dst=%<shi> dstname=%<shn> user=%<caun> op=%<cqhm> arg=\"%<cqup>\"
> result=%<pssc> ref=\"%<{Referer}cqh>\" agent=\"%<{user-agent}cqh>\"
> cache=%<crc>"
>
> logs:
> - filename: squid
> format: welf
> mode: ascii
>
> After i put the value cqtx somewhere randomly my squid.log not working.
When i remove cqtx its working.
>
> Op ma 19 nov. 2018 om 19:30 schreef Miles Libbey <ml...@apache.org>:
>>
>> Could you also post your formats definition?
>>
>> eg
>> formats:
>> - format: "id=firewall time=\"%<cqtd> %<cqtt>\" fw=%<phn> pri=6
>> proto=%<cqus> duration=%<ttmsf> sent=%<psql> rcvd=%<cqhl> src=%<chi>
>> dst=%<shi> dstname=%<shn> user=%<caun> op=%<cqhm> arg=\"%<cqup>\"
>> result=%<pssc> ref=\"%<{Referer}cqh>\" agent=\"%<{user-agent}cqh>\"
>> cache=%<crc>"
>> name: welf
>>
>> On Sat, Nov 17, 2018 at 11:31 PM Sevan Gelici <se...@gmail.com>
wrote:
>> >
>> > Hello,
>> >
>> > I dont know if its a issue or if i do it wrong but logging in
trafficserver 8.0 doesnt work well for me. When i add to
"/etc/trafficserver/logging.yaml" the value %<cqtx> its not giving me
output anymore.
>> >
>> > In the default logging.yaml i modified this part
>> > logs:
>> > - filename: squid
>> > format: welf
>> > mode: ascii
>> > this works but when i modify as example %<ttms> to %<cqtx> it doesnt
work anymore.
>> >
>> > Could someone explain why it doesnt log anymore after giving these
value?
>> >
>> >
>> > -
https://ats-zh.readthedocs.io/en/latest/admin/event-logging-formats.en.html#custom-logging-fields
>> > - http://trafficserver.apache.org/logbuilder/
>> >
>> >
>> > Kind regards,
>> >
>> > Sevan Gelici
Re: trafficserver 8 - Logging Client request (domain)
Posted by Miles Libbey <ml...@apache.org>.
Weird. I just copied these values and put it on one of our 8.0x
machines, and it worked fine -- the remapped url and method appeared
as the time keyword's value. But, we also have/had cqtx logged on the
same machine, so, I suppose it not surprising that it worked for me.
Do you have cqtx working on a 7.1.x node? (And I suppose silly
question, you do have remaps configured right?)
On Mon, Nov 19, 2018 at 10:47 AM Sevan Gelici <se...@gmail.com> wrote:
>
> I just did a few tests example
>
> - format: "id=firewall time=\"%<cqtx> %<cqtt>\" fw=%<phn> pri=6
> proto=%<cqus> duration=%<ttmsf> sent=%<psql> rcvd=%<cqhl> src=%<chi>
> dst=%<shi> dstname=%<shn> user=%<caun> op=%<cqhm> arg=\"%<cqup>\"
> result=%<pssc> ref=\"%<{Referer}cqh>\" agent=\"%<{user-agent}cqh>\"
> cache=%<crc>"
>
> logs:
> - filename: squid
> format: welf
> mode: ascii
>
> After i put the value cqtx somewhere randomly my squid.log not working. When i remove cqtx its working.
>
> Op ma 19 nov. 2018 om 19:30 schreef Miles Libbey <ml...@apache.org>:
>>
>> Could you also post your formats definition?
>>
>> eg
>> formats:
>> - format: "id=firewall time=\"%<cqtd> %<cqtt>\" fw=%<phn> pri=6
>> proto=%<cqus> duration=%<ttmsf> sent=%<psql> rcvd=%<cqhl> src=%<chi>
>> dst=%<shi> dstname=%<shn> user=%<caun> op=%<cqhm> arg=\"%<cqup>\"
>> result=%<pssc> ref=\"%<{Referer}cqh>\" agent=\"%<{user-agent}cqh>\"
>> cache=%<crc>"
>> name: welf
>>
>> On Sat, Nov 17, 2018 at 11:31 PM Sevan Gelici <se...@gmail.com> wrote:
>> >
>> > Hello,
>> >
>> > I dont know if its a issue or if i do it wrong but logging in trafficserver 8.0 doesnt work well for me. When i add to "/etc/trafficserver/logging.yaml" the value %<cqtx> its not giving me output anymore.
>> >
>> > In the default logging.yaml i modified this part
>> > logs:
>> > - filename: squid
>> > format: welf
>> > mode: ascii
>> > this works but when i modify as example %<ttms> to %<cqtx> it doesnt work anymore.
>> >
>> > Could someone explain why it doesnt log anymore after giving these value?
>> >
>> >
>> > - https://ats-zh.readthedocs.io/en/latest/admin/event-logging-formats.en.html#custom-logging-fields
>> > - http://trafficserver.apache.org/logbuilder/
>> >
>> >
>> > Kind regards,
>> >
>> > Sevan Gelici
Re: trafficserver 8 - Logging Client request (domain)
Posted by Sevan Gelici <se...@gmail.com>.
I just did a few tests example
- format: "id=firewall time=\"%<cqtx> %<cqtt>\" fw=%<phn> pri=6
proto=%<cqus> duration=%<ttmsf> sent=%<psql> rcvd=%<cqhl> src=%<chi>
dst=%<shi> dstname=%<shn> user=%<caun> op=%<cqhm> arg=\"%<cqup>\"
result=%<pssc> ref=\"%<{Referer}cqh>\" agent=\"%<{user-agent}cqh>\"
cache=%<crc>"
logs:
- filename: squid
format: welf
mode: ascii
After i put the value cqtx somewhere randomly my squid.log not working.
When i remove cqtx its working.
Op ma 19 nov. 2018 om 19:30 schreef Miles Libbey <ml...@apache.org>:
> Could you also post your formats definition?
>
> eg
> formats:
> - format: "id=firewall time=\"%<cqtd> %<cqtt>\" fw=%<phn> pri=6
> proto=%<cqus> duration=%<ttmsf> sent=%<psql> rcvd=%<cqhl> src=%<chi>
> dst=%<shi> dstname=%<shn> user=%<caun> op=%<cqhm> arg=\"%<cqup>\"
> result=%<pssc> ref=\"%<{Referer}cqh>\" agent=\"%<{user-agent}cqh>\"
> cache=%<crc>"
> name: welf
>
> On Sat, Nov 17, 2018 at 11:31 PM Sevan Gelici <se...@gmail.com>
> wrote:
> >
> > Hello,
> >
> > I dont know if its a issue or if i do it wrong but logging in
> trafficserver 8.0 doesnt work well for me. When i add to
> "/etc/trafficserver/logging.yaml" the value %<cqtx> its not giving me
> output anymore.
> >
> > In the default logging.yaml i modified this part
> > logs:
> > - filename: squid
> > format: welf
> > mode: ascii
> > this works but when i modify as example %<ttms> to %<cqtx> it doesnt
> work anymore.
> >
> > Could someone explain why it doesnt log anymore after giving these value?
> >
> >
> > -
> https://ats-zh.readthedocs.io/en/latest/admin/event-logging-formats.en.html#custom-logging-fields
> > - http://trafficserver.apache.org/logbuilder/
> >
> >
> > Kind regards,
> >
> > Sevan Gelici
>
Re: trafficserver 8 - Logging Client request (domain)
Posted by Miles Libbey <ml...@apache.org>.
Could you also post your formats definition?
eg
formats:
- format: "id=firewall time=\"%<cqtd> %<cqtt>\" fw=%<phn> pri=6
proto=%<cqus> duration=%<ttmsf> sent=%<psql> rcvd=%<cqhl> src=%<chi>
dst=%<shi> dstname=%<shn> user=%<caun> op=%<cqhm> arg=\"%<cqup>\"
result=%<pssc> ref=\"%<{Referer}cqh>\" agent=\"%<{user-agent}cqh>\"
cache=%<crc>"
name: welf
On Sat, Nov 17, 2018 at 11:31 PM Sevan Gelici <se...@gmail.com> wrote:
>
> Hello,
>
> I dont know if its a issue or if i do it wrong but logging in trafficserver 8.0 doesnt work well for me. When i add to "/etc/trafficserver/logging.yaml" the value %<cqtx> its not giving me output anymore.
>
> In the default logging.yaml i modified this part
> logs:
> - filename: squid
> format: welf
> mode: ascii
> this works but when i modify as example %<ttms> to %<cqtx> it doesnt work anymore.
>
> Could someone explain why it doesnt log anymore after giving these value?
>
>
> - https://ats-zh.readthedocs.io/en/latest/admin/event-logging-formats.en.html#custom-logging-fields
> - http://trafficserver.apache.org/logbuilder/
>
>
> Kind regards,
>
> Sevan Gelici
Re: trafficserver 8 - Logging Client request (domain)
Posted by Sevan Gelici <se...@gmail.com>.
Hi Susan,
/usr/local/var/log/trafficserver/diags.log i cannot find any info related
to that issue. only this
ALERT: exiting with write error from process manager: Broken pipe
The two other files i don't have I think i need to change value for debug
level. Can you let me know about your tests? i will look tomorrow again if
i can find more information.
Kind regards,
Sevan Gelici
Op ma 19 nov. 2018 om 15:00 schreef Susan Hinrichs <sh...@apache.org>:
> Do you have any error messages in diags.log, error.log, or traffic.out?
> Our organization doesn't use that field, but perhaps there is a bug in its
> support. I'll try to sent that up on a test box today.
>
> On Sun, Nov 18, 2018 at 1:31 AM Sevan Gelici <se...@gmail.com>
> wrote:
>
>> Hello,
>>
>> I dont know if its a issue or if i do it wrong but logging in
>> trafficserver 8.0 doesnt work well for me. When i add to
>> "/etc/trafficserver/logging.yaml" the value %<cqtx> its not giving me
>> output anymore.
>>
>> In the default logging.yaml i modified this part
>> logs:
>> - filename: squid
>> format: welf
>> mode: ascii
>> this works but when i modify as example %<ttms> to %<cqtx> it doesnt work
>> anymore.
>>
>> Could someone explain why it doesnt log anymore after giving these value?
>>
>>
>> -
>> https://ats-zh.readthedocs.io/en/latest/admin/event-logging-formats.en.html#custom-logging-fields
>> - http://trafficserver.apache.org/logbuilder/
>>
>>
>> Kind regards,
>>
>> Sevan Gelici
>>
>
Re: trafficserver 8 - Logging Client request (domain)
Posted by Susan Hinrichs <sh...@apache.org>.
Do you have any error messages in diags.log, error.log, or traffic.out?
Our organization doesn't use that field, but perhaps there is a bug in its
support. I'll try to sent that up on a test box today.
On Sun, Nov 18, 2018 at 1:31 AM Sevan Gelici <se...@gmail.com> wrote:
> Hello,
>
> I dont know if its a issue or if i do it wrong but logging in
> trafficserver 8.0 doesnt work well for me. When i add to
> "/etc/trafficserver/logging.yaml" the value %<cqtx> its not giving me
> output anymore.
>
> In the default logging.yaml i modified this part
> logs:
> - filename: squid
> format: welf
> mode: ascii
> this works but when i modify as example %<ttms> to %<cqtx> it doesnt work
> anymore.
>
> Could someone explain why it doesnt log anymore after giving these value?
>
>
> -
> https://ats-zh.readthedocs.io/en/latest/admin/event-logging-formats.en.html#custom-logging-fields
> - http://trafficserver.apache.org/logbuilder/
>
>
> Kind regards,
>
> Sevan Gelici
>