Apt-Cacher NG#

Integration Details

Ingester

File Follower

Apt-Cacher NG Configuration#

Apt-Cacher NG defines its log location typically in /etc/apt-cacher-ng/acng.conf via the LogDir parameter (for example, LogDir: /var/log/apt-cacher-ng). Install File Follower on your Apt-Cacher NG host by following the instructions in File Follower. Then add the configuration from the File Follower section below.

Gravwell Configuration#

Gravwell Storage Well Configuration#

Setup the well configuration in your Gravwell indexers.

Sample well config:
Create or edit: /opt/gravwell/etc/gravwell.conf.d/aptcacher-well.conf

[Storage-Well "aptcacher"]
    Location=/opt/gravwell/storage/aptcacher
    Tags=aptcacher*

Gravwell Ingester Configuration: File Follower#

Sample Apt-Cacher NG config:
Create or edit: /opt/gravwell/etc/file_follow.conf.d/aptcacher.conf

[Follower "aptcacher"]
    Base-Directory="/var/log/apt-cacher-ng/"
    File-Filter="apt-cacher.log,apt-cacher.[0-9]"
    Tag-Name=aptcacher
    Ignore-Timestamps=true

[Follower "aptcacher_err"]
    Base-Directory="/var/log/apt-cacher-ng/"
    File-Filter="apt-cacher.err,apt-cacher.err.[0-9]"
    Tag-Name=aptcacher-err
    Ignore-Timestamps=true

Note

Remember to restart the service to apply the new config: sudo systemctl restart gravwell_file_follow.service