rsyslog / liblognorm

a fast samples-based log normalization library
http://www.liblognorm.com
GNU Lesser General Public License v2.1
99 stars 64 forks source link

create optional tag #328

Open davidelang opened 5 years ago

davidelang commented 5 years ago

we have the alternative option, but it doesn't work if one branch is blank.

and example being, when parsing a csv file, you may have a quoted string or nothing between commas

another example, syslogtag may have a : at the end or not, depending on if it was parsed with the old RFC or new RFC parser.

sometimes you can work around this in alternative by including an adjacent character, but that's not a good option.