Static codecs::gelf::VALID_FIELD_REGEX

source ยท
pub static VALID_FIELD_REGEX: LazyLock<Regex>
Expand description

Regex for matching valid field names in the encoder. According to the original spec by graylog, must contain only word chars, periods and dashes. Additional field names must also be prefixed with an _ , however that is intentionally omitted from this regex to be checked separately to create a specific error message. As Graylog itself will produce GELF with any existing field names on the Graylog GELF Output, vector is more lenient, too, at least allowing the additional @ character.