Or any other log files/output? I’m open to any solution, but what I would like…

…is something where I can just click on a word or select some text and say “filter that out”

Something that colors different log levels differently, preferably automatically.

Something that can parse the “columns” and give me a nice quick list of values, like different unit names to filter out/solely include.

Something that lets me choose a time and go there. Something that lets me select only a specific timeframe of logs.

I know this can probably be done by going in/out of journalctl, recalling the last command and adding specific filter options… but it just feels slow. It’s so many keypresses when I could just right click on the word and -> “Filter out/Search for” or something.

2 points

journalctl -fu servicename

If I am concerned about a specific service, and can trigger the problematic behavior.

In my head it stands for “fuck you” ☺️

permalink
report
reply
5 points

Maybe something like Logdy? It does have specific documentation around journalctl

permalink
report
reply
2 points

Centralized logging like Graylog or Grafana Loki can help with a lot of this.

permalink
report
reply
1 point

I tried to setup Loki but the documentation was atrocious. Everything was outdated, referring to tools that were marked deprecated but documentation for the replacements just didn’t exist.

permalink
report
parent
reply
5 points

It might be a bit overkill but I use Grafana to do this (with Loki). It’s a pretty involved setup as well, but you can filter and search by content, or date/time. It’s doable on a desktop but mainly servers use it

permalink
report
reply
1 point
systemctl status <service>
permalink
report
reply
2 points

That is good but only shows the last 10-15 lines of the log, unless there is an arg to expand that, or a command to follow the log. I am aware of neither.

I usually use your suggested command to check if a service is up, then if it isn’t, use journalctl to find out why.

permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 6.5K

    Monthly active users

  • 4K

    Posts

  • 55K

    Comments