diff --git a/lib/logmsg/logmsg.c b/lib/logmsg/logmsg.c index 67fce48f2..805a30a9e 100644 --- a/lib/logmsg/logmsg.c +++ b/lib/logmsg/logmsg.c @@ -2030,6 +2030,7 @@ log_msg_tags_init(void) log_tags_register_predefined_tag("syslog.invalid_hostname", LM_T_SYSLOG_INVALID_HOSTNAME); log_tags_register_predefined_tag("syslog.unexpected_framing", LM_T_SYSLOG_UNEXPECTED_FRAMING); log_tags_register_predefined_tag("syslog.rfc3164_missing_header", LM_T_SYSLOG_RFC3164_MISSING_HEADER); + log_tags_register_predefined_tag("syslog.rfc3164_invalid_program", LM_T_SYSLOG_RFC_3164_INVALID_PROGRAM); log_tags_register_predefined_tag("syslog.rfc5424_missing_hostname", LM_T_SYSLOG_RFC5424_MISSING_HOSTNAME); log_tags_register_predefined_tag("syslog.rfc5424_missing_app_name", LM_T_SYSLOG_RFC5424_MISSING_APP_NAME); diff --git a/lib/logmsg/logmsg.h b/lib/logmsg/logmsg.h index c513eb43f..849eb80a6 100644 --- a/lib/logmsg/logmsg.h +++ b/lib/logmsg/logmsg.h @@ -134,6 +134,9 @@ enum LM_T_SYSLOG_RFC5424_MISSING_MESSAGE, /* message field missing */ LM_T_SYSLOG_MISSING_MESSAGE, + /* invalid program name */ + LM_T_SYSLOG_RFC_3164_INVALID_PROGRAM, + LM_T_PREDEFINED_MAX, };