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
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...