Giter Site home page Giter Site logo

solarwinds / docker-plugin-papertrail Goto Github PK

View Code? Open in Web Editor NEW
11.0 8.0 3.0 8.95 MB

A Docker plugin for Papertrail to send and read container logs. As a SolarWinds Innovation Project, this adapter is supported in a best-effort fashion.

Home Page: https://hub.docker.com/r/solarwinds/papertrail-plugin/

License: Apache License 2.0

Shell 16.86% Go 83.14%
solarwinds-innovation docker-plugin papertrail docker-logs log-driver

docker-plugin-papertrail's People

Contributors

farzadb82 avatar girishranganathan avatar leecalcote avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-plugin-papertrail's Issues

Unable to install latest version

When installing the latest version using docker plugin install, I get the following error:

Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"/usr/bin/docker-papertrail-log-driver\": stat /usr/bin/docker-papertrail-log-driver: no such file or directory": unknown

I am able to install version e6c7852. Looking at the plugin history, there's a significant size difference between this version and the most recent version.

Swarm mode -- sender based on hostname

It looks like the log sender will be the node hostname at least in the case where the container is running as a Swarm service which is a bit problematic when you want to separate the systems per container. I would expect the logging driver to use the container hostname which would mean that each service would be counted as a separate sender but that does not seem to be the case.

Steps to reproduce are fairly simple start 2 separate swarm services with the same papertrail url and token.

It doesn't work in swarm when i use compose to deploy

Below I have presented compose file which was used for deploy.
I have used docker stack deploy --compose-file docker-compose.yml test comamnd
When I run container it work fine but with swarm it doesn't.

version: "3.1"

services:
service:
image: alpine
command: /bin/sh -c "while true; do echo 'Hello world'; sleep 1s; done"
deploy:
mode: replicated
replicas: 1
update_config:
parallelism: 1
delay: 10s
restart_policy:
condition: any
delay: 10s
max_attempts: 5
window: 120s
logging:
driver: solarwinds/papertrail-plugin
options:
papertrail-url: ":"
papertrail-token: ""

networks:
default:
external:
name: internal

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.