Skip to content

Commit

Permalink
syslog-format: define tag for invalid program
Browse files Browse the repository at this point in the history
Signed-off-by: shifter <shifter@axoflow.com>
  • Loading branch information
bshifter committed Nov 18, 2024
1 parent 41d0d7e commit 1cd4775
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/logmsg/logmsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 3 additions & 0 deletions lib/logmsg/logmsg.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down

0 comments on commit 1cd4775

Please sign in to comment.