Closed KVInventoR closed 3 years ago
The timestamp in logs is extracted directly from the dnstap messages. Knowing this it can be completely different from your system time.
sorry, probably I give a bad explanation of this issue, let's skip difference between timezones.
general issue, that when I run dnstap_receiver in first time my system time and log timestap is the same (diff only timezones), but after sometime, like as in my previous example, after 10 minutes the difference between logs timestamp and system time more than 3 minutes.
if I will restart dnstap_receiver again, there won't be any difference and after sometime I will have the same issue with time leak more than 3 minutes.
For me this issue seems related to system load, I tested the same configuration with low load and didn't have such kind of issue, but when load was increased, I got a time leak beetween logs and system time.
Thanks for explanation, I will try to reproduce. In the meantime can you test with the fix https://github.com/dmachard/dnstap-receiver/commit/1ffccbc4f0a5d3df139b911eec92bfec1970df5d ?
looks like issue with metrics fixed also issue with timestamp
fix in release 3.0.0
Looks like I have 1 more bug
Found that over sometime I have delay in logs with timestamps and system time.
My current config is:
to reproduce the issue I used next:
My timezone is UTC+2 but as you can see, there is a lag between system time and the last record in log file, 3 minutes.