Comments (8)
Capture sample with 'add_output json' option set in config file:
{
"pcap_stats": {
"start_time": "2016-03-04T09:58:00Z",
"stop_time": "2016-03-04T09:59:00Z",
"dimensions": [ "ifname", "pcap_stat" ],
"data": [
{
"ifname": "eth0",
"pcap_stat": [
{ "val": "pkts_captured", "count": 588 },
{ "val": "filter_received", "count": 588 }
]
}
]
},
"priming_responses": {
"start_time": "2016-03-04T09:58:00Z",
"stop_time": "2016-03-04T09:59:00Z",
"dimensions": [ "All", "ReplyLen" ],
"data": [ ]
},
"priming_queries": {
"start_time": "2016-03-04T09:58:00Z",
"stop_time": "2016-03-04T09:59:00Z",
"dimensions": [ "Transport", "EDNSBufSiz" ],
"data": [ ]
},
"qtype_total": {
"start_time": "2016-03-04T09:58:00Z",
"stop_time": "2016-03-04T09:59:00Z",
"dimensions": [ "All", "Qtype" ],
"data": [
{
"All": "ALL",
"Qtype": [
{ "val": "12", "count": 6 },
{ "val": "1", "count": 4 },
{ "val": "28", "count": 1 }
]
}
]
},
"qname_qtype": {
"start_time": "2016-03-04T09:58:00Z",
"stop_time": "2016-03-04T09:59:00Z",
"dimensions": [ "Qname", "Qtype" ],
"data": [
{
"Qname": "github.com",
"Qtype": [
{ "val": "1", "count": 3 }
]
}
]
}
}
from dsc.
Very useful.
from dsc.
i have a need to process the dns stats and store in db for further analysis. was thinking of parsing the xml output. this json output support was much needed.
from dsc.
Thanks for the PR, I will be looking at this next week. Just recently join DNS-OARC so I will need some time to setup a development environment to test this. There are a few things I see right away and I may do a PR to your branch later on with a few changes.
from dsc.
@hassaniqbal2k3 Just being curious. What db would you plan to use?
@jelu Sure, you are welcome to open a PR.
from dsc.
@McStork Cassandra is under consideration, but after looking at the extended json and mongo db combo that you have mentioned, we will study this as well.
from dsc.
Format has changed because the dataset name is not unique. Base JSON object is now an array in which a list of dataset objects resides. ISO8601 dates have been removed to conform to the XML output.
{
"name": "pcap_stats",
"start_time": 1457602000,
"stop_time": 1457602020,
"dimensions": [ "ifname", "pcap_stat" ],
"data": [
{
"ifname": "eth0",
"pcap_stat": [
{ "val": "pkts_captured", "count": 14 },
{ "val": "filter_received", "count": 14 }
]
}
]
}
from dsc.
@jelu That looks good! Having timestamps instead of ISO8601 is also fine.
from dsc.
Related Issues (20)
- doh
- doh
- doh
- GeoIP discontinued, use libmaxminddb HOT 1
- Debian install instructions incomplete HOT 2
- unable to pcap thread run: nothing to capture on HOT 2
- DNSTAP support HOT 1
- Missing configure script in release tarballs HOT 1
- Response time indexer not working HOT 2
- Prometheus exporter interface for dsc? HOT 3
- Debian package for the 2.8.1 release not available HOT 2
- Stretch builds unavailable HOT 1
- List of Delegated TLDs in query_classification_index.c is v old HOT 1
- DNSTAP - uv_pipe_bind() failed: address already in use HOT 2
- DSC with DNSTAP configured logging debug on syslog HOT 2
- Compatibility issues with musl on Alpine HOT 1
- client_subnet indexer IPv6 performance issues HOT 6
- DNSTAP protocols HOT 3
- Remove hardcoded chmod from the code and use normal umask for permissions HOT 1
- Wrong TLDs when Public Suffix List is enabled: HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dsc.