{"id":19011759,"url":"https://github.com/requilence/logspout-regexp","last_synced_at":"2026-05-18T10:33:48.155Z","repository":{"id":94488886,"uuid":"224408983","full_name":"requilence/logspout-regexp","owner":"requilence","description":"logspout regexp adapter to match docker containers logs and send them to Telegram chat","archived":false,"fork":false,"pushed_at":"2019-11-27T12:55:30.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-05-01T14:27:31.085Z","etag":null,"topics":["containers","devops","devops-tools","docker","logging","logs","logspout","telegram"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/requilence.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-27T10:52:03.000Z","updated_at":"2024-06-19T08:57:39.595Z","dependencies_parsed_at":"2023-03-05T16:00:37.191Z","dependency_job_id":null,"html_url":"https://github.com/requilence/logspout-regexp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/requilence/logspout-regexp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/requilence%2Flogspout-regexp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/requilence%2Flogspout-regexp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/requilence%2Flogspout-regexp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/requilence%2Flogspout-regexp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/requilence","download_url":"https://codeload.github.com/requilence/logspout-regexp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/requilence%2Flogspout-regexp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280943421,"owners_count":26417747,"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","status":"online","status_checked_at":"2025-10-25T02:00:06.499Z","response_time":81,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["containers","devops","devops-tools","docker","logging","logs","logspout","telegram"],"created_at":"2024-11-08T19:15:37.783Z","updated_at":"2025-10-25T10:39:26.893Z","avatar_url":"https://github.com/requilence.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# logspout-regexp\n\nA minimalistic adapter for github.com/gliderlabs/logspout to match docker containers logs with regexp and notify in case the match found.\n\nCurrently, supporting Telegram and StdErr as output.\n\n## How to build\nFollow the instructions in https://github.com/gliderlabs/logspout/tree/master/custom on how to build your own Logspout container with custom modules. \n\nBasically just copy the contents of the custom folder and include:\n\n```go\npackage main\n\nimport (\n  _ \"github.com/requilence/logspout-regexp\"\n)\n```\n\nin modules.go. Or just clone this repo and use [logspout-module](https://github.com/requilence/logspout-regexp/tree/master/logspout-module) dir from this repo.\n\nThen you can run `docker build -t logspout-regexp .` inside this dir.\n\n## How to use\nUse by setting a docker environment variable: `ROUTE_URIS=regexp://bot?file=regexps.txt\u0026hide_matched_string=1\"`\n\nThe default transport is `stderr`, but this adapter mainly created to work with Telegram. You should put the right bot's token(you've got from [@BotFather](https://t.me/BotFather) and chat's id.\n \nHere is an example:\n`ROUTE_URIS=regexp+tg://bot?file=regexps.txt\u0026throttle_seconds=600\u0026hide_matched_string=1\u0026chat=123\u0026token=112233444:AAEfzA2_Q-FnUfasuib2_DAfdsn23jnK5s6QcQ\"`\n\nFull command to run docker container with `logspout-regexp`:\n```bash\ndocker run --name=\"logspout\" \\\n    --volume=/var/run/docker.sock:/var/run/docker.sock \\\n    --mount type=bind,source=$(pwd)/regexps.txt,target=/regexps.txt \\\n    -e \"ROUTE_URIS=regexp+tg://bot?file=regexps.txt\u0026throttle_seconds=600\u0026hide_matched_string=1\u0026chat=123\u0026token=112233444:AAEfzA2_Q-FnUfasuib2_DAfdsn23jnK5s6QcQ\" \\\n    logspout-regexp:latest\n```\n\n## Regexps file\nIn your `regexps.txt` you can put regexps to match containers logs. Each line should be a new regexp:\n```\n(?i)([A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,24})\npart_of_sensitive_info\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frequilence%2Flogspout-regexp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frequilence%2Flogspout-regexp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frequilence%2Flogspout-regexp/lists"}