Software Development Kit (SDK) and API Discussions

audit-log-get-iter SDk 9.4

AllenTR
1,959 Views

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
1,837 Views

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
1,838 Views

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

 

 

AllenTR
1,780 Views

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. 

Public