If for some reason the shell script does not work, you can install the agent via apt-get, yum or tarball. This article describes the apt-get installation process. You can view the full instructions in the docs.
Note: You can also download the Agent package files here
Install with apt-get
sudo apt-get update sudo apt install software-properties-common # Install this package in order to add the Scalyr repo. sudo apt-key add scalyr.key # Add recently downloaded public key. sudo add-apt-repository "deb https://scalyr-repo.s3.amazonaws.com/stable/apt scalyr main" sudo apt-get update sudo apt-get install scalyr-agent-2
Note: Some Debian versions / derivatives (e.g. Ubuntu 14.04) require manual installation of the apt-transport-https package. In that event, please run the following:
sudo dpkg -r scalyr-repo scalyr-repo-bootstrap # Remove legacy repository definitions, if any. sudo apt-get update sudo apt-get install -y --force-yes apt-transport-https ca-certificates sudo apt install software-properties-common # Install this package in order to add the Scalyr repo. sudo apt-key add scalyr.key # Add recently downloaded public key. sudo add-apt-repository "deb https://scalyr-repo.s3.amazonaws.com/stable/apt scalyr main" sudo apt-get update sudo apt-get install scalyr-agent-2
Now that you have installed the scalyr-agent-2 package, you need to configure it using your Write Logs API key.
sudo scalyr-agent-2-config --set-key "API-KEY"
Finally, you can start the agent:
sudo scalyr-agent-2 start
Comments
0 comments
Please sign in to leave a comment.