How to check login (including failed attempts) and PAT/SSH key activity logs in GitHub Enterprise Cloud? #162308
Replies: 3 comments
-
To check user login logs (including failed attempts) and Personal Access Token (PAT)/SSH key activity in GitHub Enterprise Cloud, you can primarily use the Audit Log and, for more detailed queries, the REST API. Below is a precise guide to address your needs: 1. Checking User Login Logs (Including Failed Attempts)
2. Checking PAT and SSH Key Creation/Deletion
3. Using the REST API for Detailed Queries
4. Additional Methods and Considerations
5. Documentation Links
Notes
|
Beta Was this translation helpful? Give feedback.
-
Specific Events to Look For: Login Events: user.login user.failed_login (for failed attempts) PAT Events: personal_access_token.created personal_access_token.deleted SSH Key Events: public_key.added public_key.removed Access Methods:
Go to: https://github.com/enterprises/YOUR_ENTERPRISE_NAME/settings/audit-log
Endpoint: auditLog Lets you filter by action, actor, date, etc
Endpoint: GET /orgs/{org}/audit-log Filter by action like user.login, public_key.added, etc |
Beta Was this translation helpful? Give feedback.
-
Welcome to the GitHub Community, @tnals724, we're happy you're here! You are more likely to get a useful response if you are posting your question(s) in the applicable category. Check out this Guide on how to post in the right category. It'll ensure your questions and discussions reach the right people faster! This particular discussion belongs in the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
Hello,
We are using GitHub Enterprise Cloud, and I have admin privileges.
I want to check the following logs for users in our enterprise organization:
User login logs, especially failed login attempts
Creation or deletion of Personal Access Tokens (PAT) and SSH keys
Is it possible to view these via Audit Log, or is there any other method/API I should use?
I'd appreciate any guidance or documentation links.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions