gamelinux / passivedns

A network sniffer that logs all DNS server replies for use in a passive DNS setup
http://gamelinux.org/
1.67k stars 372 forks source link

Track timestamp in log files as YYYY-MM-DD HH:MM:SS #58

Closed d2inco closed 9 years ago

d2inco commented 9 years ago

Made modifications to track the timestamp in the logfiles as YYYY-MM-DD HH:MM:SS 'field' parameter 'H' adds this capability.

(figured out how to do a pull request, i will this to you in a bit)

thus commented 9 years ago

Closing this issue, since the pull request was accepted.

kkplein commented 7 years ago

Not sure if replying in this closed thread is the right way.... but... how do we enable this behaviour? Now we're getting timestamps like this: 1479213824.636482||10.19.231.6||192.x.y.z||IN||a1402.dspw40.akamai.net.||A||77.67.4.50||13||1 and we would like YYYY-MM-DD HH:MM:SS

d2inco commented 7 years ago

passivedns -h shows you help text. Use a "H" in your "-f" (fields) parameter fot YMD-HMS format timestamp.

kkplein commented 7 years ago

Hi d2imco,

Thanks, the -h switch turned out to be very useful! :-)