Splunk Search

How can I extract a full list of usernames and associated emails from Splunk?

SteveHaleyClark
New Member

I'm trying to determine how I can export a full list of usernames and email addresses - can anyone advise?

0 Karma

lguinn2
Legend

It would be really helpful to include more information in your question. For example, where are the user names and email addresses? What format do you want to export them in? Does it matter where the file goes, or does it need to show up on your laptop?
What are the field names?

But I am going to assume that you want to create a CSV file based on the results of a search, and that you want the CSV file to be exported to your laptop. Try this:

yoursearchhere
| table usernames email
| dedup usernames email
| sort usernames

When the search finishes, if it looks like what you want, click the Export button (just below the timerange picker, it is a small down-arrow). Choose CSV for the format and give the file a name. Click the green Export button and so on.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...