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!

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to Officially Supported Splunk ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI! Discover how Splunk’s agentic AI ...