# No such file or directory - tmp

**URL:** <https://discuss.elastic.co/t/no-such-file-or-directory-tmp/25835>\
**Category:** Logstash\
**Created:** [July 17, 2015, 9:35pm UTC](https://discuss.elastic.co/t/no-such-file-or-directory-tmp/25835 "2015-07-17T21:35:44Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![vilas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vilas/32/613_2.png) [@vilas](https://discuss.elastic.co/u/vilas)\
**Post date:** [July 17, 2015, 9:35pm UTC](https://discuss.elastic.co/t/no-such-file-or-directory-tmp/25835/1 "2015-07-17T21:35:44Z")

</div>

Hi,

Logstash is installed in read & execute only folder.  
I am trying to execute logstash with elasticsearch input plugin.  
My configuration:

```auto
input {
        elasticsearch {
                host => "xx.xx.xx.xx"
                index => "logstash-test-2015.07.*"
        }
}

filter {
        mutate {
                replace => ["type", "log.%{type}"]
        }
}

output {
        elasticsearch {
                host => "localhost"
                protocol => "http"
                index => "logstash-%{+YYYY.MM.dd}"
        }
}

```

But I get an error:

```auto
No such file or directory - No such file or directory - /.../tmp

```

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 18, 2015, 2:48am UTC](https://discuss.elastic.co/t/no-such-file-or-directory-tmp/25835/2 "2015-07-18T02:48:55Z")

</div>

Is there any other config files that contain that path?

---

<div class="post-metadata">

**Author:** ![vilas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vilas/32/613_2.png) [@vilas](https://discuss.elastic.co/u/vilas)\
**Post date:** [July 20, 2015, 5:29pm UTC](https://discuss.elastic.co/t/no-such-file-or-directory-tmp/25835/3 "2015-07-20T17:29:54Z")

</div>

@warkolm  
I don't think so.  
But how does that affect?

Also I have one query? Do we need write permissions for folder in which Logstash is running?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 20, 2015, 5:51pm UTC](https://discuss.elastic.co/t/no-such-file-or-directory-tmp/25835/4 "2015-07-20T17:51:08Z")

</div>

> I don't think so.  
> But how does that affect?

Well, it's a bogus path and it's coming from _somewhere_. Are there really three periods in it? Can you give more context from the log? Anything interesting if you turn up the log level with `--verbose` or `--debug`?

> Also I have one query? Do we need write permissions for folder in which Logstash is running?

No.

---

<div class="post-metadata">

**Author:** ![vilas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vilas/32/613_2.png) [@vilas](https://discuss.elastic.co/u/vilas)\
**Post date:** [July 20, 2015, 6:09pm UTC](https://discuss.elastic.co/t/no-such-file-or-directory-tmp/25835/5 "2015-07-20T18:09:09Z")

</div>

Oh Sorry. that /.../ is a long path on my server. I just replaced it with three periods.  
But the point is, it raised an error saying that this tmp folder doesn't exist.

Also, when transferring data from one elasticsearch to another, I tried above logstash configuration on destination server and got the above error. [Logstash folder on destination, does not have write permissions]  
But whereas, when I tried to run logstash on host (by swapping the input and output), then it works.

Do you see any issue here?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 20, 2015, 9:31pm UTC](https://discuss.elastic.co/t/no-such-file-or-directory-tmp/25835/6 "2015-07-20T21:31:58Z")

</div>

> Also, when transferring data from one elasticsearch to another

What do you mean by this?

Again, is there anything interesting in the logs if you turn up the log level with `--verbose` or `--debug`?

---

<div class="post-metadata">

**Author:** ![vilas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vilas/32/613_2.png) [@vilas](https://discuss.elastic.co/u/vilas)\
**Post date:** [July 20, 2015, 9:35pm UTC](https://discuss.elastic.co/t/no-such-file-or-directory-tmp/25835/7 "2015-07-20T21:35:28Z")

</div>

> [@magnusbaeck](#):
>
> Also, when transferring data from one elasticsearch to another
> 
> What do you mean by this?

I mean from one elasticsearch cluster to another new cluster.

> [@magnusbaeck](#):
>
> Again, is there anything interesting in the logs if you turn up the log level with --verbose or --debug?

I am yet to try that. Will post once I do that.

---

<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:** [July 6, 2017, 5:34am UTC](https://discuss.elastic.co/t/no-such-file-or-directory-tmp/25835/8 "2017-07-06T05:34:10Z")

</div>


