Make that one rest api does not need any logging
<p>There is a Spring Security configuration in my application, so all the rest interfaces need to pass some filters and authentication. </p>

<p>This is the security configuration I have:</p>

<pre><code>@Configuration
@EnableWebSecurity
public class MyProgramSecurityConfiguration extends WebSecurityConfigurerAdapter {

    ....
    @Override
    protected void configure(final HttpSecurity http) throws Exception {

        http.addFilterBefore(restBasedAuthenticationFilter, UsernamePasswordAuthenticationFilter.class)
        .csrf().disable()
        .authorizeRequests().anyRequest().authenticated()
        .and()
        .exceptionHandling().authenticationEntryPoint(authenticationEntryPoint())
        .and()
        .logout().permitAll(false)
        .addLogoutHandler(logoutHandler).logoutRequestMatcher(new AntPathRequestMatcher(LOGIN_PATH, HttpMethod.DELETE.toString()))
        .logoutSuccessHandler(getLogoutSuccessHandler())
        .and()
        .sessionManagement().maximumSessions(5);

        http.addFilterAfter(termsAndConditionsFilter, TermAndConditionFilter.class);
        http.addFilterAfter(certificateValidationFilter, TermsAndConditionsFilter.class);
        ... // some other filters
    }
    ....
}
</code></pre>

<p>But, as I described in the title of the question, I would like to have one endpoint <code>/internal/application/info</code> that can be called by anyone without any need of authentication, logging or whatever. I think that you can do it with <code>regexMatcher</code>, am I right?</p>