Reference

HAProxy Documentation


title: show anon description: Display the current state of anonymized mode. Jump to heading

Available since

  • HAProxy 2.7
  • HAProxy Enterprise 2.7r1

Display the current state of anonymized mode.

Description Jump to heading

Display the current state of anonymized mode (enabled or disabled) and the current session’s key.

Warning

Do not share the key unless necessary. It can be used to reveal hidden sensitive information.

In anonymized mode, fields in command outputs that are considered sensitive or confidential are obscured with hashes. To enable anonymized mode, use the set anon CLI command.

Examples Jump to heading

Show the anonymized mode:

  1. Connect to the Runtime API socket:

    nix
    sudo socat stdio tcp4-connect:127.0.0.1:9999
    nix
    sudo socat stdio tcp4-connect:127.0.0.1:9999
  2. Start an interactive session:

    nix
    prompt
    nix
    prompt
  3. Show the mode:

    nix
    show anon
    nix
    show anon
    output
    text
    Anonymized mode disabled
    output
    text
    Anonymized mode disabled
  4. Enable anonymization:

    nix
    set anon on
    nix
    set anon on
  5. Show the mode:

    nix
    show anon
    nix
    show anon
    output
    text
    Anonymized mode enabled
    Key : 879053005
    output
    text
    Anonymized mode enabled
    Key : 879053005

See also Jump to heading

Do you have any suggestions on how we can improve the content of this page?