Product Promotion
0x5a.live
for different kinds of informations and explorations.
GitHub - mxseev/logram: Utility that takes logs from anywhere and sends them to Telegram.
Utility that takes logs from anywhere and sends them to Telegram. - GitHub - mxseev/logram: Utility that takes logs from anywhere and sends them to Telegram.
Visit SiteGitHub - mxseev/logram: Utility that takes logs from anywhere and sends them to Telegram.
Utility that takes logs from anywhere and sends them to Telegram. - GitHub - mxseev/logram: Utility that takes logs from anywhere and sends them to Telegram.
Powered by 0x5a.live 💗
logram
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
.
Usage
- Create a Telegram bot via @BotFather
- Download the latest logram release
- Install it:
- .deb based Linux:
sudo dpkg -i logram-...amd64.deb
- .rpm based Linux:
sudo rpm -i logram-...x86_64.rpm
- .deb based Linux:
- Find out the chat id with your bot (see
docs/chat_id.md
) - Change the config (
/etc/logram.yaml
in Linux) (seedocs/config.md
) - Run logram:
sudo systemctl start logram
- ... and add it to the autostart:
sudo systemctl enable logram
Also logram can work with log
, see docs/lib.md
for detals.
Building
If you need to build a logram manually, do this:
- Clone repo:
git clone [email protected]:mxseev/logram.git
- Choose the features you want:
bin_core
- required for all log sourcesls_counter
- Counter log sourcels_filesystem
- Filesystem log sourcels_journald
- Journald log sourcels_docker
- Docker log source
- Build the project with these features:
cargo build --release --features=bin_core,ls_filesystem
Making .deb
package
- Install
cargo-deb
- Edit
package.metadata.deb.features
inCargo.toml
- Build package:
cargo deb
- Use
target/debian/logram_..._amd64.deb
Making .rpm
package
- Install
cargo-generate-rpm
- Build project:
cargo build --release --features=bin_core,...
- Strip debug symbols:
strip -s target/release/logram
- Build package:
cargo generate-rpm
- Use
target/generate-rpm/logram-...x86_64.rpm
Rust Resources
are all listed below.
Made with ❤️
to provide different kinds of informations and resources.