Simple AuthorizerΒΆ

The SimpleAuthorizer (com.logdigger.connector.servlet.filter.SimpleAuthorizer) can filter requests by session attribute, server name, remote IP address or host name (as Java regexp expressions).

Options for the SimpleAuthorizer are passed via servlet filter parameters. Example:

<filter>
    <filter-name>LogDiggerServletFilter</filter-name>
    <filter-class>com.logdigger.connector.servlet.filter.RequestLogCollectorFilter.</filter-class>
    <init-param>
        <param-name>authorizer</param-name>
        <param-value>com.logdigger.connector.impl.SimpleAuthorizer</param-value>
    </init-param>
    <init-param>
        <param-name>simpleAuthorizer.hasSessionAttribute</param-name>
        <param-value>USER_DATA</param-value>
    </init-param>
    <init-param>
        <param-name>simpleAuthorizer.serverName</param-name>
        <param-value>localhost</param-value>
    </init-param>
    <init-param>
        <param-name>simpleAuthorizer.remoteHost</param-name>
        <param-value>hostname</param-value>
    </init-param>
    <init-param>
        <param-name>simpleAuthorizer.remoteIP</param-name>
        <param-value>192.168.1.[1-9]*</param-value>
    </init-param>
</filter>

<filter-mapping>
    <filter-name>LogDiggerServletFilter</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>

All parameters are optional. Use those that best fit your needs.

Previous topic

LogDigger Appender for Log4j

Next topic

Integrating LogDigger into the Spring Framework

Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 2.5