[doc] events API limit,before, after options not documented

Bug #1604901 reported by Jason Hobbs on 2016-07-20
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Wishlist
Andres Rodriguez
2.0
Undecided
Unassigned
Trunk
Wishlist
Andres Rodriguez

Bug Description

After discussion, the way to address this bug is to provide the ability to obtain events based on date/time. This would allow for better debugging.

Original bug report
--------------------
I'm trying to look up relatively recent events for one of my nodes, but the event log cli doesn't go that for back. It only shows 100 entries and it doesn't provide any mechanism for viewing ones before that.

Here's example output:
http://pastebin.ubuntu.com/20198692/

roaksoax pointed out to me I can use limit, before, and after to retrieve the logs using paging. The options are not documented in the cli.

Tags: oil Edit Tag help

Related branches

summary: - No way to retrieve complete event log through the cli
+ start, before, and after options are not documented for the event log
+ cli
description: updated
description: updated

If you want to learn how to use the events API to obtain events in different ranges, you can use the following:

http://pastebin.ubuntu.com/20205479/

summary: - start, before, and after options are not documented for the event log
- cli
+ Provide ability to retrieve events based on time
Changed in maas:
importance: Undecided → Wishlist
status: New → Triaged
milestone: none → next
summary: - Provide ability to retrieve events based on time
+ Provide ability to retrieve events based on (range) of date/time
description: updated
summary: - Provide ability to retrieve events based on (range) of date/time
+ [doc] events API limit,before, after options not documented
Changed in maas:
assignee: nobody → Andres Rodriguez (andreserl)
Gavin Panella (allenap) wrote :

From the original bug description:

> The output includes next and prev URLs, but these don't work, because
> they don't include the filtering I'm doing (filtering by hostname).

This is a valid bug, and I've refiled it as bug 1605124.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers