wjohnson / pyapacheatlas

A python package to help work with the apache atlas REST APIs
https://wjohnson.github.io/pyapacheatlas-docs/latest/
MIT License
170 stars 97 forks source link

Audits tab doesnt populate when data is uploaded with pyapacheatlas bulk upload #224

Closed APOTUC1B closed 1 year ago

APOTUC1B commented 1 year ago

We are using the below code to upload to atlas from excel

        excel_config = ExcelConfiguration()
       excel_reader = ExcelReader(excel_config)
       entities = excel_reader.parse_bulk_entities(file_name)
       results = client.upload_entities(entities)

upoon upload the Audits tab is empty action is empty and there is no entity created action with time stamp

when we specify a clasisfication action is Classification Added and time stamp is populated.

please let us know if we need to add any code to have the audit populated always

test1 test2

wjohnson commented 1 year ago

Thank you for using PyApacheAtlas!

Can you point to a doc on Atlas that says the audit tab is populated on /entity operations?

From this doc (https://docs.cloudera.com/cdp-private-cloud-base/7.1.8/atlas-audit/atlas-audit.pdf) it looks like only import / export operations are audited but not individual or bulk asset creation.

Does that match what you are seeing?

APOTUC1B commented 1 year ago

but it creates audit entry some times and it doesnot some times using bulk upload . attached screen shot not sure why and how it does.

only difference is we were using admin user for entry created in the attachement and know another user same as admin

test3
APOTUC1B commented 1 year ago

this issue is coming because of ranger authorization .audits works for non ranger authorization

issue can be closed

wjohnson commented 1 year ago

Glad you got it figured out! Thank you for sharing what you found.