[systemd-devel] [question] is it possible with systemd-journalctl to change the location to save logs in other location?

ionut n ionut_n2001 at yahoo.com
Sun Aug 16 17:01:33 UTC 2020


 I understand, but there is no option or any parameter in systemd  to not do through mount?
    Pe duminică, 16 august 2020, 19:48:51 EEST, Tomasz Torcz <tomek at pipebreaker.pl> a scris:  
 
 On Sun, Aug 16, 2020 at 04:35:48PM +0000, ionut n wrote:
> 
> Hi SystemD Team,

  It's "systemd" (all lowercase).

> 
> One question.
> 
> Is it possible with systemd-journalctl to change the location to save logs in other location?
> 
> My system is volatile (tmpfs) and I have another location available to keep certain logs.
>    
>    - /dev/root or / is tmpfs
>    - /external-persistent0 is ext4 or xfs
> 
> I would like to save the logs here:
> /external-persistent0/journal
> 
> Is it possible to do this?
> In the current documentation for journalctl I have not seen anything about this.

  Journal stores persistent logs in /var/log/journal, so best course of
action would be to mount --bind /external-persistent0/journal /var/log/journal
A symlink from /var/log/journal to /external-persistent0/journal may
work, too.

-- 
Tomasz Torcz                        To co nierealne – tutaj jest normalne.
tomek at pipebreaker.pl              Ziomale na życie mają tu patenty specjalne.

_______________________________________________
systemd-devel mailing list
systemd-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20200816/f9b18986/attachment.htm>


More information about the systemd-devel mailing list