Splunk Search

Files with Multiple extensions

Bellthazor
Engager

I am a Splunk newbie and need to be able to search for files with multiple extensions (example: filename.ps1.doc)  and am not sure how to query this...Has anyone run across how I would go about this?  

Thanks in advance for any assistance!

Labels (1)
Tags (1)
0 Karma
1 Solution

scelikok
SplunkTrust
SplunkTrust

Hi @Bellthazor,

Please try below;

| eval ext_count=mvcount(split(filename,"."))
| where ext_count>2
If this reply helps you an upvote and "Accept as Solution" is appreciated.

View solution in original post

0 Karma

scelikok
SplunkTrust
SplunkTrust

Hi @Bellthazor,

Please try below;

| eval ext_count=mvcount(split(filename,"."))
| where ext_count>2
If this reply helps you an upvote and "Accept as Solution" is appreciated.
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Perhaps the regex command will help.

... | regex field=filename "\.\w+\.\w+
"
---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...