From users-return-7336-archive-asf-public=cust-asf.ponee.io@trafficserver.apache.org Tue Nov 6 23:49:10 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 19633180658 for ; Tue, 6 Nov 2018 23:49:09 +0100 (CET) Received: (qmail 16953 invoked by uid 500); 6 Nov 2018 22:49:09 -0000 Mailing-List: contact users-help@trafficserver.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@trafficserver.apache.org Delivered-To: mailing list users@trafficserver.apache.org Received: (qmail 16943 invoked by uid 99); 6 Nov 2018 22:49:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Nov 2018 22:49:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 87C841A1A57 for ; Tue, 6 Nov 2018 22:49:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.888 X-Spam-Level: * X-Spam-Status: No, score=1.888 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=oath.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id rHnpDCQQ1bRf for ; Tue, 6 Nov 2018 22:49:06 +0000 (UTC) Received: from mail-io1-f48.google.com (mail-io1-f48.google.com [209.85.166.48]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 8E2DD5F32E for ; Tue, 6 Nov 2018 22:49:05 +0000 (UTC) Received: by mail-io1-f48.google.com with SMTP id a5-v6so10532559ioq.8 for ; Tue, 06 Nov 2018 14:49:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oath.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=6VV8Sxc20q9SlKsxT2sspWhVukzPzuPhAMIumvA1iTw=; b=A4nOe+VLZnWBfT1aR2UYJvlMFPybwrZucDRFOWaCLYCkiPW/rGXy+9mgJwRUqwUelk cLuqq9N0bnneZCyO4LgT/K01mve5C2YJb+3rIwNfjwshiC3Y9W33SvxMCzWYEntisxN2 vRf/1sOBNtzZJI1K1UdNOl3g9HX7y9Af0vy1knAJwWf9qjwWpdxYzC17YYHwPie+8wEO m/hqI8Onw8/4v5HhN7HMCmlvoWwZwggF4t70w6UT5WU1ffxk1zrd/vxkJPRe0+jY4HRt pCZNqxdatfksNPE7WLv+FLmVmOySjDJ+d75ml12jlYJZZch1qgL819sgxqJHN1zMXd16 aTtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=6VV8Sxc20q9SlKsxT2sspWhVukzPzuPhAMIumvA1iTw=; b=qUTfNXyIrolomGxRkKaskKiOUNm+zAd1kb1M/+TfJseayobG2/pH3M6i9Rce040jKj SPJ+A6Zip6KWH9T7luVqJ9H7Ot9Lt/hHpy1poN2u1UhN5DPwjhRrttXW7fkHeR19X/Ir 9svBKwUHJU45s0wRYfkysm3CMm9dgpMR3NyhzVqulXgkw6hSETTR8fanV3Pc+6GcgGHm qlzQRLXlVO2DaPmRKirPtF15fsc+kQsxDsGSf3KAVThJ6pxmKP92WLvbYOdVCe/VL0Wb lbZsoqP1RrSRfESPgt19P+U7oBzPGaE39jOPlAO2HElyjdAM0ODtxQfEtkdvui7XmEO5 srAQ== X-Gm-Message-State: AGRZ1gIG8bwGTHptbEn23JW0SgwVqfdsdg2kw7tApymU9Eq67Y+ZqhVc MJ5BAScrQbQlgGmqFSuHraYJgu+hJbdVv8C39aZA20tF X-Google-Smtp-Source: AJdET5ew//Db81VLuNsMholEtSXhPnoJ8pd0LNEGoJs5RaIx8mNG2E3KwSCMTllp7DNlAX1oOYJnFD8KzjodPf5YU4U= X-Received: by 2002:a6b:7809:: with SMTP id j9-v6mr15734729iom.299.1541544543906; Tue, 06 Nov 2018 14:49:03 -0800 (PST) MIME-Version: 1.0 References: <1541429864960-0.post@n7.nabble.com> In-Reply-To: <1541429864960-0.post@n7.nabble.com> From: Alan Carroll Date: Tue, 6 Nov 2018 16:48:52 -0600 Message-ID: Subject: Re: ERROR: log: unsupported key 'name' To: users@trafficserver.apache.org Content-Type: multipart/alternative; boundary="000000000000f21842057a06ced8" --000000000000f21842057a06ced8 Content-Type: text/plain; charset="UTF-8" In your first example, why do you have a '-' in front of 'name'? In the second one you have to define a "log object" which you can then refer to by name. On Mon, Nov 5, 2018 at 8:57 AM Jin wrote: > I noticed an error reported in diags.log in ats 8.0.0 > > [Nov 5 09:52:08.869] {0x2b3b4a96fd00} NOTE: loading logging.yaml > [Nov 5 09:52:08.871] {0x2b3b4a96fd00} ERROR: log: unsupported key 'name' > [Nov 5 09:52:08.871] {0x2b3b4a96fd00} NOTE: failed to reload logging.yaml > [Nov 5 09:52:08.873] {0x2b3b4a96fd00} NOTE: logging initialized[3], > logging_mode = 3 > > logging.yaml look like this: > > logs: > - filename: squid > format: squid > mode: binary > - name: common > format: '% - % [%] "%" % %' > > Also tried: > logs: > - filename: squid > format: squid > mode: binary > - filename: common > format: '% - % [%] "%" % %' > And got this: > [Nov 5 09:56:53.019] {0x2b3b5d860700} NOTE: loading logging.yaml > [Nov 5 09:56:53.020] {0x2b3b5d860700} ERROR: Format % - % > [%] "%" % % is not a known format; cannot create > LogObject > [Nov 5 09:56:53.020] {0x2b3b5d860700} NOTE: logging.yaml done reloading! > > > By looking at all changes for 8.0.1-rc, I don't seem to find a related fix. > Is this a mis-configuration or a different issue? > > Thanks. > > Jin. > > > > > > -- > Sent from: http://apache-traffic-server.24303.n7.nabble.com/ > -- *Beware the fisherman who's casting out his line in to a dried up riverbed.* *Oh don't try to tell him 'cause he won't believe. Throw some bread to the ducks instead.* *It's easier that way. *- Genesis : Duke : VI 25-28 --000000000000f21842057a06ced8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
In your first example, why do you have a '-' in fr= ont of 'name'?

In the second one you have to def= ine a "log object" which you can then refer to by name.

On Mon, Nov 5, 2018 at 8:= 57 AM Jin <jin@tower-research.= com> wrote:
I noticed an err= or reported in diags.log in ats 8.0.0

[Nov=C2=A0 5 09:52:08.869] {0x2b3b4a96fd00} NOTE: loading logging.yaml
[Nov=C2=A0 5 09:52:08.871] {0x2b3b4a96fd00} ERROR: log: unsupported key = 9;name'
[Nov=C2=A0 5 09:52:08.871] {0x2b3b4a96fd00} NOTE: failed to reload logging.= yaml
[Nov=C2=A0 5 09:52:08.873] {0x2b3b4a96fd00} NOTE: logging initialized[3], logging_mode =3D 3

logging.yaml look like this:

logs:
=C2=A0 =C2=A0 - filename: squid
=C2=A0 =C2=A0 =C2=A0 format: squid
=C2=A0 =C2=A0 =C2=A0 mode: binary
=C2=A0 =C2=A0 - name: common
=C2=A0 =C2=A0 =C2=A0 format: '%<chi> - %<caun> [%<cqtn&g= t;] "%<cqtx>" %<pssc> %<pscl>'

Also tried:
logs:
=C2=A0 =C2=A0 - filename: squid
=C2=A0 =C2=A0 =C2=A0 format: squid
=C2=A0 =C2=A0 =C2=A0 mode: binary
=C2=A0 =C2=A0 - filename: common
=C2=A0 =C2=A0 =C2=A0 format: '%<chi> - %<caun> [%<cqtn&g= t;] "%<cqtx>" %<pssc> %<pscl>'
And got this:
[Nov=C2=A0 5 09:56:53.019] {0x2b3b5d860700} NOTE: loading logging.yaml
[Nov=C2=A0 5 09:56:53.020] {0x2b3b5d860700} ERROR: Format %<chi> - %&= lt;caun>
[%<cqtn>] "%<cqtx>" %<pssc> %<pscl> is no= t a known format; cannot create
LogObject
[Nov=C2=A0 5 09:56:53.020] {0x2b3b5d860700} NOTE: logging.yaml done reloadi= ng!


By looking at all changes for 8.0.1-rc, I don't seem to find a related = fix.
Is this a mis-configuration or a different issue?

Thanks.

Jin.





--
Sent from: http://apache-traffic-server.24303.n7.na= bble.com/


--
Beware the fisherman who's casting out his line in to a dried up= riverbed.
Oh don't try to tell him 'cause he won't = believe. Throw some bread to the ducks instead.
It's e= asier that way. - Genesis : Duke : VI 25-28
--000000000000f21842057a06ced8--