ππ² 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:
- Clone the repository:
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 source
-
Build the project with the selected features:
cargo build --release --features=bin_core,ls_filesystem- Install
cargo-deb:
cargo install cargo-deb-
Edit
package.metadata.deb.featuresinCargo.toml. -
Build the package:
cargo deb- Use the generated package:
target/debian/telog_..._amd64.deb- Install
cargo-generate-rpm:
cargo install cargo-generate-rpm- Build the project:
cargo build --release --features=bin_core,...- Strip debug symbols:
strip -s target/release/telog- Build the package:
cargo generate-rpm- Use the generated package:
target/generate-rpm/telog-...x86_64.rpmRunning the below command will globally uninstall the telog binary.
cargo uninstall telogRemove 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:
- For
.debbased Linux:
sudo dpkg -i telog-...amd64.deb- For
.rpmbased 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.yamlin Linux) (see config.md for details) βοΈ -
Run Telog:
sudo systemctl start telog- Add it to autostart:
sudo systemctl enable telogWe welcome contributions!
- Fork this repository;
- Create a branch with your feature:
git checkout -b my-feature; - Commit your changes:
git commit -m "feat: my new feature"; - Push to your branch:
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.