Re: Nagios Log Server Reporting
Posted: Tue Aug 22, 2017 3:08 pm
Attached a output file, however it contains lot of other information which is not needed. If there a way to filter it?
Support for Nagios products and services
https://support.nagios.com/forum/
Let us know if we can be of further assistance.sgiworks wrote:ok, let me try and I will get back to you with results. Thanks for guiding me through this new process.
Something like this should work:mcapra wrote:You should be able to do that in the query itself with the fields parameter:
https://www.elastic.co/guide/en/elastic ... est-fields
Code: Select all
{
"fields": ["field_1", "field_2", "field_n"],
"query": {
## query here
}
}
Code: Select all
[root@nagios ~]# curl -XGET 'http://esprod00:9200/someindex/_search?size=1&pretty' -d '{"query":{"bool":{"should":[{"query_string":{"query":"*"}}]}}}'
{
"took" : 267,
"timed_out" : false,
"_shards" : {
"total" : 4,
"successful" : 4,
"failed" : 0
},
"hits" : {
"total" : 46835893,
"max_score" : 1.0,
"hits" : [ {
"_index" : "someindex",
"_type" : "request",
"_id" : "AV5QjP4d_YLmLq5Ed9h3",
"_score" : 1.0,
"_source":{"field1":"value1","field2":"value2","field3":"value3"}
} ]
}
}
Code: Select all
[root@nagios ~]# curl -XGET 'http://esprod00:9200/someindex/_search?size=1&pretty' -d '{"fields":["field3"],"query":{"bool":{"should":[{"query_string":{"query":"*"}}]}}}'
{
"took" : 267,
"timed_out" : false,
"_shards" : {
"total" : 4,
"successful" : 4,
"failed" : 0
},
"hits" : {
"total" : 46835893,
"max_score" : 1.0,
"hits" : [ {
"_index" : "someindex",
"_type" : "request",
"_id" : "AV5QjP4d_YLmLq5Ed9h3",
"_score" : 1.0,
"_source":{"field3":"value3"}
} ]
}
}
We don't have a specific date, Q4 would mean sometime before the end of the year.sgiworks wrote:Just discovered that Nagios LogServer version 2.0 will have ability to export table data via CSV, which is planned to be released in Q4 of 2017. Correct? Do we know if this will be available in October 2017?
https://www.nagios.com/roadmaps/?_ga=2. ... 1504900374
Regards,
Swapnil