8000 PowerDNS timestamp nanoseconds off by a factor of 1000 · Issue #360 · dmachard/DNS-collector · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
PowerDNS timestamp nanoseconds off by a factor of 1000 #360
Closed
@ruffy91

Description

@ruffy91

When decoding PowerDNS protobuf logs the timestamps always are yyyy-mm-dd[T]hh:mm:ss.000SSSSSSZ
This is because the timestamps powerdns uses are in usec and they are stored in the DnsMessage objects as nsec without conversion here:

https://github.com/dmachard/go-dnscollector/blob/2e1b20302c18e560cf5354454611419e0895f8d3/collectors/powerdns_processor.go#L203

Please add a conversion factor (* 1e3) to fix this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0