# Logstash running in openshift is not sending output to NFS

**URL:** <https://discuss.elastic.co/t/logstash-running-in-openshift-is-not-sending-output-to-nfs/294242>\
**Category:** Logstash\
**Tags:** docker\
**Created:** [January 13, 2022, 8:11am UTC](https://discuss.elastic.co/t/logstash-running-in-openshift-is-not-sending-output-to-nfs/294242 "2022-01-13T08:11:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ravi\_Sehgal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ravi_sehgal/32/100256_2.png) [@Ravi\_Sehgal](https://discuss.elastic.co/u/Ravi_Sehgal)\
**Post date:** [January 13, 2022, 8:11am UTC](https://discuss.elastic.co/t/logstash-running-in-openshift-is-not-sending-output-to-nfs/294242/1 "2022-01-13T08:11:41Z")

</div>

I have a requirement to send docker container logs to NFS drive. Filebeat installed as daemonset sends logs to single logstash pod which shall write them to NFS.  
Logstatsh configuration look something like below

```auto
output{
    file{
      path => "/home/user/ps_%{+YYYYMMdd}.txt"
    }  
}

```

where /home/user is the network drive mounted in openshift VMs  
POD comes up fine but it creates log file in logstash container and not in the NFS drive.  
Please suggest the correct configuration

---

<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:** [February 10, 2022, 8:12am UTC](https://discuss.elastic.co/t/logstash-running-in-openshift-is-not-sending-output-to-nfs/294242/2 "2022-02-10T08:12:25Z")

</div>

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