]> git.proxmox.com Git - pmg-docs.git/blame - pmg-log-tracker.adoc
installation: fix codeblock rendering in zfs performance tips section
[pmg-docs.git] / pmg-log-tracker.adoc
CommitLineData
00dbdd05
ML
1[[chapter_pmg-log-tracker]]
2ifndef::manvolnum[]
3pmg-log-tracker - Backend for the Tracking Center
4=================================================
5:pmg-toplevel:
6endif::manvolnum[]
7
8`pmg-log-tracker` is the backend for the Tracking Center. It parses the syslog
9files in `/var/log/` for mail information. You can specify a different file to
10parse, for example the mail log `/var/log/mail.log`, using the `-i` option.
11
12As an example, parsing the mail.log file for everything between the 1st and 15th
13of July would be possible with the following command:
14----
15pmg-log-tracker -i /var/log/mail.log -s "2021-07-01 00:00:00" -e "2021-07-15 23:59:59"
16----
17
18Start time `-s` and end time `-e` are optional. By default the end time will be
19the current time and the start time will be 0:00 of the current day.
20
21With the `--verbose` option, additional info will be printed, such as the
22complete log for every mail.
23
24It is also possible to filter the log entries based on hostname, from address,
25to address, and other parameters. For a complete overview of all available
26options, see `pmg-log-tracker --help`.
27
28As a side effect of parsing the syslog, which doesn't contain information about
29the year of the entries, the year passed to the `-s` and `-e` options has to
30be the current one, rather than the one in which the logs were actually created.
31
32
33ifdef::manvolnum[]
34include::pmg-copyright.adoc[]
35endif::manvolnum[]
36