Line parsing with empty values
You can also specify how the probe parses lines that contain empty fields (that is, adjacent delimiters with no data in between) using the ParserIgnoreEmptyFields property.
For example, the ParserSingleLines property is set to true, the ParserElementDelimiter property is set to |, and the probe receives the following line:
"Hostname|PortNumber|Summary|||Severity"
This line contains empty fields between Summary
and Severity
.
If the ParserIgnoreEmptyFields property is set to true, the probe ignores the empty fields and so parses the line into the following tokens:
Token1="Hostname",Token2="PortNumber",Token3="Summary",Token4="Severity"
If the ParserIgnoreEmptyFields property is set to false, the probe generates tokens with no values for the empty fields and so parses the line into the following tokens:
Token1="Hostname",Token2="PortNumber",Token3="Summary",Token4="",
Token5="", Token6="Severity"