Splunk Enterprise Security

SPL for Correlation search in enterprise security?

vikram1583
Explorer

index=email
| transaction mid icid
| stats count(recipient) as receipent_count by sender
| where receipent_count>100

I am using this in a correlation search but it is returning only sender information in fields but I want src_ip ,dest_ip and src_user can some one help me in modifying the search

0 Karma
1 Solution

woodcock
Esteemed Legend

Like this:

index=email
| transaction mid icid
| stats count(recipient) as recipient_count BY sender src_ip dest_ip src_user
| where recipient_count>100

View solution in original post

0 Karma

woodcock
Esteemed Legend

Like this:

index=email
| transaction mid icid
| stats count(recipient) as recipient_count BY sender src_ip dest_ip src_user
| where recipient_count>100
0 Karma

ashajambagi
Communicator

Hi @vikram1583 ,

Stats command filter out the fields include the required fields in the stats or you can try using eventstats

index=email 
| transaction mid icid 
| stats count(recipient) as receipent_count values(src_ip) values(dest_ip) values(user) by sender 
| where receipent_count>100
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 ...