Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion application-components/RESOURCES.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
| <a name="input_sqlserver_monitor_folder"></a> [sqlserver\_monitor\_folder](#input\_sqlserver\_monitor\_folder) | Folder where sqlserver monitors will be created. | `string` | `"SQL Server"` | no |
| <a name="input_sumologic_access_id"></a> [sumologic\_access\_id](#input\_sumologic\_access\_id) | Sumo Logic Access ID. Visit https://help.sumologic.com/Manage/Security/Access-Keys#Create_an_access_key | `string` | n/a | yes |
| <a name="input_sumologic_access_key"></a> [sumologic\_access\_key](#input\_sumologic\_access\_key) | Sumo Logic Access Key. Visit https://help.sumologic.com/Manage/Security/Access-Keys#Create_an_access_key | `string` | n/a | yes |
| <a name="input_sumologic_environment"></a> [sumologic\_environment](#input\_sumologic\_environment) | Enter au, ca, ch, de, eu, jp, us2, fed, kr or us1. For more information on Sumo Logic deployments visit https://help.sumologic.com/APIs/General-API-Information/Sumo-Logic-Endpoints-and-Firewall-Security | `string` | n/a | yes |
| <a name="input_sumologic_environment"></a> [sumologic\_environment](#input\_sumologic\_environment) | Enter au, ca, ch, de, eu, esc, jp, us2, fed, kr or us1. For more information on Sumo Logic deployments visit https://help.sumologic.com/APIs/General-API-Information/Sumo-Logic-Endpoints-and-Firewall-Security | `string` | n/a | yes |
| <a name="input_sumologic_organization_id"></a> [sumologic\_organization\_id](#input\_sumologic\_organization\_id) | You can find your org on the Preferences page in the Sumo Logic UI. For more information, see the Preferences Page topic. Your org ID will be used to configure the IAM Role for Sumo Logic AWS Sources."<br> For more details, visit https://help.sumologic.com/01Start-Here/05Customize-Your-Sumo-Logic-Experience/Preferences-Page | `string` | n/a | yes |

## Outputs
Expand Down
7 changes: 4 additions & 3 deletions application-components/fields.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# ----------------------------------------------------------------------------------------------------------------------------------------------------------
# This script imports the existing fields and FERs (required by aws observability solution) if field(s) and FER(s) are already present in the user's Sumo Logic account.
# For SUMOLOGIC_ENV, provide one from the list : au, ca, ch, de, eu, jp, us2, kr, fed or us1. For more information on Sumo Logic deployments visit https://help.sumologic.com/APIs/General-API-Information/Sumo-Logic-Endpoints-and-Firewall-Security"
# For SUMOLOGIC_ENV, provide one from the list : au, ca, ch, de, eu, esc, jp, us2, kr, fed or us1. For more information on Sumo Logic deployments visit https://help.sumologic.com/APIs/General-API-Information/Sumo-Logic-Endpoints-and-Firewall-Security"
# Before using this script, set following environment variables using below commands:
# export SUMOLOGIC_ENV=""
# export SUMOLOGIC_ACCESSID=""
Expand All @@ -16,8 +16,9 @@ if ! foobar_loc="$(type -p "jq")" || [[ -z $foobar_loc ]]; then
fi

# Validate Sumo Logic environment/deployment.
if ! [[ "$SUMOLOGIC_ENV" =~ ^(au|ca|ch|de|eu|jp|us2|fed|kr|us1)$ ]]; then
echo "$SUMOLOGIC_ENV is invalid Sumo Logic deployment. For SUMOLOGIC_ENV, provide one from list : au, ca, ch, de, eu, jp, us2, kr, fed, or us1. For more information on Sumo Logic deployments visit https://help.sumologic.com/APIs/General-API-Information/Sumo-Logic-Endpoints-and-Firewall-Security"
if ! [[ "$SUMOLOGIC_ENV" =~ ^(au|ca|ch|de|eu|esc|jp|us2|fed|kr|us1)$ ]]; then
echo "$SUMOLOGIC_ENV is invalid Sumo Logic deployment. For SUMOLOGIC_ENV, provide one from list : au, ca, ch, de, eu, esc, jp, us2, fed, kr or us1. For more information on Sumo Logic deployments visit https://help.sumologic.com/APIs/General-API-Information/Sumo-Logic-Endpoints-and-Firewall-Security"

exit 1
fi

Expand Down
2 changes: 1 addition & 1 deletion application-components/main.auto.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

####### SUMOLOGIC CONFIGURATION #######

sumologic_environment = "" # Please replace <YOUR SUMO DEPLOYMENT> (including brackets) with au, ca, ch, de, eu, jp, us2, kr, fed or us1.
sumologic_environment = "" # Please replace <YOUR SUMO DEPLOYMENT> (including brackets) with au, ca, ch, de, eu, esc, jp, us2, kr, fed or us1.
sumologic_access_id = "" # Please replace <YOUR SUMO ACCESS ID> (including brackets) with your Sumo Logic Access ID.
sumologic_access_key = "" # Please replace <YOUR SUMO ACCESS KEY> (including brackets) with your Sumo Logic Access KEY.
sumologic_organization_id = "" # Please replace <YOUR SUMO ORG ID> (including brackets) with your Sumo Logic Organization ID.
Expand Down
5 changes: 3 additions & 2 deletions application-components/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

variable "sumologic_environment" {
type = string
description = "Enter au, ca, ch, de, eu, jp, us2, kr, fed or us1. For more information on Sumo Logic deployments visit https://help.sumologic.com/APIs/General-API-Information/Sumo-Logic-Endpoints-and-Firewall-Security"
description = "Enter au, ca, ch, de, eu, esc, jp, us2, kr, fed or us1. For more information on Sumo Logic deployments visit https://help.sumologic.com/APIs/General-API-Information/Sumo-Logic-Endpoints-and-Firewall-Security"

validation {
condition = contains([
Expand All @@ -13,12 +13,13 @@ variable "sumologic_environment" {
"ch",
"de",
"eu",
"esc",
"jp",
"us1",
"us2",
"kr",
"fed"], var.sumologic_environment)
error_message = "The value must be one of au, ca, ch, de, eu, jp, us1, us2, kr or fed."
error_message = "The value must be one of au, ca, ch, de, eu, esc, jp, us1, us2, kr or fed."
}
}

Expand Down
6 changes: 4 additions & 2 deletions aws-observability-terraform/app-modules/alb/app.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module "alb_module" {
source = "SumoLogic/sumo-logic-integrations/sumologic//sumologic"
version = "1.0.22"
source = "git::https://github.com/SumoLogic/terraform-sumologic-sumo-logic-integrations.git//sumologic?ref=fy27q1"
# source = "SumoLogic/sumo-logic-integrations/sumologic//sumologic"
# version = "1.0.23"


access_id = var.access_id
access_key = var.access_key
Expand Down
6 changes: 4 additions & 2 deletions aws-observability-terraform/app-modules/apigateway/app.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module "apigateway_module" {
source = "SumoLogic/sumo-logic-integrations/sumologic//sumologic"
version = "1.0.22"
source = "git::https://github.com/SumoLogic/terraform-sumologic-sumo-logic-integrations.git//sumologic?ref=fy27q1"
# source = "SumoLogic/sumo-logic-integrations/sumologic//sumologic"
# version = "1.0.23"


access_id = var.access_id
access_key = var.access_key
Expand Down
5 changes: 3 additions & 2 deletions aws-observability-terraform/app-modules/dynamodb/app.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module "dynamodb_module" {
source = "SumoLogic/sumo-logic-integrations/sumologic//sumologic"
version = "1.0.22"
source = "git::https://github.com/SumoLogic/terraform-sumologic-sumo-logic-integrations.git//sumologic?ref=fy27q1"
# source = "SumoLogic/sumo-logic-integrations/sumologic//sumologic"
# version = "1.0.23"

access_id = var.access_id
access_key = var.access_key
Expand Down
5 changes: 3 additions & 2 deletions aws-observability-terraform/app-modules/ec2metrics/app.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module "ec2metrics_module" {
source = "SumoLogic/sumo-logic-integrations/sumologic//sumologic"
version = "1.0.22"
source = "git::https://github.com/SumoLogic/terraform-sumologic-sumo-logic-integrations.git//sumologic?ref=fy27q1"
# source = "SumoLogic/sumo-logic-integrations/sumologic//sumologic"
# version = "1.0.23"

access_id = var.access_id
access_key = var.access_key
Expand Down
5 changes: 3 additions & 2 deletions aws-observability-terraform/app-modules/ecs/app.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module "ecs_module" {
source = "SumoLogic/sumo-logic-integrations/sumologic//sumologic"
version = "1.0.22"
source = "git::https://github.com/SumoLogic/terraform-sumologic-sumo-logic-integrations.git//sumologic?ref=fy27q1"
# source = "SumoLogic/sumo-logic-integrations/sumologic//sumologic"
# version = "1.0.23"

access_id = var.access_id
access_key = var.access_key
Expand Down
7 changes: 4 additions & 3 deletions aws-observability-terraform/app-modules/elasticache/app.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module "elasticache_module" {
source = "SumoLogic/sumo-logic-integrations/sumologic//sumologic"
version = "1.0.22"
source = "git::https://github.com/SumoLogic/terraform-sumologic-sumo-logic-integrations.git//sumologic?ref=fy27q1"
# source = "SumoLogic/sumo-logic-integrations/sumologic//sumologic"
# version = "1.0.23"

access_id = var.access_id
access_key = var.access_key
Expand Down Expand Up @@ -28,7 +29,7 @@ module "elasticache_module" {
monitor_is_disabled = var.monitors_disabled
monitor_evaluation_delay = "0m"
queries = {
A = "account=* region=* namespace=aws/elasticache \"\\\"eventSource\\\":\\\"elasticache.amazonaws.com\\\"\" errorCode errorMessage\n| json \"eventSource\", \"errorCode\", \"errorMessage\", \"userIdentity\", \"requestParameters\", \"responseElements\" as event_source, error_code, error_message, user_identity, requestParameters, responseElements nodrop\n| json field=requestParameters \"cacheClusterId\" as req_cacheClusterId nodrop\n| json field=responseElements \"cacheClusterId\" as res_cacheClusterId nodrop\n| json field=user_identity \"arn\", \"userName\" nodrop \n| parse field=arn \":assumed-role/*\" as user nodrop \n| parse field=arn \"arn:aws:iam::*:*\" as accountId, user nodrop\n| if (isEmpty(userName), user, userName) as user\n| if (isEmpty(req_cacheClusterId), res_cacheClusterId, req_cacheClusterId) as cacheclusterid\n| where event_source matches \"elasticache.amazonaws.com\" and !isEmpty(error_code) and !isEmpty(error_message) and !isEmpty(user)\n| count as event_count by _messageTime, account, region, event_source, error_code, error_message, user, cacheclusterid\n| formatDate(_messageTime, \"MM/dd/yyyy HH:mm:ss:SSS Z\") as message_date\n| fields message_date, account, region, event_source, error_code, error_message, user, cacheclusterid\n| fields -_messageTime"
A = "account=* region=* namespace=aws/elasticache \"\\\"eventSource\\\":\\\"elasticache.amazonaws.com\\\"\" errorCode errorMessage\n| json \"eventSource\", \"errorCode\", \"errorMessage\", \"userIdentity\", \"requestParameters\", \"responseElements\" as event_source, error_code, error_message, user_identity, requestParameters, responseElements nodrop\n| json field=requestParameters \"cacheClusterId\" as req_cacheClusterId nodrop\n| json field=responseElements \"cacheClusterId\" as res_cacheClusterId nodrop\n| json field=user_identity \"arn\", \"userName\" nodrop \n| parse field=arn \":assumed-role/*\" as user nodrop \n| parse field=arn \"arn:*:iam::*:*\" as arn_part, accountId, user nodrop\n| if (isEmpty(userName), user, userName) as user\n| if (isEmpty(req_cacheClusterId), res_cacheClusterId, req_cacheClusterId) as cacheclusterid\n| where event_source matches \"elasticache.amazonaws.com\" and !isEmpty(error_code) and !isEmpty(error_message) and !isEmpty(user)\n| count as event_count by _messageTime, account, region, event_source, error_code, error_message, user, cacheclusterid\n| formatDate(_messageTime, \"MM/dd/yyyy HH:mm:ss:SSS Z\") as message_date\n| fields message_date, account, region, event_source, error_code, error_message, user, cacheclusterid\n| fields -_messageTime"
}
triggers = [
{
Expand Down
5 changes: 3 additions & 2 deletions aws-observability-terraform/app-modules/elb/app.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module "classic_elb_module" {
source = "SumoLogic/sumo-logic-integrations/sumologic//sumologic"
version = "1.0.22"
source = "git::https://github.com/SumoLogic/terraform-sumologic-sumo-logic-integrations.git//sumologic?ref=fy27q1"
# source = "SumoLogic/sumo-logic-integrations/sumologic//sumologic"
# version = "1.0.23"

access_id = var.access_id
access_key = var.access_key
Expand Down
5 changes: 3 additions & 2 deletions aws-observability-terraform/app-modules/lambda/app.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module "lambda_module" {
source = "SumoLogic/sumo-logic-integrations/sumologic//sumologic"
version = "1.0.22"
source = "git::https://github.com/SumoLogic/terraform-sumologic-sumo-logic-integrations.git//sumologic?ref=fy27q1"
# source = "SumoLogic/sumo-logic-integrations/sumologic//sumologic"
# version = "1.0.23"

access_id = var.access_id
access_key = var.access_key
Expand Down
5 changes: 3 additions & 2 deletions aws-observability-terraform/app-modules/nlb/app.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module "nlb_module" {
source = "SumoLogic/sumo-logic-integrations/sumologic//sumologic"
version = "1.0.22"
source = "git::https://github.com/SumoLogic/terraform-sumologic-sumo-logic-integrations.git//sumologic?ref=fy27q1"
# source = "SumoLogic/sumo-logic-integrations/sumologic//sumologic"
# version = "1.0.23"

access_id = var.access_id
access_key = var.access_key
Expand Down
5 changes: 3 additions & 2 deletions aws-observability-terraform/app-modules/overview/app.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module "overview_module" {
source = "SumoLogic/sumo-logic-integrations/sumologic//sumologic"
version = "1.0.22"
source = "git::https://github.com/SumoLogic/terraform-sumologic-sumo-logic-integrations.git//sumologic?ref=fy27q1"
# source = "SumoLogic/sumo-logic-integrations/sumologic//sumologic"
# version = "1.0.23"

access_id = var.access_id
access_key = var.access_key
Expand Down
5 changes: 3 additions & 2 deletions aws-observability-terraform/app-modules/rds/app.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module "rds_module" {
source = "SumoLogic/sumo-logic-integrations/sumologic//sumologic"
version = "1.0.22"
source = "git::https://github.com/SumoLogic/terraform-sumologic-sumo-logic-integrations.git//sumologic?ref=fy27q1"
# source = "SumoLogic/sumo-logic-integrations/sumologic//sumologic"
# version = "1.0.23"

access_id = var.access_id
access_key = var.access_key
Expand Down
Loading
Loading