Splunk Enterprise Security

How to trim the results for attachment?

NDabhi21
Explorer

Hi Team,

I would like to drop/trim .png and .jpg files in the output result.

will be appreciated if you could help with regex or any other idea and solution.

Labels (1)
Tags (1)
0 Karma

woodcock
Esteemed Legend

Add this:

... | where not match(file, "\.(jpg|png)$")

0 Karma

NDabhi21
Explorer

Hi Woodcock,

 

This is no working , command syntax is not accepted  

0 Karma

woodcock
Esteemed Legend

Works for me:

|makeresults
| eval file="foo.exe"
| where not match(file, "\.(jpg|png)$")

0 Karma
Get Updates on the Splunk Community!

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

New Release | Splunk Cloud Platform 10.1.2507

Hello Splunk Community!We are thrilled to announce the General Availability of Splunk Cloud Platform 10.1.2507 ...

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

🗣 You Spoke, We Listened  Audit Trail v2 wasn’t written in isolation—it was shaped by your voices.  In ...