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