Navigation

    Netgate Discussion Forum
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    pfblockerng/dnsbl.log timestamp resolution?

    pfBlockerNG
    1
    1
    47
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      fabrizior last edited by

      /var/log/pfblockerng/dnsbl.log has thousands of log entries a second.
      Is it possible to extend the timestamp to log millisecond resolution?

      e.g.
      DNSBL Reject HTTPS,Mar 14 17:10:04.0000,graph.instagram.com

      I realize the [stupid] limitation that the FreeBSD "date" command has, lacking the %N format.
      $ date +%H:%M:%S.%N
      17:36:01.N

      That being the case, the system does have a proper clock... as demonstrated:
      $ perl -MTime::HiRes=gettimeofday -MPOSIX=strftime -e '($s,$us) = gettimeofday(); printf "%d.%06d\n", $s, $us' && date +%s
      1552599188.626554

      1 Reply Last reply Reply Quote 0
      • First post
        Last post