ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bhanu (Jira)" <j...@apache.org>
Subject [jira] [Updated] (RANGER-2926) Issue in setting up Audit Log with ElasticSearch
Date Mon, 27 Jul 2020 13:27:00 GMT

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

Bhanu updated RANGER-2926:
--------------------------
    Summary: Issue in setting up Audit Log with ElasticSearch   (was: Issue is setting up
Audit Log with ElasticSearch )

> Issue in setting up Audit Log with ElasticSearch 
> -------------------------------------------------
>
>                 Key: RANGER-2926
>                 URL: https://issues.apache.org/jira/browse/RANGER-2926
>             Project: Ranger
>          Issue Type: Bug
>          Components: Ranger
>    Affects Versions: 2.0.0
>            Reporter: Bhanu
>            Priority: Major
>
> Hi,
> We are using Ranger 2.1.0.
> Trying to setup AuditLog with ElasticSearch Server having version 7.0.1
> We have configured the Ranger with all details but there is an error that is keep on
coming as below. Please let me know where we are going wrong here. We have tried recreating
the index multiple times with all below parameters
> 2020-07-27T13:08:35.233Z ERROR org.apache.ranger.audit.queue.AuditBatchQueue0 org.apache.ranger.audit.provider.BaseAuditHandler
Error sending message to ElasticSearch
> org.elasticsearch.action.ActionRequestValidationException: Validation Failed: 1: type
is missing;2: type is missing;
>  at org.elasticsearch.action.bulk.BulkRequest.validate(BulkRequest.java:393)
>  at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1480)
>  at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1454)
>  at org.elasticsearch.client.RestHighLevelClient.bulk(RestHighLevelClient.java:497)
>  at org.apache.ranger.audit.destination.ElasticSearchAuditDestination.log(ElasticSearchAuditDestination.java:125)
>  at org.apache.ranger.audit.queue.AuditBatchQueue.runLogAudit(AuditBatchQueue.java:309)
>  at org.apache.ranger.audit.queue.AuditBatchQueue.run(AuditBatchQueue.java:215)
>  at java.base/java.lang.Thread.run(Thread.java:834)
> 2020-07-27T13:08:35.233Z WARN org.apache.ranger.audit.queue.AuditBatchQueue0 org.apache.ranger.audit.provider.BaseAuditHandler
failed to log audit event: \{"repoType":17,"repo":"prestostg-tkg","reqUser":"bdasari","evtTime":"2020-07-27
13:08:35.102","resource":"hive_stg/ref_maritz","resType":"schema","action":"select","result":1,"agent":"presto","policy":21,"enforcer":"ranger-acl","agentHost":"coordinator2-694c5dbbb6-msh58","logType":"RangerAudit","id":"f733c835-c9ee-4507-b917-9eb822303d2b-792211","seq_num":1584423,"event_count":1,"event_dur_ms":0,"tags":[],"cluster_name":"","policy_version":148},
errorMessage=
> 2020-07-27T13:08:35.233Z WARN org.apache.ranger.audit.queue.AuditBatchQueue0 org.apache.ranger.audit.provider.BaseAuditHandler
Log failure count: 4 in past 01:30.003 minutes; 792212 during process lifetime



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message