1
0
Fork 0
telegraf/plugins/parsers/xpath/testcases/multisensor_explicit_basic.conf
Daniel Baumann 4978089aab
Adding upstream version 1.34.4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-05-24 07:26:29 +02:00

17 lines
288 B
Text

# Simple example for using the xml-parser.
#
# File:
# testcases/multisensor.xml
#
# Expected Output:
# xml,gateway=Main seqnr=12i,ok=true
#
[tags]
gateway = "substring-before(/Gateway/Name, ' ')"
[fields_int]
seqnr = "/Gateway/Sequence"
[fields]
ok = "/Gateway/Status = 'ok'"