[GH-ISSUE #264] docker logs input #214

Open
opened 2026-02-26 05:31:37 +03:00 by kerem · 0 comments
Owner

Originally created by @vanodevium on GitHub (Jun 7, 2022).
Original GitHub issue: https://github.com/NarrativeScience-old/log.io/issues/264

Hello!

How do you like the idea of making an input that will read docker container logs using a docker socket?

It could be taken out into a separate package (like log.io-docker-input) and there was no need to configure separate inputs, but simply see a list of all containers and logs in them.

Next is docker-compose example:

  log.io:
    build:
      context: ./docker/log.io
    restart: unless-stopped
    container_name: log.io
    user: "1000:1000"
    ports:
      - "6688:6688"
      - "6689:6689"
    command: "log.io-server"
    
  log.io-docker-input:
    build:
      context: ./docker/log.io-docker-input
    restart: unless-stopped
    container_name: log.io-docker-input
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    command: "log.io-docker-input --server=log.io:6689"
Originally created by @vanodevium on GitHub (Jun 7, 2022). Original GitHub issue: https://github.com/NarrativeScience-old/log.io/issues/264 Hello! How do you like the idea of making an input that will read docker container logs using a docker socket? It could be taken out into a separate package (like `log.io-docker-input`) and there was no need to configure separate inputs, but simply see a list of all containers and logs in them. Next is docker-compose example: ```yml log.io: build: context: ./docker/log.io restart: unless-stopped container_name: log.io user: "1000:1000" ports: - "6688:6688" - "6689:6689" command: "log.io-server" log.io-docker-input: build: context: ./docker/log.io-docker-input restart: unless-stopped container_name: log.io-docker-input volumes: - /var/run/docker.sock:/var/run/docker.sock command: "log.io-docker-input --server=log.io:6689" ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/log.io-NarrativeScience-old#214
No description provided.