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!

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...

Index This | When is October more than just the tenth month?

October 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...