Skip to content

Instantly share code, notes, and snippets.

@brntbeer
Created September 11, 2019 14:54
Show Gist options
  • Save brntbeer/993e0bcc0c17bbfc3772ecca8962c8a5 to your computer and use it in GitHub Desktop.
Save brntbeer/993e0bcc0c17bbfc3772ecca8962c8a5 to your computer and use it in GitHub Desktop.
Query the first 100 audit log events under the Organization in GraphQL
query {
organization(login:"ORGANIZATION") {
auditLog(first: 100, query: "created:>=2019-09-10T21:51:46"){
edges{
node{
... on AuditEntry {
action
actorLogin
createdAt
operationType
}
}
cursor
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment