Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support extended dnstap #548

Merged
merged 9 commits into from
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/golint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54
version: "v1.55.2"
args: --timeout 3m --verbose

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@
__pycache__/

go-dnscollector
bin/
include/
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<p align="center">
<img src="https://goreportcard.com/badge/github.com/dmachard/go-dns-collector" alt="Go Report"/>
<img src="https://img.shields.io/badge/go%20version-min%201.20-green" alt="Go version"/>
<img src="https://img.shields.io/badge/go%20tests-377-green" alt="Go tests"/>
<img src="https://img.shields.io/badge/go%20lines-36222-green" alt="Go lines"/>
<img src="https://img.shields.io/badge/go%20tests-383-green" alt="Go tests"/>
<img src="https://img.shields.io/badge/go%20lines-37290-green" alt="Go lines"/>
</p>

<p align="center">
Expand Down
28 changes: 24 additions & 4 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@ multiplexer:
# routing-policy:
# default: [ filter ]

# - name: second-input
# dnstap:
# listen-ip: 0.0.0.0
# listen-port: 6002
# extended-support: true
# routing-policy:
# default: [ console ]

# - name: filter
# dnsmessage:
# matching:
Expand All @@ -101,18 +109,26 @@ multiplexer:
# tags: [ "google"]
# routing-policy:
# dropped: [ outputfile ]
# default: [ console ]
# default: [ central ]

# - name: central
# dnstapclient:
# transport: tcp
# remote-address: 127.0.0.1
# remote-port: 6002
# flush-interval: 5
# extended-support: true

# - name: console
# stdout:
# mode: text
# mode: flat-json

# - name: outputfile
# logfile:
# file-path: "/tmp/dnstap.log"
# max-size: 1000
# max-files: 10
# mode: flat-json
# mode: text

################################################
# list of supported collectors
Expand Down Expand Up @@ -142,9 +158,11 @@ multiplexer:
# chan-buffer-size: 65535
# # Disable the minimalist DNS parser
# disable-dnsparser: true
# # Decode the extended extra field sent by DNScollector
# extended-support: false

# # dnstap proxifier with no protobuf decoding.
# dnstap-proxifier:
# dnstap-relay:
# # listen on ip
# listen-ip: 0.0.0.0
# # listening on port
Expand Down Expand Up @@ -407,6 +425,8 @@ multiplexer:
# buffer-size: 100
# # Channel buffer size for incoming packets, number of packet before to drop it.
# chan-buffer-size: 65535
# # Extend the DNStap message by incorporating additional transformations, such as filtering and ATags, into the extra field.
# extended-support: false

# # resend captured dns traffic to a tcp remote destination or to unix socket
# tcpclient:
Expand Down
Loading
Loading