[Kimchi-devel] [RFC] [Wok] Feature: User Activity Log

Aline Manera alinefm at linux.vnet.ibm.com
Wed Feb 10 14:48:52 UTC 2016



On 02/08/2016 04:46 PM, Lucio Correia wrote:
> On 08-02-2016 15:25, Jose Ricardo Ziviani wrote:
>> Will it be possible to create more complex queries such as
>> ?plugin=kimchi&user=root
> Yes, definitively.
>
> and time frames
>> ?plugin=kimchi&from=20160101&to=20160105
> This was not considered in original RFC. I don't think of it as an 
> essential feature for this first version. Let's hear from others to 
> see more opinions.
>

+1 for this.

But I agree we can work on it as an improvement after getting the first 
version of this feature upstream.

>
>>
>> On 05-02-2016 18:51, Lucio Correia wrote:
>>> User Activity Log functionality
>>> -------------------------------
>>> Host admin wants to have access to all actions performed by Wok users,
>>> either through API, web user interface, with the option to download 
>>> User
>>> Acitivity Log in a text file.
>>>
>>>
>>> REST API
>>> --------
>>> Only one API will be exposed:
>>> - GET /logs - Collection of log entries for all installed plugins.
>>> Examples of filtering:
>>> /logs?plugin=kimchi - All log entries for Kimchi plugin
>>> /logs?user=admin - All log entries from admin user
>>> /logs?request=PUT - All log entries relative to PUT requests
>>> /logs?date=20160110 - All Jan 10th's log entries
>>>
>>>
>>> Backend design
>>> --------------
>>> - Define activity texts for each currently implemented activity of all
>>> plugins
>>> - Implement method to retrieve the activity texts in Wok and all 
>>> plugins
>>> - Log events to a JSON file in the host file system. Each user request
>>> received by Wok will generate an entry in the respective log file.
>>> Fields to be saved for each entry: plugin, datetime, user, request type
>>> (PUT, POST, GET, DELETE), activity text (i.e. "create guest 
>>> 'vm-sample'")
>>> - Implement code for retrieving and filtering log events by the fields
>>> above
>>>
>>>
>>> Web User interface design
>>> -------------------------
>>> Create a new tab: "User Activity" - available only to Wok admins
>>> - Search fields to filter log events by installed plugin, date, user,
>>> and/or request type
>>> - Show search results in a table containing plugin, datetime, user,
>>> request type, activity text
>>> - User may sort the table by plugin, datetime, user or request type
>>> - Button for downloading current search results as a txt file
>>>
>>>
>>
>
>




More information about the Kimchi-devel mailing list