DZone
Web Dev Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Web Dev Zone > Visualize and Search Your Auth0 Logs Using Sumo Logic

Visualize and Search Your Auth0 Logs Using Sumo Logic

Learn about Sumo Logic, a helpful extension that can lend a hand storing and visualizing logs.

Eugene Kogan user avatar by
Eugene Kogan
·
Jun. 08, 16 · Web Dev Zone · Tutorial
Like (1)
Save
Tweet
2.77K Views

Join the DZone community and get the full member experience.

Join For Free

If you're a user of both Auth0 and Sumo Logic, you can use this awesome Auth0 extension to send your tenant logs to Sumo Logic. Having all your logs centrally located makes them more valuable and easier to correlate when dealing with something like a security incident or a performance issue. Amazingly, you can sign up for a free Sumo Logic account and collect up to 500MB of data per day! That is more than enough to get started.

It's super easy to install the "Auth0 Logs to Sumo Logic" extension right from your Auth0 account Dashboard. Simply log in, click on Extensions, then find and click on the Sumo Logic icon to configure and enable the extension.

Sumo Logic extension icon

Once enabled, the extension configuration screen will be displayed. You'll need to decide on a few simple settings, but the defaults are all reasonable. One piece of information you will need to supply is the URL of your Sumo Logic HTTP collector endpoint. If you don't already have one, follow the Sumo Logic instructions for creating an HTTP source and paste the URL it generates into the Auth0 extension configuration settings. We recommend naming the source category auth0_logs.

Sumo Logic extension configuration screen


Data should begin appearing in Sumo Logic a few minutes after you enable the extension. A simple search like _sourceCategory=auth0_logs will show you the most recent log events. Getting the top 10 users for a given time period is as easy as this query:

_sourceCategory=auth0_logs | json auto
| count user_name | top 10 user_name by _count


Want to create a chart showing the popularity of a particular client based on the number of logins per hour over a few days? You can do that in Sumo Logic with just a few commands:

_sourceCategory=auth0_logs salesforce | json auto | timeslice 1h
| count by _timeslice, client_name
| transpose row _timeslice column client_name


The resulting chart will look something like this:

Sumo Logic trend chart sample

We have been using the Auth0 to Sumo Logic extension ourselves since it was first released, and it's proven to be very useful for staying on top of what's happening with our own Auth0 accounts and our internal users (employees). Sumo Logic makes it easy to see the latest failed logins, find and alert on error messages, create charts to visualize trends, or even do complex statistical analysis on your data.

To help us (and our customers) visualize these logs, we spent some time creating a couple of dashboards. The Sumo Logic for Auth0 dashboards show you the output of several saved searches all on one easy to read screen, and makes it easy to zoom in or drill down when something looks interesting.

Sumo Logic dashboard for Auth0 logs

If you're a Sumo Logic customer and are interested in trying out these dashboards, just let us know via Support Center (be sure to include your Sumo Logic account name) and we will gladly share it with you. Once it's available through your account, you're free to customize it, add to it, create alerts based on the searches, or really anything else that you find useful!

Here are the saved searches we've created so far: Sumo Logic saved searches for Auth0 logs

We'd love to hear what you think, especially if you've got a great idea that we should incorporate back into our original version. Our goal is to eventually publish these dashboards via a real Sumo Logic app so that it's automatically available to all users.

Have fun analyzing and visualizing those logs!

trends

Published at DZone with permission of Eugene Kogan, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • 9 Extraordinary Terraform Best Practices That Will Change Your Infra World
  • How to Optimize MySQL Queries for Speed and Performance
  • How to Hash, Salt, and Verify Passwords in NodeJS, Python, Golang, and Java
  • A Simple Guide to Heaps, Stacks, References, and Values in JavaScript

Comments

Web Dev Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo