# Running logstash in docker, not outputting to file or console :

**URL:** <https://discuss.elastic.co/t/running-logstash-in-docker-not-outputting-to-file-or-console/50400>\
**Category:** Logstash\
**Created:** [May 19, 2016, 5:02am UTC](https://discuss.elastic.co/t/running-logstash-in-docker-not-outputting-to-file-or-console/50400 "2016-05-19T05:02:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergey\_Manukyan](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@Sergey\_Manukyan](https://discuss.elastic.co/u/Sergey_Manukyan)\
**Post date:** [May 19, 2016, 5:02am UTC](https://discuss.elastic.co/t/running-logstash-in-docker-not-outputting-to-file-or-console/50400/1 "2016-05-19T05:02:43Z")

</div>

Running logstash 2.3 with the following conf file :

* * *

input {  
file {  
path =\> "/var/log/logstash/access\_nginx.log"  
codec =\> "line"  
sincedb\_path =\> "null"  
start\_position =\> "beginning"  
}  
}

filter {  
grok {  
match =\> ["message" , "%{IPORHOST:http\_host} - %{USER:http\_user} [%{HTTPDATE:http\_timestamp}]"]  
}  
}

output {  
file {  
path =\> "/var/log/logstash/access\_nginx\_parsed.json"  
}  
stdout { codec =\> json }  
}

* * *

Any idea what might be causing it? The folder is writable from the docker container. Thank you.

---

<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:** [May 19, 2016, 5:37am UTC](https://discuss.elastic.co/t/running-logstash-in-docker-not-outputting-to-file-or-console/50400/2 "2016-05-19T05:37:28Z")

</div>

> sincedb\_path =\> "null"

Do you really want Logstash to use a file named null as the sincedb? Perhaps you meant /dev/null, i.e. effectively disabling sincedb?

---

<div class="post-metadata">

**Author:** ![Sergey\_Manukyan](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@Sergey\_Manukyan](https://discuss.elastic.co/u/Sergey_Manukyan)\
**Post date:** [May 19, 2016, 1:30pm UTC](https://discuss.elastic.co/t/running-logstash-in-docker-not-outputting-to-file-or-console/50400/3 "2016-05-19T13:30:28Z")

</div>

Yes, I do wanted to disable the sincedb. After applying your suggestion I still face the same issue.

Please see here my debug logs file :  
[https://drive.google.com/folderview?id=0B4gW16R\_bM2Iamk5VW9GQ1Bsb0U&usp=sharing](https://drive.google.com/folderview?id=0B4gW16R_bM2Iamk5VW9GQ1Bsb0U&usp=sharing)

---

<div class="post-metadata">

**Author:** ![Sergey\_Manukyan](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@Sergey\_Manukyan](https://discuss.elastic.co/u/Sergey_Manukyan)\
**Post date:** [May 23, 2016, 7:18pm UTC](https://discuss.elastic.co/t/running-logstash-in-docker-not-outputting-to-file-or-console/50400/4 "2016-05-23T19:18:10Z")

</div>

Ok, have uploaded a test project exhibiting the issue to github here :

> **[smanukyan/test-logstash](https://github.com/smanukyan/test-logstash)**
>
> Contribute to test-logstash development by creating an account on GitHub.

There are 3 tests there

1. stdio to stdout - which is working fine whatever is typed on console gets processed and output on console using rubydebug formatter.

To run it do the following :

```
git clone https://github.com/smanukyan/test-logstash.git
cd config-dir
./run.sh stdin-to-stdout

```

1. file to stdout - the content from input.log to be processed by logstash and output to stdout :

./run.sh file-to-stdout  
NOT WORKING! produces no output.

1. file to file - the content from input.log to be processed by logstash and output to file :

./run.sh file-to-file  
NOT WORKING! no output produced.

Please run the examples on your machine and let me know if you can think of what might be causing it.

Thank you!

---

<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:** [May 24, 2016, 6:05am UTC](https://discuss.elastic.co/t/running-logstash-in-docker-not-outputting-to-file-or-console/50400/5 "2016-05-24T06:05:35Z")

</div>

I can reproduce the problem but I have no idea what's going on.

---

<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, 4:56am UTC](https://discuss.elastic.co/t/running-logstash-in-docker-not-outputting-to-file-or-console/50400/6 "2017-07-06T04:56:33Z")

</div>


