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:

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

    bash
    prompt
    bash
    prompt
  3. Show the mode:

    bash
    show anon
    bash
    show anon
    output
    bash
    Anonymized mode disabled
    output
    bash
    Anonymized mode disabled
  4. Enable anonymization:

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

    bash
    show anon
    bash
    show anon
    output
    bash
    Anonymized mode enabled
    Key : 879053005
    output
    bash
    Anonymized mode enabled
    Key : 879053005

See also Jump to heading

If this page was useful, please, Leave the feedback.

© 2023 HAProxy Technologies, LLC. All Rights Reserved
Manage Cookie Preferences