Thank you very much Ramesh for your answer.

BR.

Gwenael Le Barzic

On Thu, May 12, 2016 at 6:44 PM, Ramesh Mani <rm...@hortonworks.com> wrote:

> Lune,
>
> Yes article is about ranger log rotation , but it also has the details of
> where to look for the log4.xml.
>
> /<ranger-install-folder>/ranger-admin/ews/webapp/WEB-INF/log4j.xml
>
> In you have log4j.properties file in that folder edit that following
> properties, change “warn” to necessary debug level. Log is store in
> /var/log/ranger/admin folder ( this might be in you case what you have
> given in install.properties file while you install)
>
> log4j.rootLogger = warn,xa_log_appender
>
> If you have only log4.xml file then  change the value=“info” to the debug
> level want you wanted.
>
> <category name="org.apache.ranger" additivity="false">
> <priority value="info" />
> <appender-ref ref="xa_log_appender" />
> </category>
>
> Please try this.
>
> Thanks,
> Ramesh
>
>
> From: Lune Silver <lunescar.ran...@gmail.com>
> Reply-To: "user@ranger.incubator.apache.org" <
> user@ranger.incubator.apache.org>
> Date: Thursday, May 12, 2016 at 9:31 AM
> To: "user@ranger.incubator.apache.org" <user@ranger.incubator.apache.org>
> Subject: Re: How to increase the loglevel for admin and usersync
>
> Hm it helps for the log rotation indeed.
>
> I checked log4j doc for log4j.xml and found how to increase log. I think.
>
> I dont have any log4j.xml in the confdir of ranger admin. But I have one
> in the confdir of usersync.
>
> Do I have to create a log4j.xml in the ranger admin conf dir ?
>
> BR
>
> Lune
> Le 12 mai 2016 18:18, "Ramesh Mani" <rm...@hortonworks.com> a écrit :
>
>> Lune,
>>
>> This article will help you where to look for the log4j file.
>> https://community.hortonworks.com/articles/19601/how-to-limit-the-size-of-ranger-log-and-number-of.html
>> If you are using the apache master ranger, then log4j.properties file is
>> used instead of log4j.xml
>>
>> Thanks,
>> Ramesh
>>
>> From: Lune Silver <lunescar.ran...@gmail.com>
>> Reply-To: "user@ranger.incubator.apache.org" <
>> user@ranger.incubator.apache.org>
>> Date: Thursday, May 12, 2016 at 9:11 AM
>> To: "user@ranger.incubator.apache.org" <user@ranger.incubator.apache.org>
>> Subject: How to increase the loglevel for admin and usersync
>>
>> Hello !
>>
>> I send you this mail because I would like to increase the loglevel for
>> the component ranger admin in order to check a problem that I have.
>>
>> Do you know how to do that ?
>>
>> BR.
>>
>> Lune
>>
>

Reply via email to