-
Notifications
You must be signed in to change notification settings - Fork 40.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow specifying a different management access log prefix #43434
base: main
Are you sure you want to change the base?
Allow specifying a different management access log prefix #43434
Conversation
37d1c1c
to
3e42a5e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @mpalourdio,
thanks for the PR. I've added some comments for your consideration.
...va/org/springframework/boot/actuate/autoconfigure/web/server/ManagementServerProperties.java
Outdated
Show resolved
Hide resolved
...ework/boot/actuate/autoconfigure/web/servlet/ServletManagementChildContextConfiguration.java
Show resolved
Hide resolved
3e42a5e
to
14537d7
Compare
@mhalbritter I have forced-pushed with your suggestion. I have also taken care of Undertow and Jetty I have built the source locally, and I have tested the property. |
935fa09
to
c470bbd
Compare
Just wondering if it would not be better to create an inner It just feels a bit weird to configure like this, no ?
|
Yes, we should add an There's already a So to get a management access log called |
...ework/boot/actuate/autoconfigure/web/servlet/ServletManagementChildContextConfiguration.java
Show resolved
Hide resolved
...va/org/springframework/boot/actuate/autoconfigure/web/server/ManagementServerProperties.java
Outdated
Show resolved
Hide resolved
...ework/boot/actuate/autoconfigure/web/servlet/ServletManagementChildContextConfiguration.java
Outdated
Show resolved
Hide resolved
...ework/boot/actuate/autoconfigure/web/servlet/ServletManagementChildContextConfiguration.java
Outdated
Show resolved
Hide resolved
right, will give this a shot
That behavior seems counter-intuitive to me. If you have already tweaked IMO with this new property, it's good as is without any user intervention and does the only job it's made for. |
Flagging this to see what the team thinks about this:
|
c470bbd
to
cc20f8a
Compare
cc20f8a
to
86f1af1
Compare
...ework/boot/actuate/autoconfigure/web/servlet/ServletManagementChildContextConfiguration.java
Outdated
Show resolved
Hide resolved
86f1af1
to
b7a737e
Compare
Hi, i see this targets |
Hi - this is labeled as an enhancement, and enhancements are put in minor/major versions only, not in the maintenance one. That means this feature will land in Spring Boot 3.5.0 the earliest. 3.3 and 3.4 will not get that feature. |
Hi,
This a WIP in order to try to tackle GH-14948, GH-24170 for example.
It's today very common to handle logs in stdout, regarding k8s and such 'cloud' platforms., ie
It's also reassuring (for SEC) to make actuator available on another port. Wrong properties can easily leak and bad things may happen.
This is just a draft to see if this could be an answer in order to have the ability to disable the access logs prefix while using actuator on an other port. Most companies that put logs in stdout can easily filter logs with tools like Splunk, so putting all those logs in the same output is not a problem at all.
The idea is to add a property to disable access logs prefix for actuator. Default is
true
to keep BCmanagement.server.accesslog-prefix=false
Is this the good direction?
Thanks