After completing the tasks outlined in this document, you will have successfully installed the Interana software on a single node cluster, configured the Interana command line interface (CLI), and created an admin user account.
The recommendations in these instructions are meant for a test environment installation. It is advised that you first use Interana in a test environment, and move to a production installation once you've successfully tested your data. Consult with your storage administrator regarding the production environment requirements for your site.
Before you begin
The node on which you will install Interana must be running Ubuntu 14.0.4 and must also meet the following minimum requirements:
- 4 CPU cores
- 8 GB RAM
- 200 GB storage
The Interana installation includes the following tasks. Click a link to jump directly to the step-by-step instructions.
- Provision a node.
- Download the Interana software.
- Install MySQL.
- Install Interana.
- Install Nginx.
- Start Interana.
- Configure the Interana CLI.
- Create an admin user account.
1. Provision a node
Before you can begin installing Interana, you must provision a node.
To provision a node for an Interana cluster, do the following:
- Provision your node with Ubuntu 14.04.
- Make a note of the IP address. You will need it later.
- Verify that you have SSH connectivity to each node, with no TCP restrictions (such as iptables).
- Log into the node, and continue to download the Interana software.
2. Download the Interana software
The the APT AWS S3 transport allows you to fetch files from the Interana private repository on AWS S3. You import a Gnu Privacy Guard (gpg) key so you can then securely download the Interana software from a trusted site.
To download the Interana software, do the following:
- Open a Terminal window and log into the VM. The following example uses the Ubuntu default username (ubuntu) and password (ubuntu). Use the login credentials established when you provisioned your VM.
ssh ubuntu@<IP_address> password: ubuntu
apt-transport-s3with the following command, so you can fetch files from the Interana private repository on AWS S3.
- Go to
/etc/apt/s3auth.confand configure the AWS credentials Interana provided you with for access to the Interana private repository. The following is an example of the credentials to be added.
AccessKeyId = AKIAyouraccesskeyidUZBA SecretAccessKey = W18sR/ZrAT0WyoursecretaccesskeyVjOkg0DMl Token = ''
- Import the gpg key by entering the following command.
wget -qO - https://apt.interana.com/repo.key | sudo apt-key add -
- To add an apt repository, enter the following command.
echo "deb [arch=amd64] s3://interana-apt-prod.s3.amazonaws.com/ trusty main" | sudo tee/etc/apt/sources.list.d/interana.list
- To refresh your package index with information about the latest version of the Interana software, enter the following command.
sudo apt-get update
3. Install MySQL
Install MySQL 5.3 or newer.
You install MySQL to create a database for Interana metadata. This step is necessary for all single node clusters, but only required for the config node of a multi-node cluster. For more information, see Install multi-node Interana on VMware.
To install MySQL for Interana, do the following:
- Enter the following command in a terminal window.
sudo apt-get -y install mysql-server
- In the MySQL Package Configuration window, enter a password for the MySQL root user. We'll refer to this as the MySQL root password later on.
4. Install Interana
Now that MySQL is installed, you are ready to install the Interana software.
To install Interana, do the following:
- In a Terminal window, do one of the following:
- To install the full Interana package that includes GPL-licensed software, enter the following command:
sudo apt-get -y install interana-cli interana
- To install Interana without any GPL-licensed software, enter the following command:
sudo apt-get -y install --no-install-recommends interana-cli interana
If you already have interana fully installed and want to remove GPL-licensed software, use the following command:
sudo apt-get remove interana-python3-extra
- Enter the MySQL server address. Use localhost or 127.0.0.1 for a single node installation.
- Enter the MySQL server port. It's recommended that you keep the 3306 default.
- Enter the MySQL username, which was set to
rootwhen you installed MySQL.
- Next, enter the MySQL root password that you set when you installed MySQL.
- Accept the default values for the node configuration (leave listener unselected), and then press Enter. The listener node is an optional node type that enables the "add_events" API for sending data to Interana via a direct HTTP request.
You've successfully installed the main Interana software package. Next you need to install the software required for the user interface.
5. Install Nginx
Nginx is used to run the Interana user interface.
To install Nginx, type the following command in a Terminal window:
sudo apt-get -y install nginx-extras
That's it! You've successfully completed the installation process. Now you can now start Interana.
6. Start Interana
Now you’re ready to start Interana.
To start the Interana service, do the following:
- In the terminal window, enter the following command.
sudo service interana start
Open a browser window, and enter the following in the URL field.
- Log in to Interana using the default username
root@localhostand the default password
- If you see the Interana login prompt, as shown below, you are ready to configure the Interana CLI. After which, you can add an admin user account with the CLI.
- If you see a Welcome to nginx! prompt instead, see the workaround tip to resolve the issue.
If you did not see the Interana login prompt, the following workaround tip may help you resolve the issue.
If you see a Welcome to nginx! message, do the following:
- Go back to the Terminal window and type the following two commands to remove the file that's keeping Interana from starting correctly:
cd /etc/nginx/sites-enabled rm default
- Now type
ls -land look for a file named
default.something. Use the following command to rename the file to
default.somethingto the actual name of the file):
mv default.something default
- Now restart Nginx (type
service nginx restart) and open your site’s URL from your browser again.
7. Configure the Interana CLI
You configure the Interana CLI for a (default) single-node cluster so you can use the CLI to create user accounts, with or without email authorization.
You must have login credentials for the cluster and know the cluster URL. The HTTPS URL uses the fully qualified domain name (FQDN) of the instance to configure a connection with the cluster.
To configure the CLI to manage the default cluster, do the following:
- In a shell window, type the following command.
ia config http://<default-cluster-address.com>
You receive a response similar to the following:
Visit https://mycluster.interana.com/api/create_token and supply your new API token.
- Open a new browser window and enter the URL: https://mycluster.interana.com/api/create_token. You receive a generated token similar to the following.
- Enter the token value (in the terminal window) as it appears (between the "") when you are prompted for the API key, and then press Enter. You are notified that the credentials have been configured.
Enter API Key: <pasted token value is not visible> Success! Credentials stored as default config
8. Create an admin user account
Now you are ready to create an admin account using the CLI. You specify a
password for each new account you create. For security purposes, the password used to create the account is visible in the bash history. For this reason, it's important to advise the user change their password when they initially log into their account.
It is recommended that you make the first user an admin so you can use the import wizard to ingest data. Use a fully qualified domain name (FQDN) for the user name, such as
create user command has the following structure and options.
ia user create <username> <password> [--no-email] [--base-url <base_url>]
- By default, Interana will send an e-mail notification to the user (we will treat their username as their e-mail address) welcoming them to Interana and asking them to verify their account. The
--no-emailoption specifies that email confirmation by the user is not required to activate the account and no e-mail will be sent.
- If you do not use the
--no-emailoption, it is strongly recommended that you set the
--base-urlis not set, it defaults to the public IP of the first API node, which may not be user-friendly.
--base-url is set in the following example, requiring email authorization by the user to activate the account.
To create an admin user account, do the following:
- Enter the following command in the terminal window, with the account username and password, and a valid URL for email authorization.
ia user create email@example.com admin-password --base-url example.company.com
- Enter the following command to give the user account admin privileges.
ia user update firstname.lastname@example.org --addrole-admin
Congratulations! Now that you've installed Interana, configured the CLI, and created an admin user account, it's time to add your data.