Query Logs via Fluentd
If you want to export the query logs from Bind/Named within the agent, this can be done with our fluentd intergration.
1. Download fluentd compose file
#cd into where your agent docker-compose is present
user@host:/opt/bootDNS-agent$ wget 'https://raw.githubusercontent.com/bootDNS/agent/main/docker-compose.fluentd.yml' -O docker-compose.fluentd.yml
2. Configure fluentd
In the fluentd compose file, you will see the default is syslog, but can be exchanged with:
If Syslog:
environment:
- TZ=Europe/Copenhagen
- syslog_server=192.168.4.104
- syslog_port=2516
- syslog_proto=udp
- type=syslog
If Splunk HEC:
environment:
- TZ=Europe/Copenhagen
- splunkhec_server=192.168.4.104
- splunkhec_port=8088
- splunkhec_token=....
- splunkhec_insecuressl=false
- type=splunkhec
3. Start it!
Now, from now on when you want to start/recreate the agent, you need to run it with this, to include fluentd:
user@host:/opt/bootDNS-agent$ docker compose -f docker-compose.yml -f docker-compose.fluentd.yml up -d
3.1 Merge conf files
If you want to make life a bit easier for yourself, you can merge the conf files using this command, note that this will overwrite your docker-compose.yml file
user@host:/opt/bootDNS-agent$ docker compose -f docker-compose.yml -f docker-compose.fluentd.yml config > docker-compose.yml
Then you’re able to run your normal: docker compose pull / docker compose up -d