Re: Conditional access logs

2022-04-25 Thread Chris Cheshire
> 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

Re: Conditional access logs

2022-04-25 Thread Chris Cheshire
> 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

Re: Conditional access logs

2022-04-22 Thread Aleks
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

Re: Conditional access logs

2022-04-22 Thread Tim Funk
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"

Conditional access logs

2022-04-21 Thread Chris Cheshire
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