Getting Data In

Need help for monitoring files

hrca33
Explorer

I am monitoring couple of files by specifying same source type.

Inputs.conf:-

[monitor://D:**\Installations*\Logs*\XYZ]
sourcetype = abc
index = ******
disabled = false
ignoreOlderThan = 2d

[monitor://D:**\Installations*\Logs*\fgh]
sourcetype = abc
index = ******
disabled = false
ignoreOlderThan = 2d

Now, I need to monitor the same path not individually mentioning the file names by using wildcards. Here I am using different source type.

[monitor://D:**\Installations*\Logs**.log]
sourcetype = xyz
index = ******
disabled = false
ignoreOlderThan = 2d

Is this works??

need help

Thanks

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi hrca33,
if your "XYZ" and "fhg" files have both ".log" extension, you could use
[monitor://D:\Installations\Logs**.log]

if they have different names and in the Log* directories there aren't other files with .log extension, you can use
[monitor://D:\Installations\Logs*]

if they have different names and in the directories there are other files easily identified (e.g.: .php), you can use
[monitor://D:
\Installations\Logs*]
blacklist = *.php

Bye.
Giuseppe

0 Karma

ddrillic
Ultra Champion

What about the index name? I see index = **. What's the intention?

0 Karma

hrca33
Explorer

Am using the same index.

0 Karma

ddrillic
Ultra Champion

Got it - does it work?

0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...