Skip to content

Commit

Permalink
Add instructions for TLS
Browse files Browse the repository at this point in the history
  • Loading branch information
arvchristos committed Aug 28, 2023
1 parent 8b6c73f commit 3f88f53
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ for log_file in $(ls $path_logs | grep -E "pdnssoc-queries.log.[0-9]+")
do
mv "$path_logs/$log_file" $path_target
cat "$path_target/$log_file" | nc $pdnssoc_server $pdnssoc_server_port -w 10
# Use the following if you send data to TLS enabled endpoint
cat "$path_target/$log_file" | nc --ssl $pdnssoc_server $pdnssoc_server_port -w 10
done
rm -f $path_target/*
Expand Down
6 changes: 6 additions & 0 deletions config/td-agent.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
@type tcp
port 5141
tag pdnssocdata
# For accepting data with TLS, enable the following
# <transport tls>
# ca_path /etc/pki/ca.pem
# cert_path /etc/pki/cert.pem
# private_key_path /etc/pki/key.pem
# </transport>
<parse>
@type regexp
expression /(?<date>.*) client \@.* (?<client>.*)#.*: query: (?<query>\S+) .*/
Expand Down

0 comments on commit 3f88f53

Please sign in to comment.