Trying to capture protobufServer() output from PowerDNS recursor, but not seeing anything (v0.33.0) #18897
Replies: 3 comments 3 replies
-
I'm experiencing the very same issue, and I wonder if pdns-recursor isn't sending the protobuf messages over the socket framestream delimited, as with the I've tried using the different framing methods available in Vector for recognising this, but didn't have any success. I have validated that pdns-recursor is, definitely, sending the messages properly by using dmachard's Python-based protobuf receiver which outputs a representation of the messages OK. Sorry I can't shed any light on this. |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for the feedback - very helpful - trying Python was next on my list :) Its very odd the
However, if it works with Python & not vector, this suggests to me the issue is in vector?? Unfortunately we really need access to this output as we're using RPZs & this is the way they provide to see the times it blocks a DNS request .. and I'd really rather not have to use aa shim between the two! |
Beta Was this translation helpful? Give feedback.
-
I think the problem you described here a bit later in more detail: #19323 |
Beta Was this translation helpful? Give feedback.
-
I'm using the PowerDNS recursor to implement DNS filtering using an RPZ. I should be able to see RPZ block events logged via their protobuf interface. Looking at its internal metrics,
vector
is reporting that it is receiving bytes, but not logging anything to file, but I can get it to log thednstap
data frompdns_recursor
fine.https://docs.powerdns.com/recursor/lua-config/protobuf.html
PowerDNS provide the
proto
file (see link), which I compiled,usingprotoc
, into adesc
file andvector validate
is happy with picking up the message type from thedesc
.My vector config
Then I have
protobufServer("127.0.0.1:4100")
in myrecursor.lua
to enable thepdns-recursor
end.Using
netstat -nap
I can see the two applications are connected to each other.When I
curl
the metrics fromvector
, and look forvector_component_received_bytes_total
&dns_msg
, I can see bytes coming in, but I never see any files logged in/opt/dnsmsg
(directory is owned byvector
).The metric
vector_component_received_event_bytes_total
formsg_to_files
is also zero.There's nothing logged by either application in
syslog
orsystemctl
Beta Was this translation helpful? Give feedback.
All reactions