> On Apr 22, 2022, at 1:32 PM, Tim Funk wrote:
>
> I don't think there is a technical reason why it couldn't be added. I think
> the hard part is getting the config wording/naming correct
>
> Alternatively, I think an out of the box workaround could also be Tomcat's
> RewriteValve where the
> On Apr 22, 2022, at 7:21 PM, Aleks wrote:
>
> Hi.
>
>> On Thu, 21 Apr 2022 17:07:27 -0400
>> Chris Cheshire wrote:
>>
>> Tomcat 9.
>>
>> I wanted to separate out access logs for external api calls to log different
>> info than the standard access log line. For example, the api key used
Hi.
On Thu, 21 Apr 2022 17:07:27 -0400
Chris Cheshire wrote:
> Tomcat 9.
>
> I wanted to separate out access logs for external api calls to log different
> info than the standard access log line. For example, the api key used which
> is set as a request header.
>
> Adding that to the pattern
I don't think there is a technical reason why it couldn't be added. I think
the hard part is getting the config wording/naming correct
Alternatively, I think an out of the box workaround could also be Tomcat's
RewriteValve where the condition matches on header and sets the
"environment variable"
Tomcat 9.
I wanted to separate out access logs for external api calls to log different
info than the standard access log line. For example, the api key used which is
set as a request header.
Adding that to the pattern was easy.
However the conditional logging was clunky. I found the