How do I find specific lines in Log Files that are referenced by Ubuntu Logwatch like the ones marked below... within Amavis and postfix?
Going by date I can grep
all the instances of "warning"
or any other words (which I have been doing), but there must be a better way to identify those specific lines without guessing.
Is there a way to make the Watchlog logfile quote the exact line from the actual system logfile below the warning or state log line number?
How do you digest your Logwatch log file?
**text of the actual line**
marks those lines, it seems within a codeblock there is now way to turn things Bold (at least I couldn't find it)
################### Logwatch 7.4.3 (12/07/16) ####################
Processing Initiated: Tue Sep 22 06:25:23 2020
Date Range Processed: yesterday
( 2020-Sep-21 )
Period is day.
Detail Level of Output: 0
Type of Output/Format: mail / text
Logfiles for Host: mail
##################################################################
--------------------- Amavisd-new Begin ------------------------
**1 *Warning: Security risk**
**4 Miscellaneous warnings**
9 Total messages scanned ------------------ 100.00%
212.600K Total bytes scanned 217,702
...
---------------------- Amavisd-new End -------------------------
...
--------------------- Postfix Begin ------------------------
2 SASL authentication failed 2
**1 Miscellaneous warnings 1**
363.644K Bytes accepted 372,371
...
---------------------- Postfix End -------------------------
###################### Logwatch End #########################