Re: journalctl - configure date output persistent to short-iso

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



On Sun, 23 Jun 2019, at 00:22, Friedrich Strohmaier wrote:
> Anyone around who knows or did this already?

>From casually scimming the journalctl source code, unless I've overlooked something, it seems like only  journalctl  handles the presentation of the data in the specified OutputMode which is why there is no journald configuration option, because it's irrelevant to journald.

Inside journalctl, OutputMode is only set from external input via the -o CLI option.

Going by these facts, it seems like there is no way to  archieve what you want just with journalctl.

If that's correct,  there are 2 simple alternatives:

  * alias journalctl='journalctl -o foo'
  * Put a journalctl wrapper into a directory that is at the head of $PATH:

      #!/bin/sh
      exec /usr/sbin/journalctl -o foo "$@"



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux