how can i show docker container log? any conflagra...
# support
k
how can i show docker container log? any conflagration is available?
p
@Kasim Ali you should be able to. Have a look at - https://signoz.io/docs/userguide/collect_docker_logs/
k
I try this but can't receive docker container log.
p
what was the issue you were facing?
k
i can receive only application start and stop log
p
Can you share your opnetelemetry collector configuration?
k
Copy code
otel-collector:
  container_name: ######
  image: signoz/signoz-otel-collector:0.63.0
  command: [ "--config=/etc/otel-collector-config.yaml" ]
  ports:
    - "4317:4317"     # OTLP gRPC receiver
    - "4318:4318"     # OTLP HTTP receiver
    - "2255:2255"
  volumes:
    - ./commons/opentelemetry/otel-collector-config.yaml:/etc/otel-collector-config.yaml
  environment:
    - OTEL_RESOURCE_ATTRIBUTES=host.name=signoz-host,os.type=linux
  restart: on-failure
  depends_on:
    clickhouse:
      condition: service_healthy
  networks:
    - backend
aslo getting this
n
@Kasim Ali start by checking if your applications are correctly printing logs to the console using the docker log tail command. If yes then can you go into the
/var/lib/docker/containers/
folder and check if it is getting written to file properly. The file will be
<container_id>/<container_id>.log
which will be present inside the above folder.
k
can we have have huddle because i cant know about you explained as above?