# Logstash needs tmp folder to be mounted with exec, can this be done through CFT

**URL:** <https://discuss.elastic.co/t/logstash-needs-tmp-folder-to-be-mounted-with-exec-can-this-be-done-through-cft/178641>\
**Category:** Logstash\
**Created:** [April 26, 2019, 12:04pm UTC](https://discuss.elastic.co/t/logstash-needs-tmp-folder-to-be-mounted-with-exec-can-this-be-done-through-cft/178641 "2019-04-26T12:04:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mick\_O\_Gorman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mick_o_gorman/32/42021_2.png) [@Mick\_O\_Gorman](https://discuss.elastic.co/u/Mick_O_Gorman)\
**Post date:** [April 26, 2019, 12:04pm UTC](https://discuss.elastic.co/t/logstash-needs-tmp-folder-to-be-mounted-with-exec-can-this-be-done-through-cft/178641/1 "2019-04-26T12:04:40Z")

</div>

Hi,  
I am launching an ec2 through cloudformation template and installing logstash on it, one thing i have found is that unless i run sudo mount -o remount,exec /tmp i cannot get logstash working..([https://github.com/elastic/logstash/issues/9288](https://github.com/elastic/logstash/issues/9288) someone else has logged that issue)

I know this directory can be changed in jvm.options, but it is very awkward for me to edit this file in my cloudformation template, I have 2 questions..

1. if i change the folder to another in jvm.options what folder would you suggest?
2. Is there a way to mount the tmp folder as exec through cft, i have ran the command in cft but it doesn't seem to work unless i ssh in and run it from there.

Thanks

---

<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:** [May 24, 2019, 12:04pm UTC](https://discuss.elastic.co/t/logstash-needs-tmp-folder-to-be-mounted-with-exec-can-this-be-done-through-cft/178641/2 "2019-05-24T12:04:41Z")

</div>

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