crowdsecurity/crowdsec · error
procid is empty
Error message
procid is empty
What it means
parseProcID scans the PROCID field of an RFC5424 message up to the next space; if the buffer ends (or a space follows immediately without NILVALUE '-') before any character is collected, the mandatory PROCID is missing and the message is invalid per RFC 5424.
Source
Thrown at pkg/acquisition/modules/syslog/internal/parser/rfc5424/parse.go:208
if r.buf[r.position] == NIL_VALUE {
r.PID = ""
r.position += 2
return nil
}
procid := []byte{}
for r.position < r.len {
c := r.buf[r.position]
if c == ' ' {
r.position++
break
}
procid = append(procid, c)
r.position++
}
if len(procid) == 0 {
return errors.New("procid is empty")
}
if len(procid) > 128 {
return errors.New("procid is too long")
}
r.PID = string(procid)
return nil
}
func (r *RFC5424) parseMsgID() error {
if r.buf[r.position] == NIL_VALUE {
r.MsgID = ""
r.position += 2
return nil
}
msgid := []byte{}View on GitHub (pinned to 909b515798)
Solutions
- Send '-' as PROCID when the sender has no process ID
- Fix the sender to emit a non-empty PROCID or the NIL value
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at pkg/acquisition/modules/syslog/internal/parser/rfc5424/parse.go:208 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of crowdsecurity/crowdsec@909b515798 (2026-09-06).
Data as JSON: /api/errors/9ff6e75c5ecb8144.
Report an issue: GitHub.