LR_LOG2REPORT.IN(1)
π lr_log2report β LogReport's Lire Documentation, bestie edition β¨
okay so real talk: this is lr_log2report from the Lire docs, and she generates a report from a log file. That's the whole vibe. Let's get into it π«Ά
πΈ NAME πΈ
lr_log2report β literally generates a report from a log file, no cap π
β¨ SYNOPSIS β¨
lr_log2report [options] dlf_converter [ logfile ] [ output_file ]
lr_log2report --version
lr_log2report --help [dlf-converters|output-formats|report-templates]
π OPTIONS π
--help [section]β if you don't give her an argument, she prints usage info and dips. But the argument can be one of these iconic little numbers:dlf-convertersβ prints the list of available DLF converters and exits πoutput-formatsβ prints the list of available output formats and exits πreport-templatesβ prints the list of available report templates and exits π
--versionβ prints Lire's version and exits. that's it, that's the whole job π--output-format|-o output formatβ selects the output format she's gonna generate the report in β¨--template|-t nameβ uses the report configuration named name to generate the report π¦
π DESCRIPTION π
So lr_log2report reads a log file from STDIN, or from the argument you passed her, and outputs a formatted Lire report on STDOUT or into the output_file argument. The format of the log file gets specified using the dlf_converter argument. And if you wanna see a list of all the currently available DLF converters, just hit her with the --help dlf-converters option, iykyk π«
If your log comes in compressed, no worries bestie β she uncompresses it on the fly, using gzip(1). slay π§
WARNING β οΈπ: this command outputs binary data on the terminal for all output formats excepttxtandxml. So when you're using those other formats, you should redirect stdout to a file. not me warning you twice, fr fr.
In the case where the output format is html, the output_file argument gets interpreted as a directory name. That directory gets created if needed, and it'll hold the various html files. And in case this argument is omitted, a tar(1) file should be output on STDOUT β but see the BUGS section below, because π
WARNING β οΈπ₯: running this command on big logfiles generally means you'll need lots of free diskspace. See Lire::LrCommand(3pm) for the details, bestie πΈ
β EXAMPLES β
To process a Postfix log and display the report as text, use:
$ lr_log2report postfix /var/log/mail.log
To process a Postfix log and create an HTML report in a directory, use:
$ lr_log2report -o html postfix /var/log/mail.log postfix-report
ate, no crumbs π
π BUGS π
If
--output html
is specified, then both logfile and output_file need to be specified. And specifying "-" (or "/dev/stdin") as logfile is supported, so this:
$ tai64nfrac < /var/log/qmail-send/current | \
lr_log2report qmail --output html - /tmp/report
will work. periodt π
π¦ SEE ALSO π¦
lr_log2mail(1), lr_xml2report(1), lr_xml2mail(1), lire(1), lire(7), Lire::LrCommand(3pm), and the documentation in the Lire User Manual πβ¨
π AUTHORS π
- Joost van Baal
<joostvb@logreport.org> - Francis J. Lacoste
<flacoste@logreport.org>
π VERSION π
$Id: lr_log2report.in,v 1.100 2006/10/04 10:19:17 vanbaal Exp $
π COPYRIGHT π
Copyright (C) 2000-2004 Stichting LogReport Foundation LogReport@LogReport.org
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.
and that's the whole page, bestie π«Άπ this was Lire 2.1.1, dated 2025-09-28 β main character documentation energy only, mwah πβ¨
π¦ 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