gliderlabs / logspout

Log routing for Docker container logs
MIT License
4.66k stars 680 forks source link

Unable to get logspout run #524

Open upasanaeverestek opened 1 year ago

upasanaeverestek commented 1 year ago

When I am trying to run image locally, I am getting, upasana@upasana-ghase:~/PhpstrormProjects/logspout$ docker logs -f 2d3b1c4a308f 2023/04/17 11:33:35 setting allowTTY to: false 2023/04/17 11:33:35 # logspout v3.2.14 by gliderlabs 2023/04/17 11:33:35 # adapters: raw syslog tcp tls udp slack multiline 2023/04/17 11:33:35 # options : 2023/04/17 11:33:35 debug:true 2023/04/17 11:33:35 persist:/mnt/routes 2023/04/17 11:33:35 # jobs : http[health,logs,routes]:80 pump routes 2023/04/17 11:33:35 # routes : none 2023/04/17 11:33:35 pump.Run(): using inactivity timeout: 0s 2023/04/17 11:33:35 pump.pumpLogs(): 2d3b1c4a308f ignored: tty enabled 2023/04/17 11:33:54 pump.Run() event: 2d3b1c4a308f top 2023/04/17 11:34:34 pump.Run() event: 2d3b1c4a308f top 2023/04/17 11:35:14 pump.Run() event: 2d3b1c4a308f top 2023/04/17 11:35:54 pump.Run() event: 2d3b1c4a308f top 2023/04/17 11:36:34 pump.Run() event: 2d3b1c4a308f top 2023/04/17 11:37:14 pump.Run() event: 2d3b1c4a308f top 2023/04/17 11:37:54 pump.Run() event: 2d3b1c4a308f top 2023/04/17 11:38:34 pump.Run() event: 2d3b1c4a308f top

But when I am trying to run same image in AWS Fargate, my logs are like,

2023-04-17T15:47:30.025+05:30Copy2023/04/17 10:17:30 # routes : 2023/04/17 10:17:30 # routes :
  2023-04-17T15:47:30.025+05:30Copy# ADAPTER ADDRESS CONTAINERS SOURCES OPTIONS # ADAPTER ADDRESS CONTAINERS SOURCES OPTIONS
  2023-04-17T15:47:30.025+05:30Copy# slack hooks.slack.com map[] # slack hooks.slack.com map[]
  2023-04-17T15:47:30.026+05:30Copy2023/04/17 10:17:30 pump ended: cannot connect to Docker endpoint 2023/04/17 10:17:30 pump ended: cannot connect to Docker endpoint

Any idea how to resolve it?