Loading
Ongoing maintenance for Salesforce HelpRead More

rtfctl Fails to Audit Command with Secret Log Too Long Warning

Publish Date: Oct 29, 2026
Prerequisite(s)
rtfctl 1.0.150, Kubernetes Secret named log, rtfctl-audit namespace, Hyperforce - USA1160
Task
Why does rtfctl display a Failed to audit the command warning with Secret log is invalid: data: Too long: may not be more than 1048576 bytes, even though the command runs successfully?
Steps

Follow these steps to remove an oversized audit Secret.

  1. Identify the namespace that contains the audit Secret. Run: kubectl get secret log -A
  2. Optionally back up the existing audit history before clearing the Secret. Run: ./rtfctl audit-logs > rtfctl-audit-backup.json
  3. Delete the oversized log Secret from the correct namespace. Run: kubectl delete secret log -n <namespace>
  4. Allow rtfctl to recreate the log Secret automatically by running any rtfctl command. Example: ./rtfctl version
Knowledge Article Number

005465510

 
Loading
Salesforce Help | Article