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

Lucio Correia luciojhc at linux.vnet.ibm.com
Wed Feb 10 16:49:01 UTC 2016


On 10-02-2016 13:58, Walter Niklaus wrote:
> This is a great new feature:  +1
>
> I have one question on the backend side section.
>
> On 10.02.2016 15:36, Aline Manera wrote:
...
>>> 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
>>>
> Are we planning with any archiving or wrap-around feature for the JSON
> file ? If we are simply accumulating the entries in the same file, I'm
> concerned that at a certain point we may end with a huge file and run
> into performance issues.
> As a start we could define a simple wrap-around mechanism and leave the
> responsibilty for archiving to the administrator.

The plan is to have file size limit and log rotation. There are some 
logging facilities in Python which allow for that.

-- 
Lucio Correia
Software Engineer
IBM LTC Brazil




More information about the Kimchi-devel mailing list