Score:2

journalctl does not provide colored output

cn flag
PSS

I'm on Ubuntu 20.04, and journalctl will not provide colored output for my logs. I verified, and those logs do have colored output if not piped through journalctl. I configured my terminal as xterm-256color. I have tried the following:

  1. I tried applying -a option to journalctl.
  2. I tried setting SYSTEMD_COLORS=true.
  3. I tried setting SYSTEMD_COLORS=256.
  4. I tried applying -o cat option to journalctl.

I know that there are other ways to pipe the output through other log colorizers such as lolcat and ccze, to mention a few. However, I don't understand why it is not possible to use journalctl colorized if there are options that support it.

djdomi avatar
za flag
Does this answer your question? [journalctl: how to display colors in its output?](https://serverfault.com/questions/805775/journalctl-how-to-display-colors-in-its-output)
Score:-1
kr flag

install ccze

apt install ccze

then use it like

journalctl -fu serviceName | ccze
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.