Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specifying a UNC-Path (windows network share) for the path-setting does not work #316

Open
s137 opened this issue Oct 18, 2022 · 0 comments
Labels

Comments

@s137
Copy link

s137 commented Oct 18, 2022

Logstash information:

Please include the following information:

  1. Logstash version: 8.4.3
  2. Logstash installation source: extracted from the official zip archive
  3. How is Logstash being run: windows service
  4. How was the Logstash Plugin installed: plugin was not installed seperately

JVM (e.g. java -version): Bundled JDK: OpenJDK 64-Bit Server VM 17.0.4+8 on 17.0.4+8 +indy +jit [x86_64-mswin32]

OS version (uname -a if on a Unix-like system): Windows 10

Description of the problem including expected versus actual behavior:

Specifying a UNC-Path (windows network share) for the "path"-Setting of the logstash file input plugin doesn't work. In most of the cases the pipeline just starts and does nothing, in a few cases an error is thrown, that absolute paths are not allowed, which makes sense, but I wanted to try anyway

Here's what I've tried so far:

path => ["\PC-NAME\share\file.txt"]
path => ["\\PC-NAME\share\file.txt"]
path => ["\\\\PC-NAME\\share\\file.txt"]
path => ["PC-NAME\share\file.txt"]
path => ["PC-NAME/share/file.txt"]
path => ["/PC-NAME/share/file.txt"]
path => ["//PC-NAME/share/file.txt"]
path => ["////PC-NAME//share//file.txt"]
path => ["file://///PC-NAME/share/file.txt"]

The last one works on windows also in the browser for example.

Steps to reproduce:

Just specify a UNC-Path in the path-setting of the file-input plugin with an empty filter and output to elasticsearch or stdout to check if it reads the file. It works perfetly for local paths like this: C:/share/file.txt but not for UNC-Paths.

see also here: https://discuss.elastic.co/t/how-to-specify-an-unc-path-network-share-for-logstash-file-input-plugin/316900)

@s137 s137 added the bug label Oct 18, 2022
@s137 s137 changed the title https://discuss.elastic.co/t/how-to-specify-an-unc-path-network-share-for-logstash-file-input-plugin/316900 Specifying a UNC-Path (windows network share) for the path-setting does not work Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant