Software Development Kit (SDK) and API Discussions

audit-log-get-iter SDk 9.4

AllenTR

Hi I am using python and looking for a way to query the audit log between two time stamps.

I have tried to use these even thought they are not listed, I  thought by chance or magic they would work

 

NaElement("time-range")

NaElement("audit-timestamp-range")

child_add_string("end-time", end_time)
child_add_string("start-time", start_time)

 

The issue I am getting too many hits on my search string and it's taking a long time to run the query.

Is there another way pull logs between two timestamps 

 

1 ACCEPTED SOLUTION

aladd

I'm not sure the SDK has that functionality, however you may be able to use is logging to an external server from which you can query based on the timecode at the start of the message.

 

https://docs.netapp.com/ontap-9/index.jsp?topic=%2Fcom.netapp.doc.dot-cm-sag%2FGUID-9F8EB0DF-12F5-4DA9-B14B-34487DE3717D.html

 

 

View solution in original post

2 REPLIES 2

aladd

I'm not sure the SDK has that functionality, however you may be able to use is logging to an external server from which you can query based on the timecode at the start of the message.

 

https://docs.netapp.com/ontap-9/index.jsp?topic=%2Fcom.netapp.doc.dot-cm-sag%2FGUID-9F8EB0DF-12F5-4DA9-B14B-34487DE3717D.html

 

 

View solution in original post

AllenTR

Hi, thank you for the confirmation. 

I was hopeful that there may have been an undocumented feature in the SDK.

I have been working on getting log forwarding in place. 

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public