-
-
Notifications
You must be signed in to change notification settings - Fork 50
/
use-case-24.yml
80 lines (72 loc) · 1.64 KB
/
use-case-24.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
global:
trace:
verbose: true
pipelines:
- name: prom
prometheus:
listen-ip: 0.0.0.0
listen-port: 8081
basic-auth-enable: false
prometheus-prefix: "dnscollector"
top-n: 200
prometheus-labels: [ "stream_id" ]
- name: dnsdist
dnstap:
listen-ip: 0.0.0.0
listen-port: 6000
transforms:
normalize:
qname-lowercase: true
routing-policy:
forward: [ txt-queries, prom ]
- name: txt-queries
dnsmessage:
matching:
include:
dnstap.operation: "CLIENT_RESPONSE"
dns.qtype: "TXT"
transforms:
atags:
add-tags: [ "TAG:TXT-QUERIES" ]
routing-policy:
forward: [ apple-txt, all-txt ]
- name: all-txt
dnsmessage:
matching:
include:
dnstap.operation: "CLIENT_RESPONSE"
routing-policy:
forward: [ outputfile-justtxt ]
- name: apple-txt
dnsmessage:
matching:
include:
dns.qtype: "TXT"
dns.qname: "^*.apple.com$"
transforms:
atags:
add-tags: [ "TXT:apple" ]
routing-policy:
forward: [ outputfile-apple ]
- name: outputfile-justtxt
logfile:
file-path: "/tmp/dnstap-txt.log"
max-size: 100
max-files: 10
mode: json
transforms:
user-privacy:
anonymize-ip: true
anonymize-v4bits: "/0"
anonymize-v6bits: "::/128"
- name: outputfile-apple
logfile:
file-path: "/tmp/dnstap.log"
max-size: 100
max-files: 10
mode: json
transforms:
user-privacy:
anonymize-ip: true
anonymize-v4bits: "/0"
anonymize-v6bits: "::/0"