# Reviewing the audit log for your organization

The audit log allows organization admins to quickly review the actions performed by members of your organization. It includes details such as who performed the action, what the action was, and when it was performed.

## Accessing the organization's audit log via the web interface

> [!NOTE]
> Webhooks might be a good alternative to the audit log or API polling for certain use cases. Webhooks are a way for GitHub to notify your server when specific events occur for a repository, organization, or enterprise. Compared to the API or searching the audit log, webhooks can be more efficient if you just want to learn and possibly log when certain events occur on your enterprise, organization, or repository. See [Webhooks documentation](/en/webhooks).

The audit log lists events triggered by activities that affect your organization within the last 180 days. Only owners can access an organization's audit log.

By default, only events from the past three months are displayed. To view older events, you must specify a date range with the `created` parameter. See [Understanding the search syntax](/en/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates).

1. In the upper-right corner of GitHub, click your profile picture, then click **<svg version="1.1" width="16" height="16" viewBox="0 0 16 16" class="octicon octicon-organization" aria-label="organization" role="img"><path d="M1.75 16A1.75 1.75 0 0 1 0 14.25V1.75C0 .784.784 0 1.75 0h8.5C11.216 0 12 .784 12 1.75v12.5c0 .085-.006.168-.018.25h2.268a.25.25 0 0 0 .25-.25V8.285a.25.25 0 0 0-.111-.208l-1.055-.703a.749.749 0 1 1 .832-1.248l1.055.703c.487.325.779.871.779 1.456v5.965A1.75 1.75 0 0 1 14.25 16h-3.5a.766.766 0 0 1-.197-.026c-.099.017-.2.026-.303.026h-3a.75.75 0 0 1-.75-.75V14h-1v1.25a.75.75 0 0 1-.75.75Zm-.25-1.75c0 .138.112.25.25.25H4v-1.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 .75.75v1.25h2.25a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25h-8.5a.25.25 0 0 0-.25.25ZM3.75 6h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5ZM3 3.75A.75.75 0 0 1 3.75 3h.5a.75.75 0 0 1 0 1.5h-.5A.75.75 0 0 1 3 3.75Zm4 3A.75.75 0 0 1 7.75 6h.5a.75.75 0 0 1 0 1.5h-.5A.75.75 0 0 1 7 6.75ZM7.75 3h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5ZM3 9.75A.75.75 0 0 1 3.75 9h.5a.75.75 0 0 1 0 1.5h-.5A.75.75 0 0 1 3 9.75ZM7.75 9h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5Z"></path></svg> Organizations**.
2. Select an organization by clicking it.
3. Under your organization name, click **<svg version="1.1" width="16" height="16" viewBox="0 0 16 16" class="octicon octicon-gear" aria-label="gear" role="img"><path d="M8 0a8.2 8.2 0 0 1 .701.031C9.444.095 9.99.645 10.16 1.29l.288 1.107c.018.066.079.158.212.224.231.114.454.243.668.386.123.082.233.09.299.071l1.103-.303c.644-.176 1.392.021 1.82.63.27.385.506.792.704 1.218.315.675.111 1.422-.364 1.891l-.814.806c-.049.048-.098.147-.088.294.016.257.016.515 0 .772-.01.147.038.246.088.294l.814.806c.475.469.679 1.216.364 1.891a7.977 7.977 0 0 1-.704 1.217c-.428.61-1.176.807-1.82.63l-1.102-.302c-.067-.019-.177-.011-.3.071a5.909 5.909 0 0 1-.668.386c-.133.066-.194.158-.211.224l-.29 1.106c-.168.646-.715 1.196-1.458 1.26a8.006 8.006 0 0 1-1.402 0c-.743-.064-1.289-.614-1.458-1.26l-.289-1.106c-.018-.066-.079-.158-.212-.224a5.738 5.738 0 0 1-.668-.386c-.123-.082-.233-.09-.299-.071l-1.103.303c-.644.176-1.392-.021-1.82-.63a8.12 8.12 0 0 1-.704-1.218c-.315-.675-.111-1.422.363-1.891l.815-.806c.05-.048.098-.147.088-.294a6.214 6.214 0 0 1 0-.772c.01-.147-.038-.246-.088-.294l-.815-.806C.635 6.045.431 5.298.746 4.623a7.92 7.92 0 0 1 .704-1.217c.428-.61 1.176-.807 1.82-.63l1.102.302c.067.019.177.011.3-.071.214-.143.437-.272.668-.386.133-.066.194-.158.211-.224l.29-1.106C6.009.645 6.556.095 7.299.03 7.53.01 7.764 0 8 0Zm-.571 1.525c-.036.003-.108.036-.137.146l-.289 1.105c-.147.561-.549.967-.998 1.189-.173.086-.34.183-.5.29-.417.278-.97.423-1.529.27l-1.103-.303c-.109-.03-.175.016-.195.045-.22.312-.412.644-.573.99-.014.031-.021.11.059.19l.815.806c.411.406.562.957.53 1.456a4.709 4.709 0 0 0 0 .582c.032.499-.119 1.05-.53 1.456l-.815.806c-.081.08-.073.159-.059.19.162.346.353.677.573.989.02.03.085.076.195.046l1.102-.303c.56-.153 1.113-.008 1.53.27.161.107.328.204.501.29.447.222.85.629.997 1.189l.289 1.105c.029.109.101.143.137.146a6.6 6.6 0 0 0 1.142 0c.036-.003.108-.036.137-.146l.289-1.105c.147-.561.549-.967.998-1.189.173-.086.34-.183.5-.29.417-.278.97-.423 1.529-.27l1.103.303c.109.029.175-.016.195-.045.22-.313.411-.644.573-.99.014-.031.021-.11-.059-.19l-.815-.806c-.411-.406-.562-.957-.53-1.456a4.709 4.709 0 0 0 0-.582c-.032-.499.119-1.05.53-1.456l.815-.806c.081-.08.073-.159.059-.19a6.464 6.464 0 0 0-.573-.989c-.02-.03-.085-.076-.195-.046l-1.102.303c-.56.153-1.113.008-1.53-.27a4.44 4.44 0 0 0-.501-.29c-.447-.222-.85-.629-.997-1.189l-.289-1.105c-.029-.11-.101-.143-.137-.146a6.6 6.6 0 0 0-1.142 0ZM11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0ZM9.5 8a1.5 1.5 0 1 0-3.001.001A1.5 1.5 0 0 0 9.5 8Z"></path></svg> Settings**. If you cannot see the "Settings" tab, select the **<svg version="1.1" width="16" height="16" viewBox="0 0 16 16" class="octicon octicon-kebab-horizontal" aria-label="More" role="img"><path d="M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path></svg>** dropdown menu, then click **Settings**.

   ![Screenshot of the tabs in an organization's profile. The "Settings" tab is outlined in dark orange.](/assets/images/help/discussions/org-settings-global-nav-update.png)
4. In the "Archive" section of the sidebar, click **<svg version="1.1" width="16" height="16" viewBox="0 0 16 16" class="octicon octicon-log" aria-label="log" role="img"><path d="M5 8.25a.75.75 0 0 1 .75-.75h4a.75.75 0 0 1 0 1.5h-4A.75.75 0 0 1 5 8.25ZM4 10.5A.75.75 0 0 0 4 12h4a.75.75 0 0 0 0-1.5H4Z"></path><path d="M13-.005c1.654 0 3 1.328 3 3 0 .982-.338 1.933-.783 2.818-.443.879-1.028 1.758-1.582 2.588l-.011.017c-.568.853-1.104 1.659-1.501 2.446-.398.789-.623 1.494-.623 2.136a1.5 1.5 0 1 0 2.333-1.248.75.75 0 0 1 .834-1.246A3 3 0 0 1 13 16H3a3 3 0 0 1-3-3c0-1.582.891-3.135 1.777-4.506.209-.322.418-.637.623-.946.473-.709.923-1.386 1.287-2.048H2.51c-.576 0-1.381-.133-1.907-.783A2.68 2.68 0 0 1 0 2.995a3 3 0 0 1 3-3Zm0 1.5a1.5 1.5 0 0 0-1.5 1.5c0 .476.223.834.667 1.132A.75.75 0 0 1 11.75 5.5H5.368c-.467 1.003-1.141 2.015-1.773 2.963-.192.289-.381.571-.558.845C2.13 10.711 1.5 11.916 1.5 13A1.5 1.5 0 0 0 3 14.5h7.401A2.989 2.989 0 0 1 10 13c0-.979.338-1.928.784-2.812.441-.874 1.023-1.748 1.575-2.576l.017-.026c.568-.853 1.103-1.658 1.501-2.448.398-.79.623-1.497.623-2.143 0-.838-.669-1.5-1.5-1.5Zm-10 0a1.5 1.5 0 0 0-1.5 1.5c0 .321.1.569.27.778.097.12.325.227.74.227h7.674A2.737 2.737 0 0 1 10 2.995c0-.546.146-1.059.401-1.5Z"></path></svg> Logs**, then click **Audit log**.

## Searching the audit log

The name for each audit log entry is composed of a category of events, followed by an operation type. For example, the `repo.create` entry refers to the `create` operation on the `repo` category.

Each audit log entry shows applicable information about an event, such as:

* The organization an action was performed in
* The user (actor) who performed the action
* The user affected by the action
* Which repository an action was performed in
* The action that was performed
* Which country the action took place in
* The date and time the action occurred

Note that you cannot search for entries using text. You can, however, construct search queries using a variety of filters. Many operators used when querying the log, such as `-`, `>`, or `<`, match the same format as searching across GitHub. For more information, see [About searching on GitHub](/en/search-github/getting-started-with-searching-on-github/about-searching-on-github).

### Search based on operation

Use the `operation` qualifier to limit actions to specific types of operations. For example:

* `operation:access` finds all events where a resource was accessed.
* `operation:authentication` finds all events where an authentication event was performed.
* `operation:create` finds all events where a resource was created.
* `operation:modify` finds all events where an existing resource was modified.
* `operation:remove` finds all events where an existing resource was removed.
* `operation:restore` finds all events where an existing resource was restored.
* `operation:transfer` finds all events where an existing resource was transferred.

### Search based on repository

Use the `repo` qualifier to limit actions to a specific repository. For example:

* `repo:my-org/our-repo` finds all events that occurred for the `our-repo` repository in the `my-org` organization.
* `repo:my-org/our-repo repo:my-org/another-repo` finds all events that occurred for both the `our-repo` and `another-repo` repositories in the `my-org` organization.
* `-repo:my-org/not-this-repo` excludes all events that occurred for the `not-this-repo` repository in the `my-org` organization.

Note that you must include the account name within the `repo` qualifier; searching for just `repo:our-repo` will not work.

### Search based on the actor

The `actor` qualifier can scope events based on the person or agent that performed the action. For example:

* `actor:octocat` finds all events performed by `octocat`.
* `actor:octocat actor:Copilot` finds all events performed by `octocat` or `Copilot`.
* `-actor:Copilot` excludes all events performed by `Copilot`.

Note that you can only use a GitHub username, not an individual's real name.

### Search based on the action performed

To search for specific events, use the `action` qualifier in your query. Actions listed in the audit log are grouped in different categories. For the full list of events in each category, see [Audit log events for your organization](/en/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/audit-log-events-for-your-organization).

| Category name                                               | Description                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ----------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|                                                             |                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `account`                                                   | Contains all activities related to your organization account.                                                                                                                                                                                                                                                                                                                                                                          |
| `advisory_credit`                                           | Contains all activities related to crediting a contributor for a security advisory in the GitHub Advisory Database. For more information, see [Repository security advisories](/en/code-security/concepts/vulnerability-reporting-and-management/repository-security-advisories).                                                                                                                                                      |
|                                                             |                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `auto_approve_personal_access_token_requests`               | Contains activities related to your organization's approval policy for fine-grained personal access tokens. For more information, see [Setting a personal access token policy for your organization](/en/organizations/managing-programmatic-access-to-your-organization/setting-a-personal-access-token-policy-for-your-organization).                                                                                                |
|                                                             |                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `billing`                                                   | Contains all activities related to your organization's billing.                                                                                                                                                                                                                                                                                                                                                                        |
| `business`                                                  | Contains activities related to business settings for an enterprise.                                                                                                                                                                                                                                                                                                                                                                    |
|                                                             |                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `code-scanning`                                             | Contains all activities related to your organization's code scanning alerts.                                                                                                                                                                                                                                                                                                                                                           |
|                                                             |                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `codespaces`                                                | Contains all activities related to your organization's codespaces.                                                                                                                                                                                                                                                                                                                                                                     |
| `copilot`                                                   | Contains all activities related to your GitHub Copilot Business or GitHub Copilot Enterprise subscription.                                                                                                                                                                                                                                                                                                                             |
|                                                             |                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `dependabot_alerts`                                         | Contains organization-level configuration activities for Dependabot alerts in existing repositories. For more information, see [Dependabot alerts](/en/code-security/concepts/supply-chain-security/dependabot-alerts).                                                                                                                                                                                                                |
| `dependabot_alerts_new_repos`                               | Contains organization-level configuration activities for Dependabot alerts in new repositories created in the organization.                                                                                                                                                                                                                                                                                                            |
| `dependabot_security_updates`                               | Contains organization-level configuration activities for Dependabot security updates in existing repositories. For more information, see [Configuring Dependabot security updates](/en/code-security/how-tos/secure-your-supply-chain/secure-your-dependencies/configure-security-updates).                                                                                                                                            |
| `dependabot_security_updates_new_repos`                     | Contains organization-level configuration activities for Dependabot security updates for new repositories created in the organization.                                                                                                                                                                                                                                                                                                 |
|                                                             |                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `dependency_graph`                                          | Contains organization-level configuration activities for dependency graphs for repositories. For more information, see [Dependency graph](/en/code-security/concepts/supply-chain-security/dependency-graph).                                                                                                                                                                                                                          |
| `dependency_graph_new_repos`                                | Contains organization-level configuration activities for new repositories created in the organization.                                                                                                                                                                                                                                                                                                                                 |
|                                                             |                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `discussion_post`                                           | Contains all activities related to discussions posted to a team page.                                                                                                                                                                                                                                                                                                                                                                  |
| `discussion_post_reply`                                     | Contains all activities related to replies to discussions posted to a team page.                                                                                                                                                                                                                                                                                                                                                       |
| `enterprise`                                                | Contains activities related to enterprise settings.                                                                                                                                                                                                                                                                                                                                                                                    |
| `hook`                                                      | Contains all activities related to webhooks.                                                                                                                                                                                                                                                                                                                                                                                           |
| `integration_installation`                                  | Contains activities related to integrations installed in an account.                                                                                                                                                                                                                                                                                                                                                                   |
| `integration_installation_request`                          | Contains all activities related to organization member requests for owners to approve integrations for use in the organization.                                                                                                                                                                                                                                                                                                        |
|                                                             |                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `issue`                                                     | Contains activities related to deleting an issue.                                                                                                                                                                                                                                                                                                                                                                                      |
|                                                             |                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `marketplace_agreement_signature`                           | Contains all activities related to signing the GitHub Marketplace Developer Agreement.                                                                                                                                                                                                                                                                                                                                                 |
| `marketplace_listing`                                       | Contains all activities related to listing apps in GitHub Marketplace.                                                                                                                                                                                                                                                                                                                                                                 |
|                                                             |                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `members_can_create_pages`                                  | Contains all activities related to managing the publication of GitHub Pages sites for repositories in the organization. For more information, see [Managing the publication of GitHub Pages sites for your organization](/en/organizations/managing-organization-settings/managing-the-publication-of-github-pages-sites-for-your-organization).                                                                                       |
| `org`                                                       | Contains activities related to organization membership.                                                                                                                                                                                                                                                                                                                                                                                |
|                                                             |                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `org_secret_scanning_automatic_validity_checks`             | Contains organization-level activities related to enabling and disabling automatic validity checks for secret scanning. For more information, see [Creating a custom security configuration](/en/code-security/how-tos/secure-at-scale/configure-organization-security/establish-complete-coverage/create-custom-configuration#creating-a-secret-protection-and-code-security-configuration).                                          |
| `org_secret_scanning_custom_pattern`                        | Contains organization-level activities related to secret scanning custom patterns. For more information, see [Defining custom patterns for secret scanning](/en/code-security/how-tos/secure-your-secrets/customize-leak-detection/define-custom-patterns).                                                                                                                                                                            |
| `organization_default_label`                                | Contains all activities related to default labels for repositories in your organization.                                                                                                                                                                                                                                                                                                                                               |
| `oauth_application`                                         | Contains all activities related to OAuth apps.                                                                                                                                                                                                                                                                                                                                                                                         |
| `packages`                                                  | Contains all activities related to GitHub Packages.                                                                                                                                                                                                                                                                                                                                                                                    |
|                                                             |                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `payment_method`                                            | Contains all activities related to how your organization pays for GitHub.                                                                                                                                                                                                                                                                                                                                                              |
|                                                             |                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `personal_access_token`                                     | Contains activities related to fine-grained personal access tokens in your organization. For more information, see [Managing your personal access tokens](/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens).                                                                                                                                                                               |
| `profile_picture`                                           | Contains all activities related to your organization's profile picture.                                                                                                                                                                                                                                                                                                                                                                |
| `project`                                                   | Contains all activities related to projects.                                                                                                                                                                                                                                                                                                                                                                                           |
| `protected_branch`                                          | Contains all activities related to protected branches.                                                                                                                                                                                                                                                                                                                                                                                 |
| `repo`                                                      | Contains activities related to the repositories owned by your organization.                                                                                                                                                                                                                                                                                                                                                            |
|                                                             |                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `repository_advisory`                                       | Contains repository-level activities related to security advisories in the GitHub Advisory Database. For more information, see [Repository security advisories](/en/code-security/concepts/vulnerability-reporting-and-management/repository-security-advisories).                                                                                                                                                                     |
| `repository_content_analysis`                               | Contains all activities related to enabling or disabling data use for a private repository. For more information, see [Managing security and analysis settings for your repository](/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository#enabling-or-disabling-security-and-analysis-features-for-private-repositories). |
| `repository_dependency_graph`                               | Contains repository-level activities related to enabling or disabling the dependency graph for a private repository. For more information, see [Dependency graph](/en/code-security/concepts/supply-chain-security/dependency-graph).                                                                                                                                                                                                  |
|                                                             |                                                                                                                                                                                                                                                                                                                                                                                                                                        |
|                                                             |                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `repository_secret_scanning_automatic_validity_checks`      | Contains repository-level activities related to enabling and disabling automatic validity checks for secret scanning. For more information, see [Enabling secret scanning for your repository](/en/code-security/how-tos/secure-your-secrets/detect-secret-leaks/enable-secret-scanning).                                                                                                                                              |
| `repository_secret_scanning_custom_pattern`                 | Contains repository-level activities related to secret scanning custom patterns. For more information, see [Defining custom patterns for secret scanning](/en/code-security/how-tos/secure-your-secrets/customize-leak-detection/define-custom-patterns).                                                                                                                                                                              |
| `repository_secret_scanning_custom_pattern_push_protection` | Contains repository-level activities related to push protection of a custom pattern for secret scanning. For more information, see [Defining custom patterns for secret scanning](/en/code-security/how-tos/secure-your-secrets/customize-leak-detection/define-custom-patterns#defining-a-custom-pattern-for-a-repository).                                                                                                           |
| `repository_secret_scanning_push_protection`                | Contains repository-level activities related to secret scanning push protection. For more information, see [Push protection](/en/code-security/concepts/secret-security/push-protection).                                                                                                                                                                                                                                              |
| `repository_vulnerability_alert`                            | Contains all activities related to [Dependabot alerts](/en/code-security/concepts/supply-chain-security/dependabot-alerts).                                                                                                                                                                                                                                                                                                            |
|                                                             |                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `repository_vulnerability_alerts`                           | Contains repository-level configuration activities for Dependabot alerts.                                                                                                                                                                                                                                                                                                                                                              |
|                                                             |                                                                                                                                                                                                                                                                                                                                                                                                                                        |
|                                                             |                                                                                                                                                                                                                                                                                                                                                                                                                                        |
|                                                             |                                                                                                                                                                                                                                                                                                                                                                                                                                        |
|                                                             |                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `restore_member`                                            | Triggered when an organization owner reinstates a member. For more information, see [Reinstating a former member of your organization](/en/organizations/managing-membership-in-your-organization/reinstating-a-former-member-of-your-organization).                                                                                                                                                                                   |
| `sponsors`                                                  | Contains all events related to sponsor buttons (see [Displaying a sponsor button in your repository](/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/displaying-a-sponsor-button-in-your-repository))                                                                                                                                                                                     |
|                                                             |                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `team`                                                      | Contains all activities related to teams in your organization.                                                                                                                                                                                                                                                                                                                                                                         |
| `workflows`                                                 | Contains activities related to GitHub Actions workflows.                                                                                                                                                                                                                                                                                                                                                                               |

You can search for specific sets of actions using these terms. For example:

* `action:team` finds all events grouped within the team category.
* `-action:hook` excludes all events in the webhook category.

Each category has a set of associated actions that you can filter on. For example:

* `action:team.create` finds all events where a team was created.
* `-action:hook.events_changed` excludes all events where the events on a webhook have been altered.

### Search based on time of action

Use the `created` qualifier to filter events in the audit log based on when they occurred. Date formatting must follow the [ISO8601](http://en.wikipedia.org/wiki/ISO_8601) standard, which is `YYYY-MM-DD` (year-month-day). You can also add optional time information `THH:MM:SS+00:00` after the date, to search by the hour, minute, and second. That's `T`, followed by `HH:MM:SS` (hour-minutes-seconds), and a UTC offset (`+00:00`).

When you search for a date, you can use greater than, less than, and range qualifiers to further filter results. For more information, see [Understanding the search syntax](/en/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax).

For example:

* `created:2014-07-08` finds all events that occurred on July 8th, 2014.
* `created:>=2014-07-08` finds all events that occurred on or after July 8th, 2014.
* `created:<=2014-07-08` finds all events that occurred on or before July 8th, 2014.
* `created:2014-07-01..2014-07-31` finds all events that occurred in the month of July 2014.

> [!NOTE]
> The audit log contains data for the last 180 days.

### Search based on location

Using the qualifier `country`, you can filter events in the audit log based on the originating country. You can use a country's two-letter short code or its full name. Keep in mind that countries with spaces in their name will need to be wrapped in quotation marks. For example:

* `country:de` finds all events that occurred in Germany.
* `country:Mexico` finds all events that occurred in Mexico.
* `country:"United States"` all finds events that occurred in the United States.

## Exporting the audit log

You can export the log as JSON data or a comma-separated value (CSV) file with the **Export** dropdown menu.

To filter the results in your export, search by one or more of these supported qualifiers before using the **Export** dropdown menu.

| Qualifier | Example value          |
| --------- | ---------------------- |
| `action`  | team.create            |
| `actor`   | octocat                |
| `user`    | codertocat             |
| `org`     | octo-org               |
| `repo`    | octo-org/documentation |
| `created` | 2019-06-01             |

### Export limits

There is a hard limit when exporting the audit logs for your organization. These limits are either:

* **100 MB** compressed file, or
* **10 minutes** export processing time, or
* **both**.

To avoid these limits, we recommend reducing the audit log to a smaller dataset before exporting. For more information, see [Reviewing the audit log for your organization](/en/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/reviewing-the-audit-log-for-your-organization#searching-the-audit-log).

### Exported log keys and values

After you export the log, you'll see the following keys and values in the resulting file.

| Key                           | Example value                                                                    |
| ----------------------------- | -------------------------------------------------------------------------------- |
| `action`                      | team.create                                                                      |
| `actor`                       | octocat                                                                          |
| `user`                        | codertocat                                                                       |
| `actor_location.country_code` | US                                                                               |
| `org`                         | octo-org                                                                         |
| `repo`                        | octo-org/documentation                                                           |
| `created_at`                  | 1429548104000 (Timestamp shows the time since Epoch with milliseconds.)          |
| `data.email`                  | <octocat@nowhere.com>                                                            |
| `data.hook_id`                | 245                                                                              |
| `data.events`                 | \["issues", "issue\_comment", "pull\_request", "pull\_request\_review\_comment"] |
| `data.events_were`            | \["push", "pull\_request", "issues"]                                             |
| `data.target_login`           | octocat                                                                          |
| `data.old_user`               | hubot                                                                            |
| `data.team`                   | octo-org/engineering                                                             |

## Using the audit log API

Organizations that use GitHub Enterprise Cloud can interact with the audit log using the GraphQL API and REST API. For more information, see [the GitHub Enterprise Cloud documentation](/en/enterprise-cloud@latest/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/reviewing-the-audit-log-for-your-organization#using-the-audit-log-api).

# Further reading

* [Keeping your organization secure](/en/organizations/keeping-your-organization-secure)
* [Exporting member information for your organization](/en/organizations/managing-membership-in-your-organization/exporting-member-information-for-your-organization)