Dashboard query inspect
Posted: Tue Nov 08, 2016 9:14 am
Dear Support,
I would like to export result of one my dashboard query to file.
As i see, it is not possible from GUI, so i generate the query on inspect button and tried to run from console.
But I got wrong result. It seems that I get the first few records from the entire log repository.
Could you please help me?
Thanks in advance!
Regards,
Zoli
I would like to export result of one my dashboard query to file.
As i see, it is not possible from GUI, so i generate the query on inspect button and tried to run from console.
But I got wrong result. It seems that I get the first few records from the entire log repository.
Could you please help me?
Thanks in advance!
Regards,
Zoli
Code: Select all
curl -XGET 'https://lvpapp4010.hu.cre.insim.biz/nagioslogserver/api/backend/logstash-2016.11.08,logstash-2016.11.07,logstash-2016.11.06/_search?pretty&token=165a194405eed2136c07cf986ce7a34d5047a2bc' -d '{
"facets": {
"0": {
"date_histogram": {
"field": "@timestamp",
"interval": "1d"
},
"global": true,
"facet_filter": {
"fquery": {
"query": {
"filtered": {
"query": {
"query_string": {
"query": "*"
}
},
"filter": {
"bool": {
"must": [
{
"range": {
"@timestamp": {
"from": 1478419203029,
"to": 1478776563029
}
}
},
{
"fquery": {
"query": {
"query_string": {
"query": "*NNHQMS*"
}
},
"_cache": true
}
}
]
}
}
}
}
}
}
}
},
"size": 0
}'