{"meta":{"title":"Reviewing your security log","intro":"You can review the security log for your personal account to better understand actions you've performed and actions others have performed that involve you.","product":"Authentication","breadcrumbs":[{"href":"/en/authentication","title":"Authentication"},{"href":"/en/authentication/keeping-your-account-and-data-secure","title":"Account security"},{"href":"/en/authentication/keeping-your-account-and-data-secure/reviewing-your-security-log","title":"Review security log"}],"documentType":"article"},"body":"# Reviewing your security log\n\nYou can review the security log for your personal account to better understand actions you've performed and actions others have performed that involve you.\n\n## Accessing your security log\n\nThe security log lists all actions performed within the last 90 days.\n\n1. In the upper-right corner of any page on GitHub, click your profile picture, then 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**.\n2. In the \"Archives\" 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> Security log**.\n\n## Searching your security log\n\nThe 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.\n\nEach audit log entry shows applicable information about an event, such as:\n\n* The organization an action was performed in\n* The user (actor) who performed the action\n* The user affected by the action\n* Which repository an action was performed in\n* The action that was performed\n* Which country the action took place in\n* The date and time the action occurred\n\nNote 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).\n\n### Search based on operation\n\nUse the `operation` qualifier to limit actions to specific types of operations. For example:\n\n* `operation:access` finds all events where a resource was accessed.\n* `operation:authentication` finds all events where an authentication event was performed.\n* `operation:create` finds all events where a resource was created.\n* `operation:modify` finds all events where an existing resource was modified.\n* `operation:remove` finds all events where an existing resource was removed.\n* `operation:restore` finds all events where an existing resource was restored.\n* `operation:transfer` finds all events where an existing resource was transferred.\n\n### Search based on repository\n\nUse the `repo` qualifier to limit actions to a specific repository. For example:\n\n* `repo:my-org/our-repo` finds all events that occurred for the `our-repo` repository in the `my-org` organization.\n* `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.\n* `-repo:my-org/not-this-repo` excludes all events that occurred for the `not-this-repo` repository in the `my-org` organization.\n\nNote that you must include the account name within the `repo` qualifier; searching for just `repo:our-repo` will not work.\n\n### Search based on the actor\n\nThe `actor` qualifier can scope events based on the person or agent that performed the action. For example:\n\n* `actor:octocat` finds all events performed by `octocat`.\n* `actor:octocat actor:Copilot` finds all events performed by `octocat` or `Copilot`.\n* `-actor:Copilot` excludes all events performed by `Copilot`.\n\nNote that you can only use a GitHub username, not an individual's real name.\n\n### Search based on the action performed\n\nThe events listed in your security log are triggered by your actions. Actions are grouped into different categories. For the full list of events in each category, see [Security log events](/en/authentication/keeping-your-account-and-data-secure/security-log-events).\n\n| Category name                     | Description                                                                                                                                                                                                                                                                                                                                                                 |\n| --------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n|                                   |                                                                                                                                                                                                                                                                                                                                                                             |\n| `billing`                         | Contains all activities related to your billing information.                                                                                                                                                                                                                                                                                                                |\n| `codespaces`                      | Contains all activities related to GitHub Codespaces. For more information, see [Quickstart for GitHub Codespaces](/en/codespaces/quickstart).                                                                                                                                                                                                                              |\n| `copilot`                         | Contains all activities related to Copilot Business. For more information, see [What is GitHub Copilot?](/en/copilot/about-github-copilot/what-is-github-copilot).                                                                                                                                                                                                          |\n| `marketplace_agreement_signature` | Contains all activities related to signing the GitHub Marketplace Developer Agreement.                                                                                                                                                                                                                                                                                      |\n| `marketplace_listing`             | Contains all activities related to listing apps in GitHub Marketplace.                                                                                                                                                                                                                                                                                                      |\n|                                   |                                                                                                                                                                                                                                                                                                                                                                             |\n| `oauth_access`                    | Contains all activities related to OAuth access tokens.                                                                                                                                                                                                                                                                                                                     |\n| `oauth_authorization`             | Contains all activities related to authorizing OAuth apps. For more information, see [Authorizing OAuth apps](/en/apps/oauth-apps/using-oauth-apps/authorizing-oauth-apps).                                                                                                                                                                                                 |\n| `passkey`                         | Contains activities related to your passkeys. See [About passkeys](/en/authentication/authenticating-with-a-passkey/about-passkeys).                                                                                                                                                                                                                                        |\n|                                   |                                                                                                                                                                                                                                                                                                                                                                             |\n| `payment_method`                  | Contains all activities related to paying for your GitHub subscription.                                                                                                                                                                                                                                                                                                     |\n|                                   |                                                                                                                                                                                                                                                                                                                                                                             |\n| `personal_access_token`           | Contains activities related to fine-grained personal access tokens. For more information, see [Managing your personal access tokens](/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token).                                                                                                                                             |\n| `profile_picture`                 | Contains all activities related to your profile picture.                                                                                                                                                                                                                                                                                                                    |\n| `project`                         | Contains all activities related to projects.                                                                                                                                                                                                                                                                                                                                |\n| `public_key`                      | Contains all activities related to [your public SSH keys](/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account).                                                                                                                                                                                                                    |\n| `repo`                            | Contains all activities related to the repositories you own.                                                                                                                                                                                                                                                                                                                |\n|                                   |                                                                                                                                                                                                                                                                                                                                                                             |\n| `sponsors`                        | Contains all events related to GitHub Sponsors and sponsor buttons (see [About GitHub Sponsors](/en/sponsors/getting-started-with-github-sponsors/about-github-sponsors) and [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)) |\n|                                   |                                                                                                                                                                                                                                                                                                                                                                             |\n|                                   |                                                                                                                                                                                                                                                                                                                                                                             |\n| `two_factor_authentication`       | Contains all activities related to [two-factor authentication](/en/authentication/securing-your-account-with-two-factor-authentication-2fa).                                                                                                                                                                                                                                |\n| `user`                            | Contains all activities related to your account.                                                                                                                                                                                                                                                                                                                            |\n\n## Exporting your security log\n\nYou can export the log as JSON data or a comma-separated value (CSV) file with the **Export** dropdown menu.\n\nTo filter the results in your export, search by one or more of these supported qualifiers before using the **Export** dropdown menu.\n\n| Qualifier                                                                                 | Example value          |\n| ----------------------------------------------------------------------------------------- | ---------------------- |\n| `action`                                                                                  | team.create            |\n| `actor`                                                                                   | octocat                |\n| `user`                                                                                    | codertocat             |\n| `org`                                                                                     | octo-org               |\n| `repo`                                                                                    | octo-org/documentation |\n| `created`                                                                                 | 2019-06-01             |\n| After you export the log, you'll see the following keys and values in the resulting file. |                        |\n\n| Key                           | Example value                                                                    |\n| ----------------------------- | -------------------------------------------------------------------------------- |\n| `action`                      | team.create                                                                      |\n| `actor`                       | octocat                                                                          |\n| `user`                        | codertocat                                                                       |\n| `actor_location.country_code` | US                                                                               |\n| `org`                         | octo-org                                                                         |\n| `repo`                        | octo-org/documentation                                                           |\n| `created_at`                  | 1429548104000 (Timestamp shows the time since Epoch with milliseconds.)          |\n| `data.email`                  | <octocat@nowhere.com>                                                            |\n| `data.hook_id`                | 245                                                                              |\n| `data.events`                 | \\[\"issues\", \"issue\\_comment\", \"pull\\_request\", \"pull\\_request\\_review\\_comment\"] |\n| `data.events_were`            | \\[\"push\", \"pull\\_request\", \"issues\"]                                             |\n| `data.target_login`           | octocat                                                                          |\n| `data.old_user`               | hubot                                                                            |\n| `data.team`                   | octo-org/engineering                                                             |"}