Skip to main content

Add Fields to Existing Host Metrics Sources

The AWS Observability Solution uses EC2 Host metrics collected using Sumo Logic Host Metrics Source which is a part of Sumo Logic installed collector.

To make EC2 hosts part of the AWS Observability hierarchy, the EC2 host metrics sent to Sumo Logic need to be tagged with the following additional fields for them to be visible in the AWS Observability Solution dashboards.

Field NameDescriptionAvailability in Host Metrics
AccountThis is an alias for your AWS account—for example, production, development, or stage—that you supply when you install the solution.No
NamespaceThis is the name of the AWS service (AWS/EC2).No

Account and Namespace are added to the metrics by adding both as Fields to Host Metrics source in Sumo Logic.


The number of Host metrics sources present in Sumo Logic can be high and adding fields to each Host metric source can be tedious.

To make the process easier for adding fields to Host metric sources, use the instructions in this document to run a CloudFormation template to automatically identify all the AWS EC2 instances and corresponding Host metrics sources in Sumo Logic and automatically add the relevant account and namespace fields to the sources.

Using the CloudFormation template

This section walks you through the process of using the CloudFormation Template to add fields to host metric sources.

To deploy the CloudFormation template:

  1. Sign on to the AWS Management console.

  2. Invoke the CloudFormation YAML template using this URL.

  3. Select the AWS Region where you want to deploy the CloudFormation Template.

  4. Provide the input parameters as prompted and described in the Configuration Prompts and Input section below.

    • Account Alias. Make sure the Alias provided matches the account alias provided during installing AWS Observability solution for the corresponding account.
  5. In Capabilities and transforms click each checkbox.


  6. Click Create Stack.

Configuration prompts and input

This section provides a listing of configuration prompts for the CloudFormation Template, along with explanations for each prompt and any information you are required to provide. We recommend that you review this section and gather the required information before you start using the CloudFormation template.

Sumo Logic Access Configuration (Required)

Sumo Logic Deployment NameEnter au, ca, de, eu, jp, us2, in, fed or us1. For more information on Sumo Logic deployments, see the Sumo Logic Endpoints and Firewall Security topic.
Sumo Logic Access IDSumo Logic Access ID. For more information, see Create an access key in the Access Keys topic.
Sumo Logic Access KeySumo Logic Access Key. This key is used for Sumo Logic API calls.
Delete Fields when stack is deletedTrue. Deletes the Account and Namespace fields from the Host Metric Sources when the stack is deleted.
False. Keeps the fields in Host Metric Sources when the stack is deleted.

AWS account alias (Required)

Alias for your AWS accountEnter a name for the AWS environment from which you are collecting data. This name will appear in metrics and logs.
Do not include special characters in the alias.
Force Update the StackIncrement the value in case you want to force update the stack.

Update the Stack

An existing stack can be updated using a new version of CloudFormation Template or the same version of the CloudFormation Template.

To update an existing stack, please follow the steps below:

  1. Locate the Main Stack created using CloudFormation template and Click Update.

  2. Select ‘Use Current Template’ and select Next.

  3. Add 1 to the ‘Force Update the Stack’ parameter value and click Next.

  4. On the Review page, check the Change set preview for potential updates.

  5. Select the capabilities and Click Update stack.

  6. After the update is completed successfully, you can see UPDATE_COMPLETE status. If the update is not successful, please correct the errors and run the CloudFormation template again. 

Multi Region Installation using Stack Sets

The CloudFormation template can be deployed in a given account-region combination using CloudFormation stacks as described in the earlier section, however, AWS provides the ability to deploy the same template on multiple accounts and multiple regions using Stack Sets.

Before you begin, please:

Complete the prerequisites for StackSets as outlined in the AWS documentation.

Below are the steps to use the CloudFormation template with Stack Sets :

  1. Go to Stack Sets in your AWS account.
  2. Click Create StackSet.
  3. Paste the URL in the Amazon S3 URL option and select Next.
  4. Provide a Stack Set Name, provide the parameters as explained in the section above, and click Next.
  5. Add Tags if needed, select the Administrator role defined in the pre-requisites above, and click Next.
  6. Provide the current account ID and select all the regions in the current account where you would like to deploy the template.
  7. In the Deployment options, keep the default values and click Next.
  8. Review the details, select the capabilities, and click Submit.

Once you hit submit, the CloudFormation template installation will execute in all the regions of the account sequentially.

Privacy Statement
Terms of Use

Copyright © 2024 by Sumo Logic, Inc.