I am working on pulling logs to avoid losing them since we only have 10 days of retention.
I need a way to retrieve a total log count available using the management v2 API?
I may be missing something but if the objective is to perform a sort of log shipping I would expect the usage of the from
checkpoint approach and no need for a total log count. Nonetheless, based on the documentation in the API explorer for the logs endpoint you can perform a search by criteria (with a criteria that matches everything) and then use the include_totals
option so that the response contain information about total log count.
Thank you, I don’t know how I completely missed that in the documentation.