Monitor log files and execute custom code whenever a new line is added to the logs.
537
This is a docker implementation of the log-parser executable. For full documentation see the Log Parser GitHub repo.
To run the log parser with Docker:
docker run -it --rm marbleclimate/log-parser:latest --help
This is the equivalent of installing the Log Parser locally and running:
log-parser --help
The docker images also contain all extensions by default and they can be run by changing the entrypoint. For example,
if you'd like to run the prometheus extension:
docker run -it --rm --entrypoint log-parser-prometheus marbleclimate/log-parser:latest --help
The entrypoint for all extensions is log-parser-<name> where <name> is the name of the extension.
All parsers and logs must be visible to the docker container. This can be accomplished by mounting them as volumes.
For example, if you have some parsers in a directory named ./my-parsers and logs being written to a directory named
./my-logs you can run:
docker run -it --rm -v './my-parsers:/parsers:ro' -v './my-logs:/logs:ro' marbleclimate/log-parser:latest --parsers /parsers
Note that in the example above, the parsers refer to the location of the log files in the container (/logs), not on the
host (./my-logs).
Content type
Image
Digest
sha256:abe2eab91…
Size
22.6 MB
Last updated
about 2 months ago
docker pull marbleclimate/log-parser