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

Bug #1604901 reported by Jason Hobbs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Wishlist
Andres Rodriguez
2.0
Fix Released
Undecided
Unassigned

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

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
Revision history for this message
Andres Rodriguez (andreserl) wrote : Re: Provide ability to retrieve events based on (range) of date/time

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)
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.