[ 
https://issues.apache.org/jira/browse/RANGER-5897?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Harshal Chavan updated RANGER-5897:
-----------------------------------
    Description: 
We are not getting ranger access logs in ranger UI.

Steps

1.Login to hdfs docker

2.Kinit with finuser

3.Run command and user should be denied

      hdfs dfs -mkdir /test_dir1

4.Check access audit logs of ranger no audit log seen

 

logs

 
{code:java}
2026-12-04 09:32:37,439 INFO org.apache.hadoop.ipc.Server: IPC Server handler 9 
on default port 9000, call Call#2 Retry#0 
org.apache.hadoop.hdfs.protocol.ClientProtocol.mkdirs from 172.18.0.14:52502: 
org.apache.hadoop.security.AccessControlException: Permission denied: 
user=finuser1, access=WRITE, inode="/test_dir1":hdfs:supergroup:drwxr-xr-x
2026-12-04 09:32:39,007 ERROR 
org.apache.ranger.audit.destination.RangerAuditServerDestination: Failed to 
send audit batch. HTTP status: 403, Response: {"message":"User is not 
authorized to send audit events","status":"error","timestamp":1796376759004}
2026-12-04 09:32:39,007 ERROR 
org.apache.ranger.audit.destination.RangerAuditServerDestination: Failed to 
send batch of 1 events
2026-12-04 09:32:39,008 WARN org.apache.ranger.audit.provider.BaseAuditHandler: 
failed to log audit event: 
{"repoType":1,"repo":"dev_hdfs","reqUser":"finuser1","evtTime":"2026-12-04 
09:32:37.407","access":"mkdirs","resource":"/test_dir1/demo1","resType":"path","action":"write","result":0,"agent":"hdfs","policy":-1,"reason":"/test_dir1","enforcer":"hadoop-acl","cliIP":"172.18.0.14","reqData":"mkdirs/CLI","agentHost":"ranger-hadoop.rangernw","logType":"RangerAudit","id":"839ed348-6e26-4762-be90-d5fa795691b2-0","seq_num":1,"event_count":1,"event_dur_ms":0,"additional_info":"{\"remote-ip-address\":\"172.18.0.14\",\"accessTypes\":\"[write]\"}"}
 , errorMessage=
2026-12-04 09:32:39,008 WARN org.apache.ranger.audit.provider.BaseAuditHandler: 
Log failure count: 6 in past 46:18.389 minutes; 7 during process lifetime
{code}
 

 

  was:
We are not getting ranger access logs in ranger UI.

Steps

1.Login to hdfs docker

2.Kinit with finuser

3.Run command and user should be denied

      hdfs dfs -mkdir /test_dir1

4.Check access audit logs of ranger no audit log seen

 


> Audit to solr is not working in docker setup
> --------------------------------------------
>
>                 Key: RANGER-5897
>                 URL: https://issues.apache.org/jira/browse/RANGER-5897
>             Project: Ranger
>          Issue Type: Bug
>          Components: Ranger
>            Reporter: Harshal Chavan
>            Assignee: Dattatray Satam
>            Priority: Major
>
> We are not getting ranger access logs in ranger UI.
> Steps
> 1.Login to hdfs docker
> 2.Kinit with finuser
> 3.Run command and user should be denied
>       hdfs dfs -mkdir /test_dir1
> 4.Check access audit logs of ranger no audit log seen
>  
> logs
>  
> {code:java}
> 2026-12-04 09:32:37,439 INFO org.apache.hadoop.ipc.Server: IPC Server handler 
> 9 on default port 9000, call Call#2 Retry#0 
> org.apache.hadoop.hdfs.protocol.ClientProtocol.mkdirs from 172.18.0.14:52502: 
> org.apache.hadoop.security.AccessControlException: Permission denied: 
> user=finuser1, access=WRITE, inode="/test_dir1":hdfs:supergroup:drwxr-xr-x
> 2026-12-04 09:32:39,007 ERROR 
> org.apache.ranger.audit.destination.RangerAuditServerDestination: Failed to 
> send audit batch. HTTP status: 403, Response: {"message":"User is not 
> authorized to send audit events","status":"error","timestamp":1796376759004}
> 2026-12-04 09:32:39,007 ERROR 
> org.apache.ranger.audit.destination.RangerAuditServerDestination: Failed to 
> send batch of 1 events
> 2026-12-04 09:32:39,008 WARN 
> org.apache.ranger.audit.provider.BaseAuditHandler: failed to log audit event: 
> {"repoType":1,"repo":"dev_hdfs","reqUser":"finuser1","evtTime":"2026-12-04 
> 09:32:37.407","access":"mkdirs","resource":"/test_dir1/demo1","resType":"path","action":"write","result":0,"agent":"hdfs","policy":-1,"reason":"/test_dir1","enforcer":"hadoop-acl","cliIP":"172.18.0.14","reqData":"mkdirs/CLI","agentHost":"ranger-hadoop.rangernw","logType":"RangerAudit","id":"839ed348-6e26-4762-be90-d5fa795691b2-0","seq_num":1,"event_count":1,"event_dur_ms":0,"additional_info":"{\"remote-ip-address\":\"172.18.0.14\",\"accessTypes\":\"[write]\"}"}
>  , errorMessage=
> 2026-12-04 09:32:39,008 WARN 
> org.apache.ranger.audit.provider.BaseAuditHandler: Log failure count: 6 in 
> past 46:18.389 minutes; 7 during process lifetime
> {code}
>  
>  



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to