{"id":19905625,"url":"https://github.com/ekristen/docker-plugin-multilogger","last_synced_at":"2025-07-02T07:06:31.235Z","repository":{"id":139003157,"uuid":"98486174","full_name":"ekristen/docker-plugin-multilogger","owner":"ekristen","description":"A docker multilogger as a plugin. Implements jsonlog + splunk loggers.","archived":false,"fork":false,"pushed_at":"2017-10-10T15:23:08.000Z","size":1063,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-01T07:44:43.309Z","etag":null,"topics":["docker","docker-logs","docker-plugin","splunk","splunk-hec"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ekristen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-27T02:41:33.000Z","updated_at":"2017-12-01T18:58:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"3115ecef-102f-40cf-9ede-f7f711169ad3","html_url":"https://github.com/ekristen/docker-plugin-multilogger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ekristen/docker-plugin-multilogger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekristen%2Fdocker-plugin-multilogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekristen%2Fdocker-plugin-multilogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekristen%2Fdocker-plugin-multilogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekristen%2Fdocker-plugin-multilogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ekristen","download_url":"https://codeload.github.com/ekristen/docker-plugin-multilogger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekristen%2Fdocker-plugin-multilogger/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263091025,"owners_count":23412343,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-logs","docker-plugin","splunk","splunk-hec"],"created_at":"2024-11-12T20:34:04.060Z","updated_at":"2025-07-02T07:06:31.210Z","avatar_url":"https://github.com/ekristen.png","language":"Go","readme":"# multilogger - a logger docker plugin\n\n**Consider this currently as a work in progress, alpha/beta plugin. While it current works, I haven't riggerously tested it, so there could be performance or other edge cases that have not been addressed yet.**\n\nThis implements a logger as a docker plugin that allows for logging to splunk and a json file that is internal to the plugin. The benefit to this is all the logs end up in splunk, but the command `docker logs` still works.\n\n## Credits\n\nThanks to [cpuguy83](http://github.com/cpuguy83/) for the basis of this plugin, without him this would not exist. Thanks to [docker](https://github.com/docker/) for creating docker plugins!\n\n## Installation\n\n```bash\ndocker plugin install ekristen/multilogger\n```\n\n## Usage\n\nAfter installation you can reference `ekristen/multilogger` as your logging driver, from there, all the jsonfile logger options and the splunk logger options are all valid and accepted. The only required options are `splunk-url` and `splunk-token` everything else is optional. \n\n### Example Usage\n\n```bash\ndocker run -d --name \"example-logger\" \\\n  --log-driver ekristen/multilogger\n  --log-opt max-file=2 \\\n  --log-opt max-size=10m \\\n  --log-opt splunk-url=https://localhost:8088 \\\n  --log-opt splunk-token=00000000-0000-0000-0000-000000000000 \\\n  --log-opt splunk-insecureskipverify=true \\\n  --log-opt splunk-source=my-source \\\n  --log-opt splunk-sourcetype=testing \\\n  --log-opt splunk-format=raw \\\n  --log-opt tag=\"\" \\\n  ubuntu bash -c 'while true; do echo \"{\\\"msg\\\": \\\"something\\\", \\\"time\\\": \\\"`date +%s`\\\"}\"; sleep 2; done;'\n```\n\n## Supported Drivers\n\n* json-file\n* splunk\n\n### JSON File Logging Driver\n\nDocumentation: https://docs.docker.com/engine/admin/logging/json-file/#options\n\n### Splunk Logging Driver\n\nDocumentation: https://docs.docker.com/engine/admin/logging/splunk/#splunk-options\n\n## Building\n\nThis plugin is using `govendor` to manage all it's dependencies along with multi-stage docker builds. You'll need docker 17.05-ce or later to support the build process.\n\n```bash\nbash build.sh\n```\n\n## License\n\n[Apache License](LICENSE.md)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekristen%2Fdocker-plugin-multilogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fekristen%2Fdocker-plugin-multilogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekristen%2Fdocker-plugin-multilogger/lists"}