{"record":{"id":"7e9f4ca5739a5f03","repo":"crowdsecurity/crowdsec","slug":"only-one-since-parameters-is-required-not-many","errorCode":null,"errorMessage":"only one 'since' parameters is required, not many","messagePattern":"only one 'since' parameters is required, not many","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/acquisition/modules/docker/config.go","lineNumber":262,"sourceCode":"\tfor k, v := range parameters {\n\t\tswitch k {\n\t\tcase \"log_level\":\n\t\t\tif len(v) != 1 {\n\t\t\t\treturn errors.New(\"only one 'log_level' parameters is required, not many\")\n\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 {","sourceCodeStart":244,"sourceCodeEnd":280,"githubUrl":"https://github.com/crowdsecurity/crowdsec/blob/909b5157986a2b2c2163300fdaef5ed01289f7d2/pkg/acquisition/modules/docker/config.go#L244-L280","documentation":"DSN validation in docker ConfigureByDSN: the since query parameter (lower bound of docker logs --since) is repeated. Exactly one value is accepted since it maps to a single containerLogsOptions.Since.","triggerScenarios":"Thrown at pkg/acquisition/modules/docker/config.go:262 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide since=... exactly once","Use ISO timestamps or docker-accepted durations like since=24h"],"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-14T00:17:10.932Z"}