{"id":13437226,"url":"https://github.com/mxseev/logram","last_synced_at":"2026-01-14T18:57:17.520Z","repository":{"id":44768310,"uuid":"109556903","full_name":"mxseev/logram","owner":"mxseev","description":"Utility that takes logs from anywhere and sends them to Telegram. ","archived":false,"fork":false,"pushed_at":"2022-01-26T01:40:36.000Z","size":170,"stargazers_count":98,"open_issues_count":6,"forks_count":14,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-22T10:07:11.627Z","etag":null,"topics":["bot","systemd","telegram"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/mxseev.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":"2017-11-05T06:25:22.000Z","updated_at":"2025-09-11T06:08:30.000Z","dependencies_parsed_at":"2022-09-09T23:40:46.946Z","dependency_job_id":null,"html_url":"https://github.com/mxseev/logram","commit_stats":null,"previous_names":["ralvke/logram"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/mxseev/logram","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxseev%2Flogram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxseev%2Flogram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxseev%2Flogram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxseev%2Flogram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mxseev","download_url":"https://codeload.github.com/mxseev/logram/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxseev%2Flogram/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28431036,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T16:38:47.836Z","status":"ssl_error","status_checked_at":"2026-01-14T16:34:59.695Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bot","systemd","telegram"],"created_at":"2024-07-31T03:00:55.178Z","updated_at":"2026-01-14T18:57:17.505Z","avatar_url":"https://github.com/mxseev.png","language":"Rust","readme":"# logram [![crates.io](https://img.shields.io/crates/v/logram.svg)](https://crates.io/crates/logram)\n\nUtility that takes logs from anywhere and sends them to Telegram. Supports log collection from files, journald and docker containers. More about available log sources see at [`docs/log_sources.md`](docs/log_sources.md).\n\n## Usage\n1. Create a Telegram bot via [@BotFather](https://t.me/BotFather)\n2. Download the [latest logram release](https://github.com/mxseev/logram/releases/tag/latest)\n3. Install it:\n    - .deb based Linux: `sudo dpkg -i logram-...amd64.deb`\n    - .rpm based Linux: `sudo rpm -i logram-...x86_64.rpm`\n4. Find out the chat id with your bot (see [`docs/chat_id.md`](docs/chat_id.md))\n5. Change the config (`/etc/logram.yaml` in Linux) (see [`docs/config.md`](docs/config.md))\n6. Run logram: `sudo systemctl start logram`\n7. ... and add it to the autostart: `sudo systemctl enable logram`\n\nAlso logram can work with `log`, see [`docs/lib.md`](docs/lib.md) for detals.\n\n## Building\nIf you need to build a logram manually, do this:\n1. Clone repo: `git clone git@github.com:mxseev/logram.git`\n2. Choose the features you want: \n    - `bin_core` - required for all log sources\n    - `ls_counter` - Counter log source\n    - `ls_filesystem` - Filesystem log source\n    - `ls_journald` - Journald log source\n    - `ls_docker` - Docker log source\n3. Build the project with these features: `cargo build --release --features=bin_core,ls_filesystem`\n\n### Making `.deb` package\n1. Install [`cargo-deb`](https://github.com/mmstick/cargo-deb)\n2. Edit `package.metadata.deb.features` in `Cargo.toml`\n3. Build package: `cargo deb`\n4. Use `target/debian/logram_..._amd64.deb`\n\n### Making `.rpm` package\n1. Install [`cargo-generate-rpm`](https://github.com/cat-in-136/cargo-generate-rpm)\n2. Build project: `cargo build --release --features=bin_core,...`\n3. Strip debug symbols: `strip -s target/release/logram`\n4. Build package: `cargo generate-rpm`\n5. Use `target/generate-rpm/logram-...x86_64.rpm`\n","funding_links":[],"categories":["应用","Applications","应用程序 Applications"],"sub_categories":["System tools","系统工具 System tools"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmxseev%2Flogram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmxseev%2Flogram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmxseev%2Flogram/lists"}