Splunk Search

How do I get Sampledata.zip indexed into Windows based Splunk?

melonman
Motivator

Hi

I was trying to go thru Splunk Tutorial, but now I am having trouble in getting sampledata.zip indexed using the host regex shown in the Splunk Tutorial page. My Splunk is on Windows.

Sampledata.zip:./([^/]+)/

http://docs.splunk.com/Documentation/Splunk/latest/User/Adddatatutorial

Is this regex good for Windows Splunk?

Thanks,

Tags (1)
0 Karma
1 Solution

melonman
Motivator

In 4.3.2, I confirmed this is working for both type of OS.

  • For Unix OS : Sampledata.zip:./([^/]+)/
  • For Windows : Sampledata.zip:.\\([^/]+)/

** The regex in Tutorial Doc is not working, be careful.

View solution in original post

0 Karma

melonman
Motivator

In 4.3.2, I confirmed this is working for both type of OS.

  • For Unix OS : Sampledata.zip:./([^/]+)/
  • For Windows : Sampledata.zip:.\\([^/]+)/

** The regex in Tutorial Doc is not working, be careful.

0 Karma

MarioM
Motivator

No as path where it will be extracted will be \ rather than / then try :

Sampledata\.zip:.\\([^\\]+)\\

melonman
Motivator

Well, the regex in tutorial is not working.

0 Karma

melonman
Motivator

I saw regex for windows in tutorial, thank you!

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