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!

.conf24 | Registration Open!

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

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...