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!

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 ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...