{"record":{"id":"f5468b57dd25327d","repo":"istio/istio","slug":"output-is-not-applicable-for-this-command-f5468b","errorCode":null,"errorMessage":"--output is not applicable for this command","messagePattern":"--output is not applicable for this command","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"istioctl/pkg/ztunnelconfig/ztunnelconfig.go","lineNumber":426,"sourceCode":" istioctl ztunnel-config log <pod-name[.namespace]> --level off\n\n # Update levels of the specified loggers for all Ztunnl pods\n istioctl ztunnel-config log --level access:debug,info\n\n # Reset levels of all the loggers to default value (warning)  for a specific Ztunnel pod.\n istioctl ztunnel-config log <pod-name[.namespace]> -r\n`,\n\t\tAliases: []string{\"o\"},\n\t\tArgs: func(cmd *cobra.Command, args []string) error {\n\t\t\tif err := common.validateArgs(cmd, args); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tif reset && loggerLevelString != \"\" {\n\t\t\t\tcmd.Println(cmd.UsageString())\n\t\t\t\treturn fmt.Errorf(\"--level cannot be combined with --reset\")\n\t\t\t}\n\t\t\tif common.outputFormat != \"\" && common.outputFormat != summaryOutput {\n\t\t\t\treturn fmt.Errorf(\"--output is not applicable for this command\")\n\t\t\t}\n\t\t\treturn nil\n\t\t},\n\t\tRunE: func(c *cobra.Command, args []string) error {\n\t\t\tkubeClient, err := ctx.CLIClient()\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tvar podNames []string\n\t\t\tvar podNamespace string\n\t\t\tif len(args) == 1 {\n\t\t\t\tpodName, ns, err := getComponentPodName(ctx, args[0], false)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tztunnelPod := ambientutil.IsZtunnelPod(kubeClient, podName, ns)\n\t\t\t\tif !ztunnelPod {\n\t\t\t\t\treturn fmt.Errorf(\"workloads command is only supported by Ztunnel proxies: %v\", podName)","sourceCodeStart":408,"sourceCodeEnd":444,"githubUrl":"https://github.com/istio/istio/blob/8dc789c5cf17517c64e3c36cb3288230f149dfae/istioctl/pkg/ztunnelconfig/ztunnelconfig.go#L408-L444","documentation":"Error \"--output is not applicable for this command\" thrown in istio/istio.","triggerScenarios":"Thrown at istioctl/pkg/ztunnelconfig/ztunnelconfig.go:426 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8dc789c5cf17517c64e3c36cb3288230f149dfae","analyzedAt":"2026-08-15T15:16:55.434Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}