Skip to main content

Flex Agent wizard installation and configuration

Use this workflow to ensure you have all the steps covered for installing and configuring the Flex Agent.

The Flex Agent lets you install and configure multiple agents from one package without having to specify specific languages. Using the Add New Multi-language install wizard is the simplest way to deploy new agents.

You can also use the Flex Agent to upgrade deployed agents.

Before you begin

Make sure you have everything you need before you start.

  • The agent will need to be able to reach your Contrast instance. It can be a local/on-premise instance or a hosted instance. A proxy can be configured if the environment has limited network access.

  • Understand the order of precedence

  • Supported languages: .NET, Java, Node.js, and Python.

  • Supported operating system: Linux

  • You will also need access to a command line interface (with a chosen directory for downloading the agent) and your organization's instance of Contrast

Start the Flex Agent wizard

  1. Select Add New at the top of the Contrast web interface.

  2. Select the Application card.

  3. Under Select a language, select Multi-language install.

Install the Flex Agent

Under Install Flex Agent, select the agent key that lets the agents communicate with Contrast. Use the displayed command to install the agent package.

  1. Use the displayed command to install the agent package and register it into your system. Use the sudo command if required in your environment:

Verify the agent deployment

  1. Restart your application after you install the Flex Agent.

  2. Interact with your application as you normally would. For example, interact with your application's web interface or send API commands

  3. Go to the Contrast web interface and select Applications in the header.

  4. Verify that you see the name of your application in the list.

  5. Select servers in the header.

  6. Verify that you see the name of your local server in the list.

Flex Agent logging

For troubleshooting purposes, you can increase injector logging levels. To do so, add the environment variable CONTRAST_FLEX_INJECTOR_LOG_LEVEL=TRACE to your application start command. Adding this variable globally results in overly verbose logging.

See also

Install Flex Agent manually

Update agents with Flex Agent