- Save
.env.example
as.env
with your correct values - Load
.env
by your method of choice
echo $TF_VAR_sumologic_access_id
echo $TF_VAR_sumologic_access_key
echo $TF_VAR_sumologic_notification_email
echo $SUMOLOGIC_ENDPOINT
terraform init
terraform plan -out=tfplan
terraform apply "tfplan"
- Go to https://service.sumologic.com/livetail
- Add
_sourceCategory=terraform*
- Click run button
- Open terminal
- Run
curl -X POST -H "Content-Type: text/plain" -d "Hello World" $SUMOLOGIC_ENDPOINT
- Go to https://service.sumologic.com/log-search
- Add
_sourceCategory=terraform*
- Click search button
- Open terminal
- Run
curl -X POST -H "Content-Type: application/json" -d @example-json-200.log $SUMOLOGIC_ENDPOINT
- Run
curl -X POST -H "Content-Type: application/json" -d @example-json-400.log $SUMOLOGIC_ENDPOINT
- Run
curl -X POST -H "Content-Type: application/json" -d @example-json-500.log $SUMOLOGIC_ENDPOINT
This should result in you getting two emails after 5 minutes letting you know the monitor has reached critical and warning status.
Great success!