Host console logs service

Artem Senichev artemsen at gmail.com
Sat Oct 27 01:21:19 AEDT 2018


I have described the architecture and service capabilities:
https://github.com/YADRO-KNS/phosphor-hostlogger/blob/master/README.md

Please, look through and let me know what you think.

Best regards,
Artem Senichev
Software Engineer, YADRO.

On Wed, Oct 24, 2018 at 8:38 PM Sai Dasari <sdasari at fb.com> wrote:
> On 10/24/18, 8:56 AM, "openbmc on behalf of Artem Senichev" <openbmc-bounces+sdasari=fb.com at lists.ozlabs.org on behalf of artemsen at gmail.com> wrote:
>
>     Hi All,
>
>     As you know, OpenBMC contains obmc-console project that intended to
>     work with host's console. It's very useful that omc-console-server
>     stores last logs inside its ring buffer, but it would be better to
>     make the log collector more smarter.
>
>     On our VESNIN server, we have an own extension of obmc-console - it is
>     a standalone service that reads log messages from obmc-console-server,
>     marks each message with a timestamp and save it to an internal memory
>     buffer. We have a custom policy that determines how large a buffer can
>     be (limit by time or message numbers), in which cases the buffer
>     should be flushed to a file, and how many previous log files can be
>     saved on a flash drive (some kind of rotation).
>     By default the buffer has limit of 3000 messages and it flushed to a
>     file on every significant host state change (host on/off, OS boot
>     complete). This gives us the opportunity to store not only the latest
>     messages, but also the logs of the last boot process separately
>     (hostboot, skiboot, etc).
>
>     So, if you find this service useful for the OpenBMC project, we can
>     upload the source code to the community.
> Thanks Artem! Based on the description above, it looks like very useful feature. Few questions related to design are: Is this stand-alone service designed as a D-Bus service? How does this change the existing user interface with obmc-console i.e. any new CLI options change or behavior change? Can this be used from REST-API or Redfish? How to configure the custom policy to configure? Etc. It would be great if you could use the Design template @ https://github.com/openbmc/docs/tree/master/designs to explain the design details for helping in understanding and providing feedback.


More information about the openbmc mailing list