Splunk Search

How to extract and count email address?

stick-o
New Member

Hello. How to extract and count personal email address? Say the destination email field (d-email) contains email as below:

abc.work-email.com
cef.work-email.com
a.gmail.com
b.hotmail.com

I want to see how many email was sent to Gmail/Hotmail or any personal account.

 

 

Labels (1)
0 Karma

yuanliu
SplunkTrust
SplunkTrust

How about excluding work-email.com?

| where NOT match('d-email', "\.work-email\.com$")
| stats count

 

Tags (1)
0 Karma

stik-0
New Member

there will be thousands of business email domains. Will be difficult this way. 

0 Karma

stik-0
New Member
Tags (1)
0 Karma
Get Updates on the Splunk Community!

Splunk Observability Cloud's AI Assistant in Action Series: Auditing Compliance and ...

This is the third post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

What You Read The Most: Splunk Lantern’s Most Popular Articles!

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...