SYSLOG_TO_SVCLOG(8)
π NAME π
ok so: syslog_to_svclog β it logs your syslog messages into servicelog. that's the whole vibe. welcome to the <pink>ppc64-diag</pink> diagnostic tools corner of the man pages, bestie, it's cozy here π
β¨ SYNOPSIS β¨
syslog_to_svclog [ -b begin_time ] [ -e end_time | -F ]
[ -m message_file | -M ] [ -C catalog_dir ] [ -h ] [ -d ]
eyebrow raise at all those brackets? don't worry, we're going through every single one π«Ά
πΈ DESCRIPTION πΈ
okay so the tea: syslog_to_svclog reads the message file you give it (and if you don't give it one, it defaults to stdin). that file should be in the format that the syslogd daemon produces. for each line that matches a message documented in the message catalog, syslog_to_svclog logs an event to the servicelog database, as appropriate. β¨
typically, syslog_to_svclog logs only warning and error messages to servicelog β not debug or informational messages. she's picky like that and honestly? valid. π
when /var/log/messages or /var/log/syslog is the message file, syslog_to_svclog maintains a little "last-message" file. iconic little guy. it contains a copy of the last line read from /var/log/messages or /var/log/syslog that matched a message from the message catalog. π
so when a subsequent instance of syslog_to_svclog begins reading from /var/log/messages or /var/log/syslog, and no -b option is specified, syslog_to_svclog begins with the next message after the one in the "last message" file. the intent is to avoid logging the same event to servicelog multiple times. no duplicate spam in the group chat, periodt. π₯
π OPTIONS π
-bbegin_time β ignore messages with timestamps prior to begin_time. see "Timestamps." (yes, the quotes are her idea, she's fancy) β-Ccatalog_dir β use the message catalog in catalog_dir. the default is/etc/ppc64-diag/message_catalog. π¦-dβ print debugging output onstderr. loud and proud about it, love that for her π-eend_time β ignore messages with timestamps after end_time. see "Timestamps." π-Fβ do not terminate upon reaching the end of the message file. continue watching for, and processing, new messages as they arrive, as withtail -F. to terminatesyslog_to_svclog, send it a termination signal, as with CTRL+C. she's a "no thoughts head empty just vibing and watching" girlie π-hβ print help text and exit. the polite one. π«Ά-mmessage_file β read syslog messages from the specified file instead ofstdin. π-Mβ read syslog messages from system default location/var/log/messagesor/var/log/syslog.-Mimplies-F. noted! π
β° TIMESTAMPS β°
the following timestamp formats are recognized by syslog_to_svclog:
month day [ year ] [hh:mm[:ss]] β e.g., Feb 12 2010 14:30
month day hh:mm[:ss] [ year ]
day month [ year ] [hh:mm[:ss]] β e.g., 12 Feb 14:30
day month hh:mm[:ss] [ year ]
year-month-day [hh:mm[:ss]] β e.g., 2010-2-12 14:30:00
if no year is specified, syslog_to_svclog assumes that the timestamp is from the prior 12 months. if no hh:mm is specified, syslog_to_svclog assumes 00:00:00. she fills in the blanks herself, main character energy, iykyk π
π§ AUTHOR π§
written by Jim Keniston (jkenisto@us.ibm.com). conversion of format strings to regular expressions (for matching syslog messages to catalog entries) written by Jesse Larrew (jlarrew@us.ibm.com). two legends, one man page, we stan π
π FILES π
/etc/ppc64-diag/message_catalog/*β message catalog/var/log/ppc64-diag/last_syslog_eventβ last message matched from/var/log/messages
π SEE ALSO π
explain_syslog(8), servicelog(8), syslog(3) β go read those too, bestie, it's giving "expanded universe" πΈ
lowkey warning from your girl: -F literally means she will not stop. do not expect her to wander off on her own. send a termination signal, as with CTRL+C, or she's staying forever. π
k that's the whole page, no cap. this one's on the Linux tip, dated <purple>March 2010</purple>, and it's SYSLOG_TO_SVCLOG(8) in the ppc64-diag universe from back in the day. slay, go log some events responsibly πβ¨π·
π¦ where this page comes from
- opensuse-leap 16.0: ppc64-diag 2.7.10-160000.2.2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms