Collector Update Procedure
Info
Make sure clock synchronization is configured via the same NTP server as for MITIGATOR.
Create a backup of Collector settings and flows.
Add a line with the version to
.env
file. For example:VERSION=v23.03.1
Download the latest compose file:
wget https://docs.mitigator.ru/collector/v24.10/dist/docker-compose.yml -O docker-compose.yml
Make sure that the target major version number is indicated in the address bar.
Log in to the image repository with your credentials:
docker login docker.mitigator.ru
Download the images:
docker-compose pull
Restart Collector:
docker-compose down && docker-compose up -d
GeoIP database update
Collector uses GeoLite2
databases in CSV format. Place the Country and ASN database files in /srv/collector/geolite2
directory.
Process the files with the command:
find geolite2 -name '*.csv' -exec sed -e "s|,\('[^,]\+\)|,\"\1\"|g" -i {} \;
GeoIP databases will be updated within a few minutes.