# Docker:LogStash Graylog

**URL:** <https://discuss.elastic.co/t/docker-logstash-graylog/243599>\
**Category:** Logstash\
**Tags:** docker\
**Created:** [August 3, 2020, 3:26pm UTC](https://discuss.elastic.co/t/docker-logstash-graylog/243599 "2020-08-03T15:26:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DonPerinon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/donperinon/32/102160_2.png) [@DonPerinon](https://discuss.elastic.co/u/DonPerinon)\
**Post date:** [August 3, 2020, 3:26pm UTC](https://discuss.elastic.co/t/docker-logstash-graylog/243599/1 "2020-08-03T15:26:02Z")

</div>

Hi,  
can anyone help me with my initial logstash+graylog configuration?

I have 4 docker container in total:  
Graylog+elasticsearch+mongo  
Logstash

So my idea was that I will send all my logs (nxlog inputs) to the Logstash(parser/pipeline) and then results will be sent to Graylog.  
nxlog config

 Module om\_tcp Host 10.50.12.104 Port 5044 OutputType to\_json(); Logstash container conf:` docker run --rm -it -d --user=root --name logstash -p 9600:9600 -p 5044:5044 --link graylogtest:graylog -v C:\tet\:/Config docker.elastic.co/logstash/logstash:7.8.1 logstash -f /Config/logstash.conf`

logstash.conf:

input {  
tcp {  
codec =\> json\_lines { charset =\> CP1252 }  
port =\> "5044"  
tags =\> ["tcpjson"]  
}  
}  
output {  
stdout { codec =\> rubydebug }  
gelf {  
host =\> 'graylog'  
port =\> 5414  
}  
}

Sending inputs directly from the nxlog to the Graylog works perfectly.  
But they are two main problems with the logstash:

1. Gelf as output is not in the default package.
2. I do not receive any inputs...

Thank you for any advice.

---

<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:** [August 31, 2020, 3:26pm UTC](https://discuss.elastic.co/t/docker-logstash-graylog/243599/2 "2020-08-31T15:26:06Z")

</div>

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