Graylog in Ranhcer Server

Hi All,

I am new to Graylog and Rancher server.

I have gone through https://www.graylog.org/blog/28-centralized-docker-container-logging-with-native-graylog-integration
for collecting all logs from docker to graylog.
I am using Rancher server(Cattle) for managing docker containers.

  1. I have deployed graylog container on a host in port 9000.
    2)I created a GELF-UDP input in graylog server listening on port 5000

  2. Next I created a container in Rancher server with log driver gelf and log options as shown in below image.

However after creating container, I am not seeing any logs to graylog.

Am I missing anything. Kindly let me know.

Thanks in advance,
Vishnu

Please post all relevant configuration information.

Hi @jochen,

This is the input I created in graylog.

I am new to graylog and hence can you clarify whether do you want logs or any result from command execution?

Yes, I want all of them.

How do I get them.
Commands please.

I don’t know how you’ve set up Graylog in the first place and I’m not familiar with Rancher, so you’ll have to find these things yourself.

Sure. Let me check.
I setup graylog as a container.
I pulled graylog docker image and deployed in rancher https://hub.docker.com/r/graylog2/allinone/
I am accessing graylog on port 9000.
I will dig and try to find logs.

There is a big deprecation notice:

Deprecation notice

This image is deprecated, use graylog/graylog instead.

1 Like

Hi Jochen,

I overlooked the deprecation notice. I was following a tutorial and thought the old versions will still work. :slight_smile:

I installed the new image from https://hub.docker.com/r/graylog/graylog/ and got it working without any issues.
Thank you for your assistance.

Thanks,
Vishnu

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