All Apps and Add-ons

Has anyone already come up with a SPL for Okta Identity extraction for Enterprise Security

asridhara
Explorer

I was wondering if anyone has already come up with an SPL to extract identities for Enterprise security Identity and asset lookups. Could you please post the SPL if you have.

Labels (3)
0 Karma

McLeodyDay
Engager

This is by no means perfect, but it has worked for me.

Run this in search to generate you .csv lookup:
| append [search index=okta sourcetype="OktaIM2:user" earliest=0| rename user AS identity, profile.firstName AS first, profile.lastName AS last, profile.email AS email, user_phone AS phone, user_managedBy AS managedBy, user_bunit AS bunit, user_work_city AS work_city, user_work_country AS work_country, activated AS startDate]
| eval priority = "medium"
| sort 0 - startDate
| dedup identity
| table identity,prefix,nick,first,last,suffix,email,phone,managedBy,priority,bunit,category,watchlist,startDate,endDate,work_city,work_country,work_lat,work_long
| outputlookup corporate_identities.csv

Schedule a search for the following:
| inputlookup corporate_identities.csv
| append [search index=okta sourcetype="OktaIM2:user" earliest=0| rename user AS identity, profile.firstName AS first, profile.lastName AS last, profile.email AS email, user_phone AS phone, user_managedBy AS managedBy, user_bunit AS bunit, user_work_city AS work_city, user_work_country AS work_country, activated AS startDate]
| eval priority = "medium"
| sort 0 - startDate
| dedup identity
| table identity,prefix,nick,first,last,suffix,email,phone,managedBy,priority,bunit,category,watchlist,startDate,endDate,work_city,work_country,work_lat,work_long
| outputlookup corporate_identities.csv

The improvement I'd like to see would be on timing of when identities are modified, or some attribute to know if the identity is active or not. Would need to play with dedup and earliest=0.

Any suggestions/edits are welcomed!

dm1
Contributor

@McLeodyDay  Thanks for sharing this. Please do share if you have made any further improvements to this.

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...