Dashboards & Visualizations

How to stats count email from each domain destination?

chakuttha
Explorer

Hi All,

If i would like to stats count by destination email  and show result by sum each domain (gmail , hotmail )

please help to recommend

 

Best Regards,

CR

 

Labels (1)
Tags (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @chakuttha,

Yout question is just a little vague.

if you could share some sample of your logs I could help you better.

Anyway, you have to run something like this:

<your_search>
| rex "@(?<domain>[^ ]+)"
| stats count BY domain

I'm obviously not sure about regex because I didn't see your logs.

Ciao.

Giuseppe

0 Karma

chakuttha
Explorer

@gcusello 
from log i will see destination email  

Example

example@gmail.com

example2@gmail.com

example3@gmail.com

example4@hotmail.com

 

from log above i would like result from stats query about

dest_email          count
gmail                         3

hotmail                    1

 

Thank you

0 Karma
Get Updates on the Splunk Community!

Best Strategies to Optimize Observability Costs

 Join us on Tuesday, May 6, 2025, at 11 AM PDT / 2 PM EDT for an insightful session on optimizing ...

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...