LR_VENDOR_CRON.IN(1)
π LR_VENDOR_CRON.IN(1) β like, the manual page, bestie π
okay so this is lr_vendor_cron.in(1), straight out of LogReport's Lire Documentation β yes the whole thing, we're doing this π
β¨ NAME β¨
lr_vendor_cron β it generates Lire reports from, like, every log file it can find on your system π¦ no cap.
πΈ SYNOPSIS πΈ
lr_vendor_cron daily|weekly|monthly
three moods. pick one. periodt.
π§ DESCRIPTION π§
so lr_vendor_cron is literally designed to be invoked by cron. that's its whole main character energy π
on systems that support /etc/cron.d/, you can summon it by creating /etc/cron.d/lire, and that file should read, like, exactly this:
02 5 * * * root /usr/sbin/lr_vendor_cron daily
22 5 * * 0 root /usr/sbin/lr_vendor_cron weekly
42 5 1 * * root /usr/sbin/lr_vendor_cron monthly
iconic. slay. π«Ά
here's the vibe: lr_vendor_cron reads the files /etc/sysconfig/lire.d/*.cfg and /etc/default/lire.d/*.cfg. for each log file, one of these files should exist (like, one cfg per logfile, matching set, no strays π
). and the files should set these shell variables:
daemonβ the name of a binary that generated the specific log. it's used to test whether the*.cfg-file is actually suitable for the current system. and if you wanna generate a log for something where no daemon is present on the current system? just use a placeholder likedaemon=/bin/true. problem solved, bestie β¨serviceβ a Lire service, e.g.sendmail,logfileβ e.g./var/log/mail.log.1.gz,filterβ e.g.'gzip -dc'or'zcat | grep sendmail', androtateperiodβ one of the supportedlr_vendor_cronarguments.extraoptsβ optional! extra options passed tolr_log2mail(1). set this to e.g.'--template www_local'.
after it's done parsing the configuration files, lr_vendor_cron invokes lr_log2mail(1) on the filter'ed log file. reading and filtering the log happens as root, and lr_log2mail is run as user lire, using su(1). output is fed to logger(1). the pipeline is giving very much seamless π
π₯ SECURITY π₯
okay so this is the serious part, bestie, pay attention π
lr_vendor_cron is supposed to be run as root. BUT β and this is a big but β please note that this script is distributed WITHOUT ANY WARRANTY. ngl that's in all caps for a reason π
if you don't like the idea of running such a script as root, make sure your lire user has read access to all the log files you'd like to get processed, and adapt this script. simple as that.
we supply this script mainly for people building packages. on many Unix and GNU/Linux distributions, it's hard to enforce log file readability by the lire user β like, genuinely hard π β and this script is mainly a way to work around that. that's the whole point of it. periodt.
π ENVIRONMENT VARIABLES π
lr_vendor_cron honours DEBUG, CONFDIR, PRIORITY (for the logger(1) call), and LIREUSER. π
beware! β οΈPRIORITYas used here is independent of theLR_FACILITYas set in/etc/lire/defaults. and heads up: this script does not use any of the settings in/etc/lire/defaults. none. zero. not a single one π
β VERSION β
$Id: lr_vendor_cron.in,v 1.14 2006/07/23 13:16:33 vanbaal Exp $
π COPYRIGHT π
Copyright (C) 2002, 2003 Stichting LogReport Foundation LogReport@LogReport.org Copyright (C) 2005 Joost van Baal
this program is part of Lire. π
Lire is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
this program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
you should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with http://www.gnu.org/copyleft/gpl.html. π¦
π AUTHORS π
Francis J. Lacoste <flacoste@logreport.org>, Joost van Baal <joostvb@logreport.org> β literal legends, we stan π
and that's the whole page, bestie! this was Lire 2.1.1, dated 2025-09-28 β go forth and generate those reports, you've absolutely got this π β¨πΈ
π¦ where this page comes from
- arch rolling: lire 2.1.1-8 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms