cs_show_error_patterns(8)

πŸ“¦ version 3.1.3, in opensuse-leap 16.0

πŸ’… cs_show_error_patterns

okay so bestie, welcome to cs_show_error_patterns(8) β€” it's a ClusterTools2 situation and honestly it's giving "log detective" ✨


🌸 NAME

cs_show_error_patterns β€” lowkey searches your log files for known error patterns, no cap πŸ”


πŸŽ€ SYNOPSIS

cs_show_error_patterns [OPTION]

πŸ¦‹ DESCRIPTION

so here's the vibe: cs_show_error_patterns goes through your log files looking for known error patterns, fr fr. Then it prints out the total number of matches for each pattern β€” that's it, that's the whole main character moment πŸ‘‘

like, it's not doing anything fancy, it's just counting how many times each known oopsie shows up. iconic behaviour honestly.


✨ OPTIONS ✨

  • --help β€” shows help. that's the whole thing 🫢
  • --version β€” shows the version. yup πŸ’œ
  • --writecfg β€” shows some internal variables πŸ‘€
  • --zip β€” searches compressed logs too. heads up though: this could take some time 😭 like it's gonna be a minute, grab a snack πŸ“

πŸ’€ EXIT STATUS

  • 0 β€” successful program execution, slay πŸ’…
  • >0 β€” usage, syntax or execution errors. not slay. πŸ™ˆ

πŸ”₯ EXAMPLES

bestie this one's a banger, fr:

# cs_show_error_patterns | grep -v "= 0$"

that searches in the current log files and shows only the patterns that match at least one time β€” so you're not sitting there scrolling through a million = 0 lines like 😭 periodt, we love a filtered vibe check.


🌈 FILES

  • /usr/sbin/cs_show_error_patterns β€” the program itself. the actual star of the show ⭐
  • /etc/ClusterTools2/cs_show_error_patterns β€” the configuration. the settings, iykyk 🧚
  • /var/log/ β€” the directory with log files. where all the drama lives πŸ‘‘

😭 BUGS

okay real talk, listen up:

  • This script depends on LC_MESSAGES respective RC_LANG set to en_US or C. so like, if your locale isn't one of those, things get weird.
  • On SLES12, only a fraction of entries might be found. not the whole picture, just a lil slice 🍰
  • Feedback is welcome, please mail to feedback@suse.com β€” they literally want to hear from you πŸ’Œ

🌸 SEE ALSO

grep(1), dmesg(1), syslog(8), logrotate(8), mcelog(8), journalctl(8), ClusterTools2(7)

bestie go read those too, expanding your brain is main character energy 🧠✨


(c) 2011-2019 L.Pinne, Germany.

cs_show_error_patterns comes with ABSOLUTELY NO WARRANTY β€” like none, zero, zilch, don't come for them if it breaks πŸ’€

For details see the GNU General Public License at http://www.gnu.org/licenses/gpl.html


πŸŽ€ and that's the page!! this is cs_show_error_patterns(8) from ClusterTools2, dated 01 Nov 2019 β€” mwah, go forth and grep responsibly, bestie πŸ’–πŸ¦‹

πŸ“¦ where this page comes from