mirror of
https://github.com/adulau/pdns-toolkit.git
synced 2024-12-13 04:17:22 +00:00
Simple dnscap patch to have epoch date as output
This commit is contained in:
parent
7b26fb3dfa
commit
daeb9a1a4a
1 changed files with 12 additions and 1 deletions
|
@ -10,7 +10,8 @@ The data store format is described in ./doc/datastore-format.txt
|
|||
Installation
|
||||
------------
|
||||
|
||||
This is the minimal set to run a standalone passive-dns.
|
||||
This is the minimal set to run a standalone passive-dns using dnscap
|
||||
as a source for the DNS packets.
|
||||
|
||||
* Install [redis](http://www.redis.io/).
|
||||
* Start ./src/redis-server
|
||||
|
@ -25,3 +26,13 @@ This is the minimal set to run a standalone passive-dns.
|
|||
|
||||
The install process will be automated in the next release.
|
||||
|
||||
dnscap
|
||||
------
|
||||
|
||||
Patch dnscap.c (from branches/wessels) to output the date in epoch format.
|
||||
|
||||
- strftime(when, sizeof when, "%Y-%m-%d %T", tm);
|
||||
+ strftime(when, sizeof when, "%s", tm);
|
||||
|
||||
When having multiple flows of DNS queries, it's better to convert the date
|
||||
as soon as possible.
|
||||
|
|
Loading…
Reference in a new issue