Importing query data
Posted: Fri Jan 30, 2015 7:45 pm
This is an example query result that I have exported to json, json2.txt contins the query body
curl -XGET 'http://xx.xx.1.246/nagioslogserver/inde ... 0b1d990a1a' -d json2.txt > test.json
I want to be able to convert this json into csv format. But when I put it through converter it complains about validity of json file. I used json validator and it complains on every message
{
"_index":"logstash-2015.01.30",
"_type":"syslog",
"_id":"5dfs8ONnTbWYr9w8-gfhqg",
"_score":1,
"_source":{
"message":"connect from unknown[
10.xx.xx.xxx
]",
Assuming that json file generated is the same everytime, how can I get rid of this issue?
curl -XGET 'http://xx.xx.1.246/nagioslogserver/inde ... 0b1d990a1a' -d json2.txt > test.json
I want to be able to convert this json into csv format. But when I put it through converter it complains about validity of json file. I used json validator and it complains on every message
{
"_index":"logstash-2015.01.30",
"_type":"syslog",
"_id":"5dfs8ONnTbWYr9w8-gfhqg",
"_score":1,
"_source":{
"message":"connect from unknown[
10.xx.xx.xxx
]",
Assuming that json file generated is the same everytime, how can I get rid of this issue?