Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Windows TD Agent in_tail Wildcards #183

Open
kyleboyer-optum opened this issue Aug 30, 2018 · 1 comment
Open

Windows TD Agent in_tail Wildcards #183

kyleboyer-optum opened this issue Aug 30, 2018 · 1 comment

Comments

@kyleboyer-optum
Copy link

kyleboyer-optum commented Aug 30, 2018

Hey there,

I am trying to tail multiple files in a given directory on a Windows server, yet the * wildcard is not working. I have tried all sorts of permutations with backslashes and the windows directory separators. Is there something I am overlooking? Here is my config:

<source>
  @type tail
  path C:\logs\*
  refresh_interval 30
  pos_file "C:\logs\log_db.db"
  tag "tail"
  format none
</source>
<match **>
  @type stdout
</match>

Path Permutations Tried(With and without quotes in the config):

C:\logs\*
C:\logs\\*
C:\logs\\\*
C:\\logs\\*
C:\\logs\\*
C:\\logs\\\*
C:\\logs\\\\*
C:\logs\**
C:\logs\\**
C:\logs\\\**
C:\\logs\\**
C:\\logs\\**
C:\\logs\\\**
C:\\logs\\\\**
C:\logs\\*\*
C:\logs\\\*\\*
C:\\logs\\\*\*
C:\\logs\\\\*\\*

Thanks,
Kyle

@smarangon-betclic
Copy link

Hi,

If someone read this post again, here is the answer => wildcard-pattern-in-path-doesnt-work-on-windows-why
"Backslash() with * doesn't work on Windows by internal limitation. To avoid this problm, use slash style instead."

Regards,
Sylvain.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants