summaryrefslogtreecommitdiffstats
path: root/example_config.toml
blob: 7a443b3e5b05f7d4921c5544299394460c8a6868 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# all three attributes are required for every item
# use unique aliases; only use letters/number or - and _
# do not use a dot in an alias
# only named captures will be used
# named capture need to match a numeric value (int or a float like 10.654321)
# \s, \d, \b a.s.o need to be escaped for toml

[[item]]
file = "/var/log/antikoerper/temp.zone1"
regex = "(?P<ts>\\d+)\\s(?P<temp>\\d+)"
alias = "tempmain"

[[item]]
file = "/var/log/antikoerper/os.load"
regex = "(?P<ts>\\d+)\\s(?P<load1m>\\d+\\.\\d\\d)\\s(?P<load5m>\\d+\\.\\d\\d)\\s(?P<load15m>\\d+\\.\\d\\d)\\s"
alias = "load"