Getting Data In

How to edit my wildcard syntax to monitor logs from a file path that contains the current date?

marellasunil
Communicator

I am trying to extract a log file using below configuration in inputs.conf

C:/logs/28062016/*.log

28062016 is the current date.

I have been trying the below paths, non of these are working.

C:/logs/*/*.log
C:/logs/.../*.log

Can anyone help me?

0 Karma
1 Solution

ddrillic
Ultra Champion

C:/logs/.../*.log should work ... or maybe C:\logs\...\*.log

The following speaks about it - Specify input paths with wildcards

It says -

-- The ellipsis wildcard recurses through directories and any number of levels of subdirectories to find matches.
If you specify a folder separator ...

/foo/.../bar.log matches the files /foo/1/bar.log, /foo/2/bar.log...

View solution in original post

ddrillic
Ultra Champion

C:/logs/.../*.log should work ... or maybe C:\logs\...\*.log

The following speaks about it - Specify input paths with wildcards

It says -

-- The ellipsis wildcard recurses through directories and any number of levels of subdirectories to find matches.
If you specify a folder separator ...

/foo/.../bar.log matches the files /foo/1/bar.log, /foo/2/bar.log...

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 ...