# /actuator/loggers Java Microservice

**URL:** <https://community.cumulocity.com/t/actuator-loggers-java-microservice/12809>\
**Category:** Forum\
**Tags:** java-spring-boot, cumulocity-edge\
**Created:** [October 9, 2025, 1:35pm UTC](https://community.cumulocity.com/t/actuator-loggers-java-microservice/12809 "2025-10-09T13:35:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![waldemar.bus](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/waldemar.bus/32/32646_2.png) [@waldemar.bus](https://community.cumulocity.com/u/waldemar.bus)\
**Post date:** [October 9, 2025, 1:35pm UTC](https://community.cumulocity.com/t/actuator-loggers-java-microservice/12809/1 "2025-10-09T13:35:20Z")

</div>

I want to have access to the /actuator/loggers endpoint. I want to be able to change the logging level dynamically for the service deployed on the edge instance.

I tried configuring an endpoint in application.properties

management.endpoints.web.exposure.include=loggers  
management.endpoint.loggers.enabled=true  
management.endpoints.web.base-path=/actuator

This works locally but when deployed any endpoint on the service is throwing

{  
“error”: “Microservice/Bad gateway”,  
“message”: “Microservice not available Connection refused : Connection for request 21e744c3b46d66295ac38084f2390e73 already closed”,  
“info”: “[https://www.cumulocity.com/guides/reference-guide”](https://www.cumulocity.com/guides/reference-guide%E2%80%9D)  
}

Is there any way around it or what would be the correct way to set this up so the platform is happy ?

Thanks

Edge 1018.0.457  
Java SDK 1018.603.0  
Springboot 2.7.6

---

<div class="post-metadata">

**Author:** ![Stefan\_Witschel](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/stefan_witschel/32/31955_2.png) [@Stefan\_Witschel](https://community.cumulocity.com/u/Stefan_Witschel)\
**Post date:** [October 9, 2025, 1:44pm UTC](https://community.cumulocity.com/t/actuator-loggers-java-microservice/12809/2 "2025-10-09T13:44:32Z")

</div>

Hi @waldemar.bus and welcome to the community! 👋

Try to add the full service-name / context path to the base-path.

Example:  
Assuming your microservice name is `hello-world` using the URL `https://<yourTenant>/service/hello-world`.

Instead of adding just `/actuator` try `/service/hello-world/actuator`.

---

<div class="post-metadata">

**Author:** ![waldemar.bus](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/waldemar.bus/32/32646_2.png) [@waldemar.bus](https://community.cumulocity.com/u/waldemar.bus)\
**Post date:** [October 9, 2025, 1:58pm UTC](https://community.cumulocity.com/t/actuator-loggers-java-microservice/12809/3 "2025-10-09T13:58:27Z")

</div>

Thank you but I tried that. With no extra configuration I just get 404 on  
GET [https://platform-url/service/service-name/actuator](https://platform-url/service/service-name/actuator)

With application.properties config of the actuator none of the service endpoints work.  
Since health endpoint is configured in cumulocity.json I am guessing that you restrict direct access to the actuator ?

---

<div class="post-metadata">

**Author:** ![waldemar.bus](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/waldemar.bus/32/32646_2.png) [@waldemar.bus](https://community.cumulocity.com/u/waldemar.bus)\
**Post date:** [October 9, 2025, 2:07pm UTC](https://community.cumulocity.com/t/actuator-loggers-java-microservice/12809/4 "2025-10-09T14:07:56Z")

</div>

NVM, thank you for replying but looks like you expose all the actuator endpoint in root.

This:

POST {{edge-url}}/service/doxxxme-tracker/loggers/com.xxxsoftware  
Accept: application/json  
Authorization: Basic {{basic-auth-edge}}  
Content-Type: application/json

{ “configuredLevel”: “DEBUG” }

Seems to work right out of the box. Silly me 😅 But maybe someone else will find this useful.
