shfshihuafeng commented on code in PR #3056: URL: https://github.com/apache/drill/pull/3056#discussion_r3763705121
########## distribution/src/main/resources/ranger/ranger-drill-audit.xml: ########## @@ -0,0 +1,49 @@ +<?xml version="1.0"?> +<?xml-stylesheet type="text/xsl" href="configuration.xsl"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<configuration> + <!-- Audit log destination. Set to Solr or HDFS for persistent audit storage. Review Comment: @cgivre we have set the default logging to the Drillbit log, as you suggested. We have also updated the documentation to guide users on how to configure Ranger logging. The relevant section is RangerAuthorization.md#3.5 Audit Log Configuration. I have successfully tested the audit logging feature for Drill, and it works as expected. as following: `] INFO x.o.a.r.a.p.Log4jAuditProvider - {"repoType":207,"repo":"drill","reqUser":"root","evtTime":"2026-08-12 12:40:39.349","access":"SELECT","resource":"mysql/shf/orders/id","resType":"column","action":"SELECT","result":1,"agent":"drill","policy":4,"reason":null,"enforcer":"ranger-acl","sess":null,"cliType":null,"cliIP":null,"reqData":null,"agentHost":"localhost.localdomain","logType":"RangerAudit","id":"263169cc-6b63-4799-8fd1-dd011e22ad65-1","seq_num":3,"event_count":1,"event_dur_ms":0,"tags":[],"datasets":null,"projects":null,"additional_info":null,"cluster_name":"","zone_name":null,"policy_version":7}` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
