From ef0f66f4ce16d04c8e9f715bb89e8b436c6d1c35 Mon Sep 17 00:00:00 2001 From: Daniel Underwood Date: Sat, 26 Feb 2022 13:16:12 -0500 Subject: [PATCH] Added: Readme info for running in docker --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c13e08c..d1cb575 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,18 @@ Matches log lines to trigger HTTP requests. A super hacky alternative to ELK or ## Usage -### Binary +### Docker +Really you probably want to use docker-compose or some other system to manage configuration (ansible, k8s manifests, etc), but this should get you started. + +```shell +$ docker run -d \ + -v $LOG_DIR:/logs \ + -e URL=https://example.com/... \ + --name log2http \ + ghcr.io/danielunderwood/log2http -file /log/whatever.log -sourceName "$(hostname)/docker" +``` + +### Binary (Coming Soon?) ```shell $ log2http -file FILENAME -expression "^[Rr]egex$" -url https://discordapp.com/...