{"record":{"id":"15c649ec50762af8","repo":"crowdsecurity/crowdsec","slug":"only-one-follow-stdout-parameters-is-required-n","errorCode":null,"errorMessage":"only one 'follow_stdout' parameters is required, not many","messagePattern":"only one 'follow_stdout' parameters is required, not many","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/acquisition/modules/docker/config.go","lineNumber":267,"sourceCode":"\t\t\t}\n\t\t\tlvl, err := log.ParseLevel(v[0])\n\t\t\tif err != nil {\n\t\t\t\treturn fmt.Errorf(\"unknown level %s: %w\", v[0], err)\n\t\t\t}\n\t\t\td.logger.Logger.SetLevel(lvl)\n\t\tcase \"until\":\n\t\t\tif len(v) != 1 {\n\t\t\t\treturn errors.New(\"only one 'until' parameters is required, not many\")\n\t\t\t}\n\t\t\td.containerLogsOptions.Until = v[0]\n\t\tcase \"since\":\n\t\t\tif len(v) != 1 {\n\t\t\t\treturn errors.New(\"only one 'since' parameters is required, not many\")\n\t\t\t}\n\t\t\td.containerLogsOptions.Since = v[0]\n\t\tcase \"follow_stdout\":\n\t\t\tif len(v) != 1 {\n\t\t\t\treturn errors.New(\"only one 'follow_stdout' parameters is required, not many\")\n\t\t\t}\n\t\t\tfollowStdout, err := strconv.ParseBool(v[0])\n\t\t\tif err != nil {\n\t\t\t\treturn fmt.Errorf(\"parsing 'follow_stdout' parameters: %s\", err)\n\t\t\t}\n\t\t\td.Config.FollowStdout = followStdout\n\t\t\td.containerLogsOptions.ShowStdout = followStdout\n\t\tcase \"follow_stderr\":\n\t\t\tif len(v) != 1 {\n\t\t\t\treturn errors.New(\"only one 'follow_stderr' parameters is required, not many\")\n\t\t\t}\n\t\t\tfollowStdErr, err := strconv.ParseBool(v[0])\n\t\t\tif err != nil {\n\t\t\t\treturn fmt.Errorf(\"parsing 'follow_stderr' parameters: %s\", err)\n\t\t\t}\n\t\t\td.Config.FollowStdErr = followStdErr\n\t\t\td.containerLogsOptions.ShowStderr = followStdErr\n\t\tcase \"docker_host\":","sourceCodeStart":249,"sourceCodeEnd":285,"githubUrl":"https://github.com/crowdsecurity/crowdsec/blob/909b5157986a2b2c2163300fdaef5ed01289f7d2/pkg/acquisition/modules/docker/config.go#L249-L285","documentation":"DSN validation in docker ConfigureByDSN: the follow_stdout query parameter is repeated. The value is parsed with strconv.ParseBool into a single FollowStdout/ShowStdout setting, so more than one occurrence is ambiguous and rejected.","triggerScenarios":"Thrown at pkg/acquisition/modules/docker/config.go:267 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass follow_stdout=true (or false) at most once","Note the value must parse as a bool — non-bool values fail separately with a parse error"],"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"}