Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

A Python script to collect event logs from Okta.

Notifications You must be signed in to change notification settings

SumoLogic/okta-events

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Okta Event Collector

Pulls events from Okta and sends them to Sumo Logic.

NOTE: As of Sep 2017, this repository is deprecated. Please use our official collection method to collect Okta events.

Prerequisites

  • Python 2.6 works, but 2.7 is recommended.
  • Python libraries listed at the beginning of oktaEvents.py

Manual Test

python oktaEvents.py <orgid/subdomain> <token> <relative_cutoff_seconds>

  • orgid/subdomain appears before .okta.com in the URL that you use to access the Okta UI in your browser.
  • token is an API token generated by a user with permissions to read events.
  • relative_cutoff_seconds is the number of seconds before now (when you run the script) to start collecting events from.

Setup

Create a Script Source in Sumo Logic with the following settings:

  • Frequency: Every 5 minutes
  • Command: /usr/bin/python
  • Script: python oktaEvents.py <orgid/subdomain> <token> <relative_cutoff_seconds>
    • relative_cutoff_seconds should be equal to the frequency you choose. For 5 minutes, this value would be 300.

About

A Python script to collect event logs from Okta.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%