Scylla output to systemd journal - I do not see the priorities

101 views
Skip to first unread message

Tzach Livyatan

<tzach@scylladb.com>
unread,
Nov 30, 2015, 3:46:01 AM11/30/15
to ScyllaDB users
Looking at Scylla logs at systemd journal, I do not see the prio of each row.
Its obviously there, since I can filter it with
journalctl _COMM=scylla -p err..emerg

Whats the trick to display it?
Should Scylla explicitly add the prio to each log row?

Avi Kivity

<avi@scylladb.com>
unread,
Nov 30, 2015, 3:55:35 AM11/30/15
to scylladb-users@googlegroups.com
journalctl color codes the lines.
--
You received this message because you are subscribed to the Google Groups "ScyllaDB users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scylladb-user...@googlegroups.com.
To post to this group, send email to scyllad...@googlegroups.com.
Visit this group at http://groups.google.com/group/scylladb-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/scylladb-users/CAEB7%3D3ZACT%2B%2ByUpLwhQF332w1pwTF1vXr0Cjxqp9U75t6HFkeQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Nadav Har'El

<nyh@scylladb.com>
unread,
Nov 30, 2015, 4:16:51 AM11/30/15
to scylladb-users@googlegroups.com
On Mon, Nov 30, 2015 at 10:55 AM, Avi Kivity <a...@scylladb.com> wrote:
journalctl color codes the lines.

Got to love systemd.

Not only did they throw away the Unix notion of the text file (/var/log/message) they also threw away the notion of the pipe, by preventing things like

       journaltcl | grep ...

from working as expected: Not only is some of the fields shown as "color code", when journalctl detects the output is not a tty, it even doesn't do this color coding (!).

Journalctl's built-in filtering can be considered by some an acceptable replacement for grep.
To me it just looks like a 1980s-style MS-DOS command. Those worked well if the authors of the command remembered to add all the features you wanted. If they forgot one feature (like you want here - to make the priority visible in a textual format), you're screwed.


Reply all
Reply to author
Forward
0 new messages