# Need help on logstash running in docker container

**URL:** <https://discuss.elastic.co/t/need-help-on-logstash-running-in-docker-container/182219>\
**Category:** Logstash\
**Created:** [May 22, 2019, 12:06pm UTC](https://discuss.elastic.co/t/need-help-on-logstash-running-in-docker-container/182219 "2019-05-22T12:06:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blason](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/blason/32/42284_2.png) [@Blason](https://discuss.elastic.co/u/Blason)\
**Post date:** [May 22, 2019, 12:06pm UTC](https://discuss.elastic.co/t/need-help-on-logstash-running-in-docker-container/182219/1 "2019-05-22T12:06:28Z")

</div>

Hi Team,

I have queries about logstash docker and would really appreciate if someone can help me on this?

1. I have logstash running as docker and I need output writtten in CSV format Host server /var/ partition no in docker container.
2. I did write output for CSV but output file is getting generated in the docker container.
3. Plus I need certain fields only in the output not the entire message, how do I do that?
4. As in my messages contain src\_ip, dst\_ip port etc.; I just need src\_ip to be extracted and wondering if I could do this with logstash?

---

<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:** [June 19, 2019, 12:06pm UTC](https://discuss.elastic.co/t/need-help-on-logstash-running-in-docker-container/182219/2 "2019-06-19T12:06:36Z")

</div>

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