Crates.io | logram |
lib.rs | logram |
version | 2.0.0 |
source | src |
created_at | 2017-11-05 06:32:21.090643 |
updated_at | 2021-01-23 01:01:01.926975 |
description | Utility that takes logs from anywhere and sends them to Telegram |
homepage | |
repository | |
max_upload_size | |
id | 38200 |
size | 99,497 |
Utility 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
.
sudo dpkg -i logram-...amd64.deb
sudo rpm -i logram-...x86_64.rpm
docs/chat_id.md
)/etc/logram.yaml
in Linux) (see docs/config.md
)sudo systemctl start logram
sudo systemctl enable logram
Also logram can work with log
, see docs/lib.md
for detals.
If you need to build a logram manually, do this:
git clone git@github.com:mxseev/logram.git
bin_core
- required for all log sourcesls_counter
- Counter log sourcels_filesystem
- Filesystem log sourcels_journald
- Journald log sourcels_docker
- Docker log sourcecargo build --release --features=bin_core,ls_filesystem
.deb
packagecargo-deb
package.metadata.deb.features
in Cargo.toml
cargo deb
target/debian/logram_..._amd64.deb
.rpm
packagecargo-generate-rpm
cargo build --release --features=bin_core,...
strip -s target/release/logram
cargo generate-rpm
target/generate-rpm/logram-...x86_64.rpm