Compare commits

...

3 Commits

Author SHA1 Message Date
Asif Bacchus 2e978050b6 Added spacing for readability 2018-10-01 22:25:54 -06:00
Asif Bacchus ba2b728e88 Added section about detail level in service config file 2018-10-01 22:25:18 -06:00
Asif Bacchus 7470b2c1fa Added commented out Detail setting in the service defintion file 2018-10-01 22:20:17 -06:00
3 changed files with 33 additions and 1 deletions

View File

@ -15,6 +15,7 @@ archive already. Below are the details of each file.
- [Service definition file (/etc/logwatch/conf/services/cfddns.conf)](#service-definition-file-etclogwatchconfservicescfddnsconf)
- [LogFile Group file definition](#logfile-group-file-definition)
- [Report title](#report-title)
- [Detail level](#detail-level)
- [Service script (/etc/logwatch/scripts/services/cfddns)](#service-script-etclogwatchscriptsservicescfddns)
- [Detail levels](#detail-levels)
- [Timestamp processing script (/etc/logwatch/scripts/shared/sqfullstampanywhere)](#timestamp-processing-script-etclogwatchscriptssharedsqfullstampanywhere)
@ -112,6 +113,28 @@ modifying the line:
...
Title = "CloudFlare DDNS update"
```
### Detail level
If you want to set the *detail* level of this service differently from your
other services (which will use the *--detail* switch value or the value in your
*logwatch.conf*), then you can define that level here. By default, it appears
like this in the service configuration file:
```Ini
...
# Override the detail level for this service
# Remember the levels are: 0, 1-4, 5, 6+
# Detail = 0
```
Simply change it to the value you want enforced. For example, here I'm setting
it to output level 5 regardless of whatever settings everything else is using.
```Ini
# Override the detail level for this service
# Remember the levels are: 0, 1-4, 5, 6+
Detail = 5
```
## Service script (/etc/logwatch/scripts/services/cfddns)

View File

@ -1,8 +1,10 @@
# Location of your script's log file, -l parameter
LogFile = /path/to/your/cfddns.log
# Format of logrotate archives for your script. Example assumes compression and
# extension preservation
Archive = /path/to/your/logfile.ext.?.gz
# Apply the correct date/time filtering to match the format of the script's log
# We are using a custom pl script in /etc/logwatch/scripts/shared/
# You don't need to change this unless you have altered the 'stamp' variable in

View File

@ -1,2 +1,9 @@
# Name of the logfile group without any extension
LogFile = cfddns
Title = "CloudFlare DDNS update"
# Heading displayed on Logwatch's report for this service
Title = "CloudFlare DDNS update"
# Override the detail level for this service
# Remember the levels are: 0, 1-4, 5, 6+
# Detail = 0