Crates.io | telog |
lib.rs | telog |
version | 0.1.1 |
source | src |
created_at | 2024-12-01 10:32:44.674246 |
updated_at | 2024-12-01 10:32:44.674246 |
description | Aggregate logs from various sources and send real-time notifications to Telegram for easy monitoring. |
homepage | https://trinhminhtriet.com |
repository | https://github.com/trinhminhtriet/telog |
max_upload_size | |
id | 1467318 |
size | 105,903 |
📊📲 telog is an aggregate logs from multiple sources and send real-time notifications to Telegram for efficient monitoring.
If you need to build Telog manually, follow these steps:
git clone git@github.com:trinhminhtriet/telog.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 sourceBuild the project with the selected features:
cargo build --release --features=bin_core,ls_filesystem
.deb
package 📦cargo-deb
:cargo install cargo-deb
Edit package.metadata.deb.features
in Cargo.toml
.
Build the package:
cargo deb
target/debian/telog_..._amd64.deb
.rpm
package 📦cargo-generate-rpm
:cargo install cargo-generate-rpm
cargo build --release --features=bin_core,...
strip -s target/release/telog
cargo generate-rpm
target/generate-rpm/telog-...x86_64.rpm
Running the below command will globally uninstall the telog
binary.
cargo uninstall telog
Remove the project repo
rm -rf /path/to/git/clone/telog
Create a Telegram bot via @BotFather 🤖
Download the latest Telog release from GitHub 📥
Install it:
.deb
based Linux:sudo dpkg -i telog-...amd64.deb
.rpm
based Linux:sudo rpm -i telog-...x86_64.rpm
Find out the chat ID with your bot (see chat_id.md for details) 🆔
Change the configuration file (/etc/telog.yaml
in Linux) (see config.md for details) ⚙️
Run Telog:
sudo systemctl start telog
sudo systemctl enable telog
We welcome contributions!
git checkout -b my-feature
;git commit -m "feat: my new feature"
;git push origin my-feature
.Once your pull request has been merged, you can delete your branch.
This project is licensed under the MIT License - see the LICENSE file for details.