Re: Access journal log files within Docker Container using sd-journal API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for your help Lennart, that was indeed the problem.

Sebastian

On 09/03/2021 11:18, Lennart Poettering wrote:
> On Di, 09.03.21 10:49, Sebastian Borchers (sebastian@xxxxxxxxxxxxx) wrote:
>
>> Hello,
>>
>>> Does "journalctl --file=…" work?
>> You mean inside the container, right?
>> I installed systemd in the container and tried the following command:
>>
>> journalctl --file /var/log/journal/<machine-id>/system.journal
>>
>> and it printed: *Failed to open files: Protocol not supported*
> My guess is that your container runs a much older system version that
> the host, in particular host might be 246 or newer, and container
> might be older than that.
>
> See NEWS file of systemd, we added a new compression and other stuff in
> 246. If these features are used in a file you need a client library
> that supports them to access the features.
>
> Lennart
>
> --
> Lennart Poettering, Berlin
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux