Skip to content
Advertisement

Spring actuator ‘/auditevents’ endpoint returns 404

I am getting a 404 error when invoking /actuator/auditevents endpoint. Upon closer look, I see that available endpoint listing doesn’t include /auditevents endpoint.

pom.xml dependencies

JavaScript

application.properties

management.endpoints.web.exposure.include=*

http://localhost:8080/actuator output

JavaScript

Spring-boot version: 2.2.6.RELEASE

Not sure whether I am missing any required configuration.

Advertisement

Answer

Auditing can be enabled by providing a bean of type AuditEventRepository in your application’s configuration.

Try to add following bean into your app :

JavaScript
Advertisement