Install the Scalyr Upload Agent

Log in to your account and generate a "Log Write Access" API key.

Paste this into a terminal window on your host:

  • curl -sO https://www.scalyr.com/install-agent.sh
  • sudo bash ./install-agent.sh --set-api-key "[YOUR_API_KEY]"

You should see output like this:

Installing scalyr-agent-2:
Extracting configuration packages from downloaded script.
 ...
Success installing Scalyr agent.

The "scalyr-server" configuration variable defaults to our US servers at "https://agent.scalyr.com". Customers with EU accounts will have to set this variable to "https://app.eu.scalyr.com":

  • sudo scalyr-agent-2-config --set-scalyr-server https://app.eu.scalyr.com