Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B5767200D11 for ; Mon, 2 Oct 2017 16:30:43 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B3E701609EF; Mon, 2 Oct 2017 14:30:43 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 069FE1609DE for ; Mon, 2 Oct 2017 16:30:42 +0200 (CEST) Received: (qmail 91652 invoked by uid 500); 2 Oct 2017 14:30:41 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 91641 invoked by uid 99); 2 Oct 2017 14:30:41 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Oct 2017 14:30:41 +0000 Received: from Christophers-MacBook-Pro.local (pool-173-66-116-184.washdc.fios.verizon.net [173.66.116.184]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 8C2E91A0055 for ; Mon, 2 Oct 2017 14:30:40 +0000 (UTC) Subject: Re: Tomcat accesslogs / Geoserver To: users@tomcat.apache.org References: From: Christopher Schultz Message-ID: <72a09429-7fcf-c2c5-f0b0-e1ab5bac42ce@christopherschultz.net> Date: Mon, 2 Oct 2017 10:30:39 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit archived-at: Mon, 02 Oct 2017 14:30:43 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Jussila, On 10/2/17 9:18 AM, Jussila Ville wrote: > We are running Geoserver 2.11.1 with Java 1.8.0_131 on Tomcat > 8.0.44. > > I have tried before Geoserver's own mailing list without any help, > so now I try this one. Geoserver is a map engine to publish raster > and vector data in the Internet. More information can be found here > http://geoserver.org/ > > We are not able to record the username in the Tomcat Accesslog. > Geoserver has it's monitor plugin and Auditlogs, which we have > installed and logs are running nicely with recorded username. In > the Tomcat's accesslog they don't show up no matter what I try. We > prefer more using Tomcat's access logs, as we are not satisfied > Geoservers format. > > Here are parameters for the AccessLogValve in Tomcat > 8.0\conf\server.xml file > > directory="D:\Data\GeoServer\Tomcat_logs" > prefix="localhost_access_log" suffix=".txt" pattern="%a > %{X-Forwarded-FOR}i %u %t "%r" %s %b" /> > > I have tried to replace "%u" parameter with different kinds of > syntaxes example "%{username}s", "%{userName}s", "%{remoteUser}s", > "%{remoteuser}s", but none of them had solved the problem. Not even > replacing "s" with "i". With {Authorization}i, I was able to record > that Geoserver is using Basic authentication as it is set in UI. > > Can you help me? Is it possible that Geoserver is using its own built-in HTTP Basic authentication instead of having Tomcat handle authentication? If so, Tomcat knows nothing about the user, etc. and can't log anything about them in the access log. - -chris -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlnSTY4ACgkQHPApP6U8 pFjXDQ/+LWYJutG9VsGs6mBN1kVem2J70hiavDRAN//pkrloH6q/U5wlYEXBrmTf vacFeMtOmjOeu8rOmh94Pg1GTH+kMS1qEu9/IlAebToH6HZzJ7ZPo8Zguo7H7nPv xVPk/urPwfeGlH5WZX+PWj52OI5pHq8NTDhMrNi0CftQIaCDSH43Di+CpfTlBa/Z HBMFXTjCFdYpZ1oN1zvGOYkwiQsK8HUEOZ41Dfc/YR4/oiSotLNE4Td6dsDOMrj1 /VpLOlpTEn8UrdpbddvZKb8axd4kyVdMQ7wGRsHSxiV54p1h9LZPC9T+OwCdmHsF 5TR31xfrYbIwTabRCnnekGeA3cXDsoRTK5xcdIuWw5aJVgvbQJFWslb4Vnmx0CYJ lkwQS5SXWBLlWH3LsJxXxfQ60WJ/kv9UZ3maN4EMvL8CerwaWLXq1tUIo9lIMDFt xPjuz+ZLvgKi+CFQvK+Y8y3K/laVGBIwRawqYl+5NMCFtvwbmC3mW0kDs6srEQvi ZRloXpE9J/SHwcQIeR1kadkmIq5fQsBM1JeEugdH4ZyJdBO307lUZvPnld+/7xPp Q9Fuw7dBRsjXr2okN4t7yFP7Oxw9yXOoTFS+zutX6bc7BQ0tmThacbCz9YdDetTS t9ZHPrlDu8sRDqQR+CAr6Tu+oMDQBS1I7CTx8FIqboahsnruW3g= =+oGU -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org