Utility that takes logs from anywhere and sends them to Telegram.
Max Eliseev 483f1adb49 Merge pull request #10 from hugoh/docker-build | 2 gadi atpakaļ | |
---|---|---|
assets | 3 gadi atpakaļ | |
docs | 3 gadi atpakaļ | |
src | 3 gadi atpakaļ | |
.editorconfig | 5 gadi atpakaļ | |
.gitignore | 3 gadi atpakaļ | |
Cargo.lock | 3 gadi atpakaļ | |
Cargo.toml | 3 gadi atpakaļ | |
Dockerfile | 2 gadi atpakaļ | |
LICENSE | 3 gadi atpakaļ | |
README.md | 3 gadi atpakaļ |
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
.
sudo dpkg -i logram-...amd64.deb
sudo rpm -i logram-...x86_64.rpm
docs/chat_id.md
)/etc/logram.yaml
in Linux) (see docs/config.md
)sudo systemctl start logram
sudo systemctl enable logram
Also logram can work with log
, see docs/lib.md
for detals.
If you need to build a logram manually, do this:
git clone git@github.com:mxseev/logram.git
bin_core
- required for all log sourcesls_counter
- Counter log sourcels_filesystem
- Filesystem log sourcels_journald
- Journald log sourcels_docker
- Docker log sourcecargo build --release --features=bin_core,ls_filesystem
.deb
packagecargo-deb
package.metadata.deb.features
in Cargo.toml
cargo deb
target/debian/logram_..._amd64.deb
.rpm
packagecargo-generate-rpm
cargo build --release --features=bin_core,...
strip -s target/release/logram
cargo generate-rpm
target/generate-rpm/logram-...x86_64.rpm