Since no two users of NXLOG are likely to configure it exactly a like, this image does not come with any default configuration.
Please refer to the the CE Reference Manual on the subject of configuring NXLOG for your needs.
Create a Dockerfile
:
FROM jonbrouse/nxlog
COPY nxlog.conf /etc/nxlog/
Build and run:
docker build -t nxlog-client .
docker run -d --name my-running-nxlog-client nxlog-client
The client binaries are stored in nxlog-client.tar.gz which is contained in this repo. When I have used this build I normally host it in a private S3 bucket and curl it down during a RUN
action.
If you are using this with a process manager like supervisor, ensure you start the agent after the other processes. NXLOG needs to see a valid log file to launch.