Skip to content

Commit

Permalink
fix issue #360 - bad timestamp on powerdns collector
Browse files Browse the repository at this point in the history
  • Loading branch information
dmachard authored Jul 28, 2023
1 parent 2e1b203 commit 2378637
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion collectors/powerdns_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ RUN_LOOP:
dm.DNS.Id = int(pbdm.GetId())
dm.DNS.Length = int(pbdm.GetInBytes())
dm.DnsTap.TimeSec = int(pbdm.GetTimeSec())
dm.DnsTap.TimeNsec = int(pbdm.GetTimeUsec())
dm.DnsTap.TimeNsec = int(pbdm.GetTimeUsec()) * 1e3

if int(pbdm.Type.Number())%2 == 1 {
dm.DNS.Type = dnsutils.DnsQuery
Expand Down
1 change: 1 addition & 0 deletions doc/collectors.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ powerdns:
sock-rcvbuf: 0
reset-conn: true
chan-buffer-size: 65535
add-dns-payload: false
```

### File Ingestor
Expand Down

0 comments on commit 2378637

Please sign in to comment.