Sure!
You can get logs in two different ways,
The first (easier)
Going to the Network-wide tab and then to event log, you can download the sorted logs in a CSV file:
The second way and scalable solution is via API, you can follow this link if you have some coding experience:
https://documenter.getpostman.com/view/7928889/SVmsVg6K?version=latest#1982f77c-5ee6-49da-94f4-ee1a2...
I hope this information can be useful for you 🙂
Johnny Fernandez
Network & Security Engineer
CCNP | JNCIP-SEC | CMNA