Skip to content

Commit

Permalink
Added: Readme info for running in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
danielunderwood committed Feb 26, 2022
1 parent 08cba63 commit ef0f66f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/...
Expand Down

0 comments on commit ef0f66f

Please sign in to comment.