Splunk Search

Wildcard indexing of subfolders on Windows PC - Pulling my hair out!

j666gak
Communicator

Ok, so for a couple of hours now I have trying to index some log files and it won't do it!

I need to index log files contained within logs directory, and any of its sub-directories (see example below). In "Data Inputs > Files & Directories" it shows that it can see 7 files, however it only ever indexes one file located in the logs directory.

C:\ProgramData\Bitdefender\Desktop\Profiles\Logs\da29f7c8-23b1-4974-8d11-209959ac694b\1362699141_1_01.xml

INPUTS.CONF
[monitor://C:\ProgramData\Bitdefender\Desktop\Profiles\Logs]
disabled = false
followTail = 0
recursive = true
sourcetype = BitDefender Scan Log

I have tired numerous different variations of adding the data, and also variations on the inputs.conf. I am really at a loss, can anybody offer any advice at all please.

Regards

Tags (2)
0 Karma

Runals
Motivator

I'm confused on something - is that one directory name? Couple things to check if so

  1. Make sure there are 2 colons " : " between monitor and the first forward slash.
  2. Put a backslash between the "C:" and "Program
  3. Its my experience that the path name is case sensitive so make sure spelling and case is correct
  4. Shouldn't need to end with a wild card even if you are getting sub directories
  5. IF each capitol letter is a directory name make sure you put backslashes as appropriate
0 Karma

patrick_nobles
New Member

In your inputs.conf try the following:

[monitor://C:ProgramDataBitdefenderDesktopProfilesLogs*...*]

0 Karma

j666gak
Communicator

Hi, I tried that but no jot : (

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...