8000 GitHub - trinhminhtriet/telog: πŸ“ŠπŸ“² Aggregate logs from various sources and send real-time notifications to Telegram for easy monitoring. Β· GitHub
[go: up one dir, main page]

Skip to content
trinhminhtrietPublic

About

πŸ“ŠπŸ“² Aggregate logs from various sources and send real-time notifications to Telegram for easy monitoring.

Resources

Stars

5 stars

Watchers

1 watching

Forks

Latest commit

Β 

History

54 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
< BF62 /td>
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“ŠπŸ“² telog

πŸ“ŠπŸ“² telog is an aggregate logs from multiple sources and send real-time notifications to Telegram for efficient monitoring.

πŸ› οΈ Building

If you need to build Telog manually, follow these steps:

  1. Clone the repository:
git clone git@github.com:trinhminhtriet/telog.git
  1. Choose the features you want:

    • bin_core - Required for all log sources
    • ls_counter - Counter log source
    • ls_filesystem - Filesystem log source
    • ls_journald - Journald log source
    • ls_docker - Docker log source
  2. Build the project with the selected features:

cargo build --release --features=bin_core,ls_filesystem

Making .deb package πŸ“¦

  1. Install cargo-deb:
cargo install cargo-deb
  1. Edit package.metadata.deb.features in Cargo.toml.

  2. Build the package:

cargo deb
  1. Use the generated package:
target/debian/telog_..._amd64.deb

Making .rpm package πŸ“¦

  1. Install cargo-generate-rpm:
cargo install cargo-generate-rpm
  1. Build the project:
cargo build --release --features=bin_core,...
  1. Strip debug symbols:
strip -s target/release/telog
  1. Build the package:
cargo generate-rpm
  1. Use the generated package:
target/generate-rpm/telog-...x86_64.rpm

πŸ—‘οΈ Uninstallation

Running the below command will globally uninstall the telog binary.

cargo uninstall telog

Remove the project repo

rm -rf /path/to/git/clone/telog

πŸš€ Usage

  1. Create a Telegram bot via @BotFather πŸ€–

  2. Download the latest Telog release from GitHub πŸ“₯

  3. Install it:

  • For .deb based Linux:
sudo dpkg -i telog-...amd64.deb
  • For .rpm based Linux:
sudo rpm -i telog-...x86_64.rpm
  1. Find out the chat ID with your bot (see chat_id.md for details) πŸ†”

  2. Change the configuration file (/etc/telog.yaml in Linux) (see config.md for details) βš™οΈ

  3. Run Telog:

sudo systemctl start telog
  1. Add it to autostart:
sudo systemctl enable telog

🀝 How to contribute

We 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.

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

About

πŸ“ŠπŸ“² Aggregate logs from various sources and send real-time notifications to Telegram for easy monitoring.

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0