There is 2 servers: web and log. web has a nginx server which produced logs. log is a remote server to collect logs.
- all critical logs from web must be stored locally and sent on the log
- access and error logs from nginx have to be sent on the log
- audit logs (when nginx config changes) have to be sent on the log
vagrant
andAnsible
should be installed on your system
$ vagrant -v
Vagrant 2.2.5
$ ansible --version
ansible 2.9.1
...
- Clone this repository
$ git clone https://github.com/ligain/logging.git
- Go to project folder
$ cd logging/
- Run
Vagrantfile
$ vagrant up
The code is written for educational purposes.