1
0
Fork 0
telegraf/plugins/parsers/xpath/testcases/multisensor_explicit_basic.conf

18 lines
288 B
Text
Raw Permalink Normal View History

# 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'"