-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Additional output JSON #3
Comments
Capture sample with 'add_output json' option set in config file:
|
Very useful. |
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. |
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. |
@hassaniqbal2k3 Just being curious. What db would you plan to use? @jelu Sure, you are welcome to open a PR. |
@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. |
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 }
]
}
]
} |
@jelu That looks good! Having timestamps instead of ISO8601 is also fine. |
Hello,
Here is a proposal for adding an additional DSC output to the already existing XML one.
I already discussed a little of this matter on the mailing list but did not get quite a finale answer, except that some subscribers of the mailing list seem to be interested.
Basically I suggest to add an option 'add_output' that allows to generate JSON or Extended JSON (MongoDB) along with XML files.
JSON is a popular format and can be processed by many databases: MongoDB, ElasticSearch, PostgreSQL, SQL Server 2016, ...
This would allow users to have easy processing of DSC outputs for their businesses.
Code changes can be seen in PR #2. Any feedback is welcome.
The text was updated successfully, but these errors were encountered: