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
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...