Support Questions

Find answers, ask questions, and share your expertise

How to change RANGER logs path?

avatar
Explorer

Hi,

We are unable to modify the existing RANGER admin logging path. The option in Ambari is Greyed out/Disabled (refer attached Image).

We tried creating a separate config group for RANGER but still the option is Disabled.

We are able to change the logs path of "xa_portal.log" from "ranger-admin log4j" but there is no option to change log path of "access_log.2017-05-09.05.log" from log4j.

Kindly help us on this case.

Thanks in Advance

Raagul.S

ranger-logs.jpg
2 REPLIES 2

avatar

avatar
Explorer

HI,

Thanks for your response. But removing and recreating the symlinks will not work for us because its not using the current log path(symlink) under 'ews' folder instead it using the path which is showing in Ambari (refer attached image).

EX:

PATH >>>>> root@hadoop:/usr/hdp/current/ranger-admin/ews : logs -> /var/log/ranger/admin <<<<<< symlink

But the above path is not being used by Ranger.

Logging is happening in the different path specified in Ambari, which is Greyed Out (Disabled).

Thanks,

Raagul.S