Installation for AWS Elastic Beanstalk (New Relic Servers)


New Relic Servers is no longer available. For infrastructure monitoring, please use New Relic Infrastructure. For how to switch to Infrastructure from Servers, see the transition guide.

AWS Elastic Beanstalk is a dynamic service that allows easy deployment and scalability for your applications. Follow these instructions to install AWS with New Relic Servers for Linux. For more information about using Amazon tools with New Relic, see Amazon Web Services (AWS) users.


Before you install New Relic's Linux agent, make sure you have a supported Amazon Web Services account. In addition, for any New Relic installation, you will need your New Relic license key. This is a 40-character hexadecimal string that New Relic provides when you sign up for your account.

Download the Linux agent for Servers

To download the latest New Relic agent for New Relic Servers:

  1. Log in to New Relic.
  2. From the account dropdown in the New Relic UI, select Account settings.
  3. Select the option to download the agent for your platform.

Install the Linux agent

To install New Relic's Linux Server Monitor (LSM) agent on AWS Elastic Beanstalk:

  1. In the .ebextensions folder inside your Elastic BeanStalk application, create a new file named newrelic.config.
  2. Add the following content to the file:

        newrelic-sysmond: [] 
        newrelic: INSERT_LINK_TO_AGENT
        command: nrsysmond-config --set license_key=INSERT_LICENSE_KEY
        command: echo hostname=NAME_OF_YOUR_SERVER >> /etc/newrelic/nrsysmond.cfg 
        command: /etc/init.d/newrelic-sysmond start
  3. Replace INSERT_LINK_TO_AGENT with the appropriate URL:

    • 64-bit AMI
    • 32-bit AMI
  4. Replace INSERT_LICENSE_KEY with your New Relic license key.
  5. Push your app to Elastic BeanStalk:

After a successful setup, it can take up to fifteen minutes before metrics begin to appear in New Relic. To view your server's Overview page: From, select your app.

For more help

New Relic Servers is unavailable as of May 15, 2018. For more information: