{"id":22170565,"url":"https://github.com/diegohce/elasticlogger","last_synced_at":"2025-08-14T21:21:59.636Z","repository":{"id":41879221,"uuid":"230341702","full_name":"diegohce/elasticlogger","owner":"diegohce","description":"Docker log driver for elasticsearch logging","archived":false,"fork":false,"pushed_at":"2020-06-20T16:57:47.000Z","size":45,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-03-11T14:37:52.006Z","etag":null,"topics":["docker","docker-logging","docker-logs","docker-plugin","elasticsearch","go","golang","log","logging","logs","plugin"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/diegohce.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-26T23:37:22.000Z","updated_at":"2022-07-04T17:51:55.000Z","dependencies_parsed_at":"2022-09-18T22:40:16.950Z","dependency_job_id":null,"html_url":"https://github.com/diegohce/elasticlogger","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diegohce%2Felasticlogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diegohce%2Felasticlogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diegohce%2Felasticlogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diegohce%2Felasticlogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diegohce","download_url":"https://codeload.github.com/diegohce/elasticlogger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245319763,"owners_count":20596032,"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-logging","docker-logs","docker-plugin","elasticsearch","go","golang","log","logging","logs","plugin"],"created_at":"2024-12-02T06:52:29.491Z","updated_at":"2025-03-24T17:40:34.859Z","avatar_url":"https://github.com/diegohce.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Go Report Card](https://goreportcard.com/badge/github.com/diegohce/elasticlogger)](https://goreportcard.com/report/github.com/diegohce/elasticlogger)\n[![Actions Status](https://github.com/diegohce/elasticlogger/workflows/Build/badge.svg)](https://github.com/diegohce/elasticlogger/actions)\n[![Actions Status](https://github.com/diegohce/elasticlogger/workflows/Test/badge.svg)](https://github.com/diegohce/elasticlogger/actions)\n[![GPLv3 license](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://github.com/diegohce/elasticlogger/blob/master/LICENSE)\n[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/diegohce/elasticlogger/graphs/commit-activity)\n[![HitCount](http://hits.dwyl.io/diegohce/elasticlogger.svg)](http://hits.dwyl.io/diegohce/elasticlogger)\n\n# elasticlogger\n\n# Build \u0026 install from source\n\n```bash\ngit clone https://github.com/diegohce/elasticlogger.git ~/go/src/elasticlogger\ncd ~/go/src/elasticlogger\nmake\n```\n## Pushing to registry\n\n```bash\ncd ~/go/src/elasticlogger\ndocker plugin create \u003cregistry\u003e/elasticlogger:\u003ctag\u003e ./plugin-dir\ndocker plugin push \u003cregistry\u003e/elasticlogger:\u003ctag\u003e\n```\n## Installing from regisrtry\nMake sure there's no previous elasticlogger installation from build process.\n```bash\ndocker plugin ls\n```\nIf there's any, remove them first.\n```bash\ndocker plugin rm \u003cplugin\u003e:\u003ctag\u003e\n```\nNow, we can install `elasticlogger` from registry.\n```bash\ndocker plugin install --alias elasticlogger \u003cregistry\u003e/elasticlogger:\u003ctag\u003e\n```\nOptionally, you can set the `HOST` value at the same time.\n```bash\ndocker plugin install --alias elasticlogger \u003cregistry\u003e/elasticlogger:\u003ctag\u003e HOST=\u003celastichost:port\u003e\n```\n\n# Configuration\n\n```bash\ndocker plugin set elasticlogger:latest HOST=http[s]://\u003celastic_host:port\u003e\ndocker plugin enable elasticlogger:latest\n```\n## Mandatory plugin settings\n\n\u003ctable\u003e\n\u003ctr\u003e\n    \u003cth\u003eOption\u003c/th\u003e\n    \u003cth\u003eDescription\u003c/th\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n    \u003ctd\u003eHOST\u003c/td\u003e\n    \u003ctd\u003eElasticsearch server http[s]://host:port\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n## Optional plugin settings\n\n\u003ctable\u003e\n\u003ctr\u003e\n    \u003cth\u003eOption\u003c/th\u003e\n    \u003cth\u003eDescription\u003c/th\u003e\n   \u003cth\u003eDefault\u003c/th\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n    \u003ctd\u003eGCTIMER\u003c/td\u003e\n    \u003ctd\u003esets the garbage collector interval\u003c/td\u003e\n    \u003ctd\u003e1m\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n    \u003ctd\u003eLOG_LEVEL\u003c/td\u003e\n    \u003ctd\u003esets the loglevel for the driver's own log entries\u003c/td\u003e\n    \u003ctd\u003einfo\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n    \u003ctd\u003eUSER\u003c/td\u003e\n    \u003ctd\u003eUser for basic auth\u003c/td\u003e\n    \u003ctd\u003e\u0026nbsp;\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n    \u003ctd\u003ePASSWORD\u003c/td\u003e\n    \u003ctd\u003ePASSWORD for basic auth\u003c/td\u003e\n    \u003ctd\u003e\u0026nbsp;\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n    \u003ctd\u003eDATESUFFIX\u003c/td\u003e\n    \u003ctd\u003eDate suffix pattern to append to index name. See Go \u003ca href=\"https://golang.org/pkg/time\" target=\"_blank\"\u003etime\u003c/a\u003e package\u003c/td\u003e\n    \u003ctd\u003e200601\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n    \u003ctd\u003ebulksize\u003c/td\u003e\n    \u003ctd\u003esets how many lines of log to send at a time\u003c/td\u003e\n    \u003ctd\u003e10\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n# Usage\n\n```bash\ndocker run --log-driver elasticlogger --log-opt index=myappindex ...\n```\n\n## Container level settings\n\n\u003ctable\u003e\n\u003ctr\u003e\n    \u003cth\u003eOption\u003c/th\u003e\n    \u003cth\u003eDescription\u003c/th\u003e\n    \u003cth\u003eDefault\u003c/th\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n    \u003ctd\u003eindex\u003c/td\u003e\n    \u003ctd\u003eElasticsearch index where logs will be stored\u003c/td\u003e\n    \u003ctd\u003eNo default. Mandatory setting.\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n    \u003ctd\u003ehost\u003c/td\u003e\n    \u003ctd\u003ewill override driver host\u003c/td\u003e\n    \u003ctd\u003eplugin's HOST value\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n    \u003ctd\u003ebulksize\u003c/td\u003e\n    \u003ctd\u003esets how many lines of log to send at a time\u003c/td\u003e\n    \u003ctd\u003e10\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n    \u003ctd\u003eUSER\u003c/td\u003e\n    \u003ctd\u003eUser for basic auth\u003c/td\u003e\n    \u003ctd\u003e\u0026nbsp;\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n    \u003ctd\u003ePASSWORD\u003c/td\u003e\n    \u003ctd\u003ePASSWORD for basic auth\u003c/td\u003e\n    \u003ctd\u003e\u0026nbsp;\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiegohce%2Felasticlogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiegohce%2Felasticlogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiegohce%2Felasticlogger/lists"}