REST API query for year-long data
Posted: Mon Jan 20, 2020 5:01 am
Hello and good day,
when we query the Nagios XI Rest api for the statehistory of past year's January of 2019 we receive over 10k logs.
query url:
querying the logentries tab for the same period yields NO results.
query url:
We can see that the .rrd files contain data for the whole year.
Does the fault lie within the query url or is there a hardcoded limit to the length of the data storage?
What would be the correct urls for us to query in order to get the statehistory and logentry data of the whole year (2019)?
Regards, Dimitrios Synapalos
when we query the Nagios XI Rest api for the statehistory of past year's January of 2019 we receive over 10k logs.
query url:
Code: Select all
https://<host>/nagiosxi/api/v1/objects/statehistory?apikey=<key>&starttime=1546300800&endtime=1548892800query url:
Code: Select all
https://<host>/nagiosxi/api/v1/objects/logentries?apikey=<key>&starttime=1571702400&endtime=1572480000Does the fault lie within the query url or is there a hardcoded limit to the length of the data storage?
What would be the correct urls for us to query in order to get the statehistory and logentry data of the whole year (2019)?
Regards, Dimitrios Synapalos