More AIDE configuration: Additional recommended changes

This guide recommends also making some more changes to the /etc/aide.conf file (using a text editor to edit a text file).

echo ${VISUAL}
sudoedit /etc/aide.conf
[#aideckrc]: Automatic compression, and verbosity increase

There may be support for automatic compression of the database file by using the gzip_dbout option in the configuration file, as documented by the man page on aide.conf.

Find the lines that say:

# Whether to gzip the output to database
# gzip_dbout=no

#verbose=5
verbose=20

Change those lines to instead say:

# Whether to gzip the output to database
# gzip_dbout=no
gzip_dbout=yes

#verbose=5
#verbose=20
verbose=231

(This changes the value of two options.)

At the time of this writing, it was not tested whether the first, or the last, instance of the configuration lines take effect. Perhaps something like the following would perform the equivilent actions?

echo gzip_dbout=yes | sudo -n tee -a /etc/aide.conf
echo verbose=231 | sudo -n tee -a /etc/aide.conf