You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by Erik Anderson <ea...@pobox.com> on 2019/01/02 15:13:27 UTC

How to enable debugging on "Web Server"

I am trying to enable LDAP for NiFi

For the

logs/nifi-user.log 

How do you enable more logback.xml debugging for "NiFi Web Server" messages like

2018-12-21 22:11:52,564 INFO [NiFi Web Server-21] o.a.n.w.a.c.IllegalStateExceptionMapper java.lang.IllegalStateException: Kerberos ticket login not supported by this NiFi.. Returning Conflict response.
2018-12-21 22:11:52,784 INFO [NiFi Web Server-83] o.a.n.w.a.c.IllegalStateExceptionMapper java.lang.IllegalStateException: OpenId Connect is not configured.. Returning Conflict response.
2018-12-21 22:11:52,911 INFO [NiFi Web Server-82] o.a.n.w.a.c.AccessDeniedExceptionMapper identity[anonymous], groups[none] does not have permission to access the requested resource. No applicable policies could be found. Returning Unauthorized response.
2018-12-21 22:12:16,540 INFO [NiFi Web Server-18] o.a.n.w.a.c.IllegalArgumentExceptionMapper java.lang.IllegalArgumentException: The supplied username and password are not valid.. Returning Bad Request response.

Erik Anderson
Bloomberg

Re: How to enable debugging on "Web Server"

Posted by Andy LoPresto <al...@apache.org>.
Hi Erik,

There is a section in $NIFI_HOME/conf/logback.xml where the USER_FILE logging is configured (starting on line 123 by default for the current version). Change the “INFO” level to “DEBUG” for additional details. You can also provide more explicit log configuration by specifying specific classes or packages. 

<!--
        Logger for capturing user events. We do not want to propagate these
        log events to the root logger. These messages are only sent to the
        user-log appender.
    -->
    <logger name="org.apache.nifi.web.security" level="INFO" additivity="false">
        <appender-ref ref="USER_FILE"/>
    </logger>
    <logger name="org.apache.nifi.web.api.config" level="INFO" additivity="false">
        <appender-ref ref="USER_FILE"/>
    </logger>
    <logger name="org.apache.nifi.authorization" level="INFO" additivity="false">
        <appender-ref ref="USER_FILE"/>
    </logger>
    <logger name="org.apache.nifi.cluster.authorization" level="INFO" additivity="false">
        <appender-ref ref="USER_FILE"/>
    </logger>
    <logger name="org.apache.nifi.web.filter.RequestLogger" level="INFO" additivity="false">
        <appender-ref ref="USER_FILE"/>
    </logger>

Andy LoPresto
alopresto@apache.org
alopresto.apache@gmail.com
PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69

> On Jan 2, 2019, at 7:13 AM, Erik Anderson <ea...@pobox.com> wrote:
> 
> I am trying to enable LDAP for NiFi
> 
> For the
> 
> logs/nifi-user.log 
> 
> How do you enable more logback.xml debugging for "NiFi Web Server" messages like
> 
> 2018-12-21 22:11:52,564 INFO [NiFi Web Server-21] o.a.n.w.a.c.IllegalStateExceptionMapper java.lang.IllegalStateException: Kerberos ticket login not supported by this NiFi.. Returning Conflict response.
> 2018-12-21 22:11:52,784 INFO [NiFi Web Server-83] o.a.n.w.a.c.IllegalStateExceptionMapper java.lang.IllegalStateException: OpenId Connect is not configured.. Returning Conflict response.
> 2018-12-21 22:11:52,911 INFO [NiFi Web Server-82] o.a.n.w.a.c.AccessDeniedExceptionMapper identity[anonymous], groups[none] does not have permission to access the requested resource. No applicable policies could be found. Returning Unauthorized response.
> 2018-12-21 22:12:16,540 INFO [NiFi Web Server-18] o.a.n.w.a.c.IllegalArgumentExceptionMapper java.lang.IllegalArgumentException: The supplied username and password are not valid.. Returning Bad Request response.
> 
> Erik Anderson
> Bloomberg