{"record":{"id":"c66966aa018ad199","repo":"crowdsecurity/crowdsec","slug":"procid-is-too-long","errorCode":null,"errorMessage":"procid is too long","messagePattern":"procid is too long","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/acquisition/modules/syslog/internal/parser/rfc5424/parse.go","lineNumber":212,"sourceCode":"\t}\n\n\tprocid := []byte{}\n\tfor r.position < r.len {\n\t\tc := r.buf[r.position]\n\t\tif c == ' ' {\n\t\t\tr.position++\n\t\t\tbreak\n\t\t}\n\t\tprocid = append(procid, c)\n\t\tr.position++\n\t}\n\n\tif len(procid) == 0 {\n\t\treturn errors.New(\"procid is empty\")\n\t}\n\n\tif len(procid) > 128 {\n\t\treturn errors.New(\"procid is too long\")\n\t}\n\n\tr.PID = string(procid)\n\treturn nil\n}\n\nfunc (r *RFC5424) parseMsgID() error {\n\tif r.buf[r.position] == NIL_VALUE {\n\t\tr.MsgID = \"\"\n\t\tr.position += 2\n\t\treturn nil\n\t}\n\n\tmsgid := []byte{}\n\tfor r.position < r.len {\n\t\tc := r.buf[r.position]\n\t\tif c == ' ' {\n\t\t\tr.position++","sourceCodeStart":194,"sourceCodeEnd":230,"githubUrl":"https://github.com/crowdsecurity/crowdsec/blob/909b5157986a2b2c2163300fdaef5ed01289f7d2/pkg/acquisition/modules/syslog/internal/parser/rfc5424/parse.go#L194-L230","documentation":"RFC5424 parser guard: the PROCID field exceeded the 128-byte maximum length permitted by the syslog spec. The parser reads PROCID up to the next space and rejects values longer than 128 characters, which indicates a malformed or non-conforming sender.","triggerScenarios":"Thrown at pkg/acquisition/modules/syslog/internal/parser/rfc5424/parse.go:212 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Shorten the PROCID emitted by the syslog client to at most 128 characters","Verify space separation between PROCID and MSGID fields"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"909b5157986a2b2c2163300fdaef5ed01289f7d2","analyzedAt":"2026-09-06T12:27:26.012Z","contentChangedAt":"2026-09-06T12:27:26.012Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}