Splunk Search

How do we enhance the dlp search ?

AL3Z
Builder

Hi,

I need a  help in enhancing the below search  if users triggers one or more of these policies:
Index=dlp sourcetype=dlpalerts

policy=" All Apps " OR policy=" Gmail" OR policy=" GDrive"

AND   ```one or more of these policies```

policy="All Policies" AND activity=upload

``` exclude all  instances  present in the lookup table instance.csv from this search ```

OR

policy="All Apps - Password Protected Files - Alert"

 ```exclude all  instances  present in instance.csv from this search ```

OR

alert_type=ews and alert_name=" uploads"

``` exclude all  instance_id  present in instance.csv from this search ```

|Stats earliest (_time) as incident_time,values(activity)as activity,values(instance_id)as instance_id ,values(alert_type) as alert_type,values(alert_name)as alert_name
By user,policy
Thanks

 

 

Labels (2)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Have you tried something like this?

index=dlp sourcetype=dlpalerts
  (policy=" All Apps " OR policy=" Gmail" OR policy=" GDrive")
  ((policy="All Policies" AND activity=upload) OR
   (policy="All Apps - Password Protected Files - Alert") OR
   (alert_type=ews alert_name=" uploads"))
 NOT [ | inputlookup instance.csv | fields instance_id ]
|Stats earliest (_time) as incident_time,values(activity)as activity,values(instance_id)as instance_id ,values(alert_type) as alert_type,values(alert_name)as alert_name
---
If this reply helps you, Karma would be appreciated.

AL3Z
Builder

@richgalloway 

Hi  Can you help me in writing the above search in drilldownsearch format  in  Adaptive Response Actions

+ Add New Response Action

Notable

while creating correlation search in ES ?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Adaptive Response Actions use the same SPL as other search queries.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...