Skip to content

Commit

Permalink
fix docker config (#757)
Browse files Browse the repository at this point in the history
* fix docker config

* doc - fix config rewrite
  • Loading branch information
dmachard authored Jun 29, 2024
1 parent 04c7744 commit dbe0cb7
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 30 deletions.
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.8"

services:
dnscollector:
Expand Down
42 changes: 20 additions & 22 deletions docker-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,25 @@ global:
trace:
verbose: true

multiplexer:
collectors:
- name: tap
dnstap:
listen-ip: 0.0.0.0
listen-port: 6000
transforms:
normalize:
qname-lowercase: false
pipelines:
- name: tap
dnstap:
listen-ip: 0.0.0.0
listen-port: 6000
transforms:
normalize:
qname-lowercase: false
qname-replace-nonprintable: true
routing-policy:
forward: [ json, prom ]
dropped: [ ]

loggers:
- name: json
logfile:
file-path: /var/dnscollector/dnstap.log
mode: flat-json
- name: json
logfile:
file-path: /var/dnscollector/dnstap.log
mode: flat-json

- name: prom
prometheus:
listen-ip: 0.0.0.0
listen-port: 8080

routes:
- from: [ tap ]
to: [ json, prom ]
- name: prom
prometheus:
listen-ip: 0.0.0.0
listen-port: 8080
10 changes: 3 additions & 7 deletions docs/transformers/transform_rewrite.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,9 @@ Options:
Config example to remove the DNStap version and update the identity name.

```yaml
- name: tap
dnstap:
listen-ip: 0.0.0.0
listen-port: 6000
transforms:
rewrite:
rewrite:
identifiers:
dnstap.version: ""
dnstap.identity: "foo"
dnstap.version: ""
dnstap.identity: "foo"
```

0 comments on commit dbe0cb7

Please sign in to comment.