auth0/auth0-logs-to-mixpanel

Name: auth0-logs-to-mixpanel

Owner: Auth0

Description: null

Created: 2016-04-25 16:28:23.0

Updated: 2018-05-07 23:16:44.0

Pushed: 2018-05-07 23:16:42.0

Homepage: null

Size: 94

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Auth0 - Logs to Mixpanel

Auth0 Extensions

This extension will take all of your Auth0 logs and export them to Mixpanel.

Configure Webtask

If you haven't configured Webtask on your machine run this first:

i -g wt-cli
nit

Requires at least node 4.2.2 - if you're running multiple version of node make sure to load the right version, e.g. “nvm use 4.2.2”

Deploy to Webtask.io

To run it on a schedule (run every 5 minutes for example):

m run build
 cron schedule \
--name auth0-logs-to-mixpanel \
--secret AUTH0_DOMAIN="YOUR_AUTH0_DOMAIN" \
--secret AUTH0_GLOBAL_CLIENT_ID="YOUR_AUTH0_GLOBAL_CLIENT_ID" \
--secret AUTH0_GLOBAL_CLIENT_SECRET="YOUR_AUTH0_GLOBAL_CLIENT_SECRET" \
--secret LOG_LEVEL="1" \
--secret LOG_TYPES="s,f" \
--secret MIXPANEL_TOKEN="MIXPANEL_TOKEN" \
--secret MIXPANEL_KEY="MIXPANEL_KEY" \
"*/5 * * * *" \
build/bundle.js

The following settings are optional:

You can get your Global Client Id/Secret here: https://auth0.com/docs/api/v2

Usage

Go to your mixpanel account and inspect the logs (see Live View)

You can retrieve your token and API key from under Account -> Projects

For information on getting started with Mixpanel, please refere to the documentation here:

Mixpanel Documentation

Filters

The LOG_LEVEL can be set to (setting it to a value will also send logs of a higher value):

The LOG_TYPES filter can be set to:

So for example, if I want to filter on a few events I would set the LOG_TYPES filter to: sce,fce,scu,fcu.

Issue Reporting

If 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 details the procedure for disclosing security issues.

Author

Auth0

What is Auth0?

Auth0 helps you to:

Create a free Auth0 Account
  1. Go to Auth0 and click Sign Up.
  2. Use Google, GitHub or Microsoft Account to login.
License

This project is licensed under the MIT license. See the LICENSE file for more info.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.