Hi, I am trying to upgrade a spring boot mvc 3.5.8 application to 4.0.0 (jdk 25, tomcat 11) I had the configuration of a log endpoint actuator in application.properties :

management.endpoints.web.base-path=/admin/logs
management.endpoints.enabled-by-default=false
management.endpoint.logfile.enabled=true

and when I access to /admin/logs I have the following message : no static resource admin/logs/logfile.

I have seen that management.endpoint.logfile.enabled is removed and try to replace it with management.endpoint.logfile.access=unrestricted but without success.

Thanks for help.

Pierre.

Comment From: snicoll

@pnoe thanks for the report but I am a bit confused. You are setting the base path to /admin/logs (did you mean /admin?).

and when I access to /admin/logs I have the following message :

I do not. Did you have a / at the end perhaps? Or did you mean /admin/logs/logfile?

to replace it with management.endpoint.logfile.access=unrestricted but without success.

Restricting access and exposing the endpoint are two different things. Try:

management.endpoints.web.exposure.include=health,logfile
management.endpoints.web.base-path=/admin

All in all, I am not sure what you're trying to report. This application on 3.5.8 fails as well and those properties are also deprecated/removed so there is nothing new about that in 4.0. If you can make this app works with 3.5.8 and fail by only migrating to 4.0, please share a sample that we can actually run ourselves.

Comment From: pnoe

Thanks a lot, you helped me to clean my mess, with your two lines and a logging.file.name it works. Sorry for the inconvenience and thanks again,

Pierre.