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!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...