4545. [func] Make dnstap-read output more functionally usable.
[RT #43642] 4544. [func] Add message/payload size to dnstap-read YAML output. [RT #43622]
This commit is contained in:
17
bin/tests/system/dnstap/ydump.py
Normal file
17
bin/tests/system/dnstap/ydump.py
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
try:
|
||||
import yaml
|
||||
except:
|
||||
print "I: No python yaml module, skipping"
|
||||
exit(1)
|
||||
|
||||
import subprocess
|
||||
import pprint
|
||||
import sys
|
||||
|
||||
DNSTAP_READ=sys.argv[1]
|
||||
DATAFILE=sys.argv[2]
|
||||
|
||||
f = subprocess.Popen([DNSTAP_READ, '-y', DATAFILE], stdout=subprocess.PIPE)
|
||||
pprint.pprint([l for l in yaml.load_all(f.stdout)])
|
||||
Reference in New Issue
Block a user