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!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

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