istio/istio · error
--output is not applicable for this command
Error message
--output is not applicable for this command
What it means
Error "--output is not applicable for this command" thrown in istio/istio.
Source
Thrown at istioctl/pkg/ztunnelconfig/ztunnelconfig.go:426
istioctl ztunnel-config log <pod-name[.namespace]> --level off
# Update levels of the specified loggers for all Ztunnl pods
istioctl ztunnel-config log --level access:debug,info
# Reset levels of all the loggers to default value (warning) for a specific Ztunnel pod.
istioctl ztunnel-config log <pod-name[.namespace]> -r
`,
Aliases: []string{"o"},
Args: func(cmd *cobra.Command, args []string) error {
if err := common.validateArgs(cmd, args); err != nil {
return err
}
if reset && loggerLevelString != "" {
cmd.Println(cmd.UsageString())
return fmt.Errorf("--level cannot be combined with --reset")
}
if common.outputFormat != "" && common.outputFormat != summaryOutput {
return fmt.Errorf("--output is not applicable for this command")
}
return nil
},
RunE: func(c *cobra.Command, args []string) error {
kubeClient, err := ctx.CLIClient()
if err != nil {
return err
}
var podNames []string
var podNamespace string
if len(args) == 1 {
podName, ns, err := getComponentPodName(ctx, args[0], false)
if err != nil {
return err
}
ztunnelPod := ambientutil.IsZtunnelPod(kubeClient, podName, ns)
if !ztunnelPod {
return fmt.Errorf("workloads command is only supported by Ztunnel proxies: %v", podName)View on GitHub (pinned to 8dc789c5cf)
When it happens
Trigger: Thrown at istioctl/pkg/ztunnelconfig/ztunnelconfig.go:426 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of istio/istio@8dc789c5cf (2026-08-15).
Data as JSON: /api/errors/f5468b57dd25327d.
Report an issue: GitHub.