hi i am trying to send logs from backend applicati...
# support
j
hi i am trying to send logs from backend applications server to signoz server and i have opened port as per documentation 1.otel-collector: image: signoz/signoz-otel-collector:latest command: ["--config=/etc/otel-collector-config.yaml"] ports: - "2255:2255" and i have opened port in security group of ec2 instance after this i have restarted the container and restarted server too. 2. 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 when i am running this command in backend application server i am getting this error 3. 2024/03/19 120210 # logspout v3.2.14 by gliderlabs 2024/03/19 120210 # adapters: udp multiline raw syslog tcp tls 2024/03/19 120210 # options : 2024/03/19 120210 persist:/mnt/routes 2024/03/19 120210 !! dial tcp 10.11.217.2372255 connect: connection refused can i get any help over here thanks in advance
h
I think it's an acces issue with unix socket. Could you try it with the --userns=host flag like how it's explained in the docs?
j
@Harish i tried how u showed ubuntu@ip-10-11-179-214:~$ docker run --userns=host --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/20 095854 # logspout v3.2.14 by gliderlabs 2024/03/20 095854 # adapters: tcp tls udp multiline raw syslog 2024/03/20 095854 # options : 2024/03/20 095854 persist:/mnt/routes 2024/03/20 095854 !! dial tcp 10.11.217.2372255 connect: connection refused
h
Sorry not sure then 😕
j
thanks