parent
1a667df39e
commit
88938f425b
40
7.1.2-Service-definition-file.md
Normal file
40
7.1.2-Service-definition-file.md
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
# Service definition file (/etc/logwatch/conf/services/backup.conf)
|
||||||
|
|
||||||
|
## LogFile Group file definition
|
||||||
|
|
||||||
|
The service file needs to know what group of log files it is responsible for processing. This MUST match the name of your *LogFile Group file*:
|
||||||
|
|
||||||
|
```Ini
|
||||||
|
LogFile = backup
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
|
If you change your LogFile Group filename, then update it here too without the *.conf* extension.
|
||||||
|
|
||||||
|
## Report title
|
||||||
|
|
||||||
|
The Logwatch output file (html or text) is divided into sections. You can define the title to be anything that has meaning for you. I have arbitrarily chosen *"System and Mailcow Backup"* but you can change it to anything you want by modifying the line:
|
||||||
|
|
||||||
|
```Ini
|
||||||
|
...
|
||||||
|
Title = "System and Mailcow Backup"
|
||||||
|
```
|
||||||
|
|
||||||
|
## 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
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user