Push log files' updates to Telegram
cargo build --release
ltg_push <custom path to config file> getChatID
ltg_push <custom path to config file>
yaml
telegram:
bot: 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11 # bot token
chat_id: 123456789 # chat id (see Use.5)
files: # paths to watching files
- path: /var/some/log
- path: /var/awesome/other_log
ltg_push.service
to /etc/systemd/system
systemctl daemon-reload
ltg_push
to /usr/bin
/etc/ltg_push.yml