GitHub

Download 14
Last updated Sep 17, 2023

github-audit-logs

Get audit logs from GitHub.

github-audit-logs [duration=NUM{mon|w|d|h|m|s}] [from=yyyyMMddHHmmss] [to=yyyyMMddHHmmss] [event-type=EVENT-TYPE] [filter=FILTER]
duration=NUM{mon|w|d|h|m|s}
Scan only recent data. You should use s(second), m(minute), h(hour), d(day), mon(month) time unit. For example, 10s means data from 10 seconds earlier.
from=yyyyMMddHHmmss
Start time of range. yyyyMMddHHmmss format. If you omit time part, it will be padded by zero.
to=yyyyMMddHHmmss
End time of range. yyyyMMddHHmmss format. If you omit time part, it will be padded by zero.
event-type=EVENT-TYPE
all, git, or web. all by default.
filter=FILTER
e.g. actor:logpresso

Output Fields

FieldTypeNameDescription
_timeDateTime
profileStringConnect profileThe identifier of GitHub connect profile
actorStringActor accounte.g. xeraph
actor_ipIP addressActor IP address
operation_typeStringOperation typee.g. create, modify
actionStringActione.g. git.clone, git.fetch, git.push
business_idIntegerBusiness ID
businessStringBusinesse.g. logpresso
org_idIntegerOrganization ID
orgStringOrganization name
repoStringRepository namee.g. logpresso/community
branchStringBranch namee.g. refs/heads/main
teamStringTeam
user_idIntegerUser ID
userStringUser
user_agentStringUser agente.g. git/2.39.2
public_repoBoolPublic repository
transport_protocol_nameStringTransport protocole.g. ssh, http
pull_request_idIntegerPull request ID
pull_request_titleStringPull request title
pull_request_urlStringPull request URL
reasonsListReasonsElements with code, message properties