Report for several accounts

Report for several accounts

I want create a script that shows logon data for all my service accounts, 100+ accounts.
This is to satisfy an audit requirement and assist in identifying where these accounts are used

How can I create this report? Do I need to access the DB directly?