Builds a docker image for rsyslog v8-stable with mongodb configuration.
To build either use the build.sh
script or run the following:
docker build -t <user>/rsyslog-mongodb
To run the container it is recomended that you use the run.sh
script included. To do this you will either need to clone the git repo
git clone https://github.com/flungo-docker/docker-rsyslog-mongodb.git rsyslog
or download just the required files (more commands but less bandwidth and storage use):
mkdir rsyslog
wget -O rsyslog/config.default https://raw.githubusercontent.com/flungo-docker/docker-rsyslog-mongodb/master/config.default
wget -O rsyslog/run.sh https://raw.githubusercontent.com/flungo-docker/docker-rsyslog-mongodb/master/run.sh
chmod +x rsyslog/run.sh
You will now want to create your config file and configure it the settings for your installation. To do this, go into the rsyslog directory and copy the default:
cd rsyslog
cp config.default config
Then you can edit config
with your favourite text editor. The comments in the config file should help you with configuration.
Once you have everything configured, then you can simply run ./run.sh
and rsyslog will be set up in containers, configured as specified.