Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker logs input #264

Open
vanodevium opened this issue Jun 7, 2022 · 0 comments
Open

docker logs input #264

vanodevium opened this issue Jun 7, 2022 · 0 comments

Comments

@vanodevium
Copy link

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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant