i need to send docker logs to signoz and signoz is...
# support
j
i need to send docker logs to signoz and signoz is running on different server according to documentation ... otel-collector: image: signoz/signoz-otel-collector:latest command: ["--config=/etc/otel-collector-config.yaml"] ports: - "2255:2255" i have made these changes in the signoz server and restarted the otel-collector container now where to run this command and what will be my host-ip suppose x-ip is my docker containers server and y-ip is my signoz server ip docker run --net=host --rm --name="logspout" \ --volume=/var/run/docker.sock:/var/run/docker.sock \ gliderlabs/logspout \ syslog+tcp//<host>2255 can i get any help thanks in advance .
s
Making changes in signoz server won't be helpful if the source logs are from different servers. The host address should be x
j
im trying to run in backend applications server only i am getting this ubuntu@ip-10-11-179-214:~/telemetry$ docker run --net=host --rm --name="logspout" \ --volume=/var/run/docker.sock:/var/run/docker.sock \ gliderlabs/logspout \ syslog+tcp://10.11.217.237:2255 Unable to find image 'gliderlabs/logspout:latest' locally latest: Pulling from gliderlabs/logspout 8c28cc2212ff: Pull complete 0055a387c331: Pull complete bd6ee65f3414: Pull complete Digest: sha256:2d81c026e11ac67f7887029dbfd7d36ee986d946066b45c1dabd966278eb5681 Status: Downloaded newer image for gliderlabs/logspout:latest 2024/03/12 093922 # logspout v3.2.14 by gliderlabs 2024/03/12 093922 # adapters: raw syslog tcp tls udp multiline 2024/03/12 093922 # options : 2024/03/12 093922 persist:/mnt/routes 2024/03/12 093922 !! dial tcp 10.11.217.2372255 connect: connection refused my signoz ip is this : 10.11.217.237 and im trying to run this container in another server where my applications are running as docker containers. i have opened port all tcp ports and i have allowed all traffic and i tried it but still im getting this issue what is the reason ? @Srikanth Chekuri
s
It's network issue but you are saying you opened all tcp ports. Please make sure they are reachable from the application server.