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!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...