{"id":20844597,"url":"https://github.com/pushpabrol/auth0-logs-cloudwatch","last_synced_at":"2025-10-11T13:32:30.307Z","repository":{"id":92529265,"uuid":"85625919","full_name":"pushpabrol/auth0-logs-cloudwatch","owner":"pushpabrol","description":null,"archived":false,"fork":false,"pushed_at":"2017-03-21T21:34:12.000Z","size":69,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-11T13:32:04.909Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pushpabrol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-03-20T20:51:25.000Z","updated_at":"2017-03-20T22:07:59.000Z","dependencies_parsed_at":"2023-04-27T18:49:15.082Z","dependency_job_id":null,"html_url":"https://github.com/pushpabrol/auth0-logs-cloudwatch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pushpabrol/auth0-logs-cloudwatch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushpabrol%2Fauth0-logs-cloudwatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushpabrol%2Fauth0-logs-cloudwatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushpabrol%2Fauth0-logs-cloudwatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushpabrol%2Fauth0-logs-cloudwatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pushpabrol","download_url":"https://codeload.github.com/pushpabrol/auth0-logs-cloudwatch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushpabrol%2Fauth0-logs-cloudwatch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279007339,"owners_count":26084282,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T02:10:06.056Z","updated_at":"2025-10-11T13:32:30.301Z","avatar_url":"https://github.com/pushpabrol.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Auth0 - Logs to AWS Cloudwatch Logs\n\n## Install Extension\n\nThis extension will take all of your Auth0 logs and export them to CloudWatch. to install go to your management dashboard - https://manage.auth0.com/#/extensions and click on Create Extension and enter the url for this github repo.\n\n\n## Deploy to Webtask.io\n\n### Configure Webtask\n\nIf you haven't configured Webtask on your machine run this first:\n```\nnpm i -g wt-cli\nwt init\n```\n\n\n\n\n\n### Pre reqs:\n\n\u003e To get a client_id and secret use the client credentials setup and grant a client \"read:logs\" scope on API V2 and you can use that Client Id/Secret for AUTH0_CLIENT_ID \u0026\u0026 AUTH0_CLIENT_SECRET in the script below.\n\u003e You will need to create a cloud watch log group and log group stream and use the values for CLOUDWATCH_LOG_GROUP_NAME and CLOUDWATCH_LOG_STREAM_NAME\n\u003e Get the AWS Access, Secret Key and Region for AWS_ACCESS_KEY_ID, AWS_SECRET_KEY, AWS_REGION\n\n### Create Cron\n\nTo run it on a schedule (run every 5 minutes for example):\n\n```bash\nwt cron schedule --profile \"wt_profile\" --name auth0-logs-2-cloudwatch \\\n--secret AUTH0_DOMAIN=\"x.au/eu.auth0.com\" \\\n--secret AUTH0_CLIENT_ID=\"client_id with read logs permissions on API V2\" \\\n--secret AUTH0_CLIENT_SECRET=\"\u003cclient_secret\u003e\" --secret LOG_LEVEL=\"0,1,2,3,4\" \\\n--secret LOG_TYPES=\"s,seacft,feacft,f,w,du,fu,fp,fc,fco,con,coff,fcpro,ss,fs,cs,cls,sv,fv,scp,fcp,sce,fce,scu,fcu,scpn,fcpn,svr,fvr,scpr,fcpr,fn,limit_wc,limit_ui,api_limit,sdu,fdu\" \\\n--secret CLOUDWATCH_LOG_GROUP_NAME=\"logGroupName\" --secret CLOUDWATCH_LOG_STREAM_NAME=\"logStreamName\" \\\n--secret AWS_ACCESS_KEY_ID=\"aws_access_key\" --secret AWS_SECRET_KEY=\"aws_secret_key\" \\\n--secret AWS_REGION=\"\u003caws_region\u003e\" --secret BATCH_SIZE=100 \"*/5 * * * *\" build/bundle.js\n```\n\n\n\n## Usage\n\nGo to [CoudWatch] to inspect logs\n\n## Filters\n\nThe `LOG_LEVEL` can be set to (setting it to a value will also send logs of a higher value):\n\n - `1`: Debug messages\n - `2`: Info messages\n - `3`: Errors\n - `4`: Critical errors\n\nThe `LOG_TYPES` filter can be set to:\n\n- `s`: Success Login (level: 1)\n- `seacft`: Success Exchange (level: 1)\n- `feacft`: Failed Exchange (level: 3)\n- `f`: Failed Login (level: 3)\n- `w`: Warnings During Login (level: 2)\n- `du`: Deleted User (level: 1)\n- `fu`: Failed Login (invalid email/username) (level: 3)\n- `fp`: Failed Login (wrong password) (level: 3)\n- `fc`: Failed by Connector (level: 3)\n- `fco`: Failed by CORS (level: 3)\n- `con`: Connector Online (level: 1)\n- `coff`: Connector Offline (level: 3)\n- `fcpro`: Failed Connector Provisioning (level: 4)\n- `ss`: Success Signup (level: 1)\n- `fs`: Failed Signup (level: 3)\n- `cs`: Code Sent (level: 0)\n- `cls`: Code/Link Sent (level: 0)\n- `sv`: Success Verification Email (level: 0)\n- `fv`: Failed Verification Email (level: 0)\n- `scp`: Success Change Password (level: 1)\n- `fcp`: Failed Change Password (level: 3)\n- `sce`: Success Change Email (level: 1)\n- `fce`: Failed Change Email (level: 3)\n- `scu`: Success Change Username (level: 1)\n- `fcu`: Failed Change Username (level: 3)\n- `scpn`: Success Change Phone Number (level: 1)\n- `fcpn`: Failed Change Phone Number (level: 3)\n- `svr`: Success Verification Email Request (level: 0)\n- `fvr`: Failed Verification Email Request (level: 3)\n- `scpr`: Success Change Password Request (level: 0)\n- `fcpr`: Failed Change Password Request (level: 3)\n- `fn`: Failed Sending Notification (level: 3)\n- `limit_wc`: Blocked Account (level: 4)\n- `limit_ui`: Too Many Calls to /userinfo (level: 4)\n- `api_limit`: Rate Limit On API (level: 4)\n- `sdu`: Successful User Deletion (level: 1)\n- `fdu`: Failed User Deletion (level: 3)\n\nSo for example, if I want to filter on a few events I would set the `LOG_TYPES` filter to: `sce,fce,scu,fcu`.\n\n## Issue Reporting\n\nIf you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The [Responsible Disclosure Program](https://auth0.com/whitehat) details the procedure for disclosing security issues.\n\n## Author\n\n[Auth0](auth0.com)\n\n## What is Auth0?\n\nAuth0 helps you to:\n\n* Add authentication with [multiple authentication sources](https://docs.auth0.com/identityproviders), either social like **Google, Facebook, Microsoft Account, LinkedIn, GitHub, Twitter, Box, Salesforce, amont others**, or enterprise identity systems like **Windows Azure AD, Google Apps, Active Directory, ADFS or any SAML Identity Provider**.\n* Add authentication through more traditional **[username/password databases](https://docs.auth0.com/mysql-connection-tutorial)**.\n* Add support for **[linking different user accounts](https://docs.auth0.com/link-accounts)** with the same user.\n* Support for generating signed [Json Web Tokens](https://docs.auth0.com/jwt) to call your APIs and **flow the user identity** securely.\n* Analytics of how, when and where users are logging in.\n* Pull data from other sources and add it to the user profile, through [JavaScript rules](https://docs.auth0.com/rules).\n\n## Create a free Auth0 Account\n\n1. Go to [Auth0](https://auth0.com) and click Sign Up.\n2. Use Google, GitHub or Microsoft Account to login.\n\n## License\n\nThis project is licensed under the MIT license. See the [LICENSE](LICENSE) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpushpabrol%2Fauth0-logs-cloudwatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpushpabrol%2Fauth0-logs-cloudwatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpushpabrol%2Fauth0-logs-cloudwatch/lists"}