# How to specify an UNC-Path (network share) for logstash file input plugin

**URL:** https://discuss.elastic.co/t/how-to-specify-an-unc-path-network-share-for-logstash-file-input-plugin/316900
**Category:** Logstash
**Tags:** windows
**Created:** [October 18, 2022, 1:29pm UTC](https://discuss.elastic.co/t/how-to-specify-an-unc-path-network-share-for-logstash-file-input-plugin/316900 "2022-10-18T13:29:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![simon137](https://avatars.discourse-cdn.com/v4/letter/s/71e660/32.png) [@simon137](https://discuss.elastic.co/u/simon137)
#### Post date: [October 18, 2022, 1:29pm UTC](https://discuss.elastic.co/t/how-to-specify-an-unc-path-network-share-for-logstash-file-input-plugin/316900/1 "2022-10-18T13:29:16Z")

</div>

Hello,

I tried specifying a UNC-Path for the "path"-Setting of the logstash file input plugin and unfortunately it doesn't work.

Is this a known issue or does someone here know how to get this to work on a windows maschine?

Here's what I've tried so far:

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

Thanks in advance for your help.  
Simon

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [November 15, 2022, 1:30pm UTC](https://discuss.elastic.co/t/how-to-specify-an-unc-path-network-share-for-logstash-file-input-plugin/316900/2 "2022-11-15T13:30:02Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
