2.2.5 • Published 7 months ago

@trxn/terraform-service-logstash v2.2.5

Weekly downloads
-
License
-
Repository
github
Last release
7 months ago

Logstash service

Provides a Logstash service that will crawl information from CloudWatch and send it to Elastic Cloud.

This service is based on this Docker image: https://hub.docker.com/repository/docker/tractr/logstash-input-cloudwatch

How it gets information from CloudWatch ?

A user, allowed to read CloudWatch, is created. Its API key and secret are outputted by Terraform.

Configuration example

const api = new LogstashComponent(this, 'logstash', {
  containerConfig: {
    imageTag: '8.3.3',
    environments: {
      XPACK_MONITORING_ENABLED: 'false',
      XPACK_MANAGEMENT_ENABLED: 'true',
      XPACK_MANAGEMENT_ELASTICSEARCH_CLOUD_ID: Secret(),
      XPACK_MANAGEMENT_ELASTICSEARCH_CLOUD_AUTH: Secret(),
      XPACK_MANAGEMENT_PIPELINE_ID: Secret(),
    },
  },
  desiredCount: 1,
  cpu: '1024',
  memory: '1024',
});

XPACK_MANAGEMENT_ELASTICSEARCH_CLOUD_ID, XPACK_MANAGEMENT_ELASTICSEARCH_CLOUD_AUTH and XPACK_MANAGEMENT_PIPELINE_ID must be set in AWS Secrets Manager.

Elastic Cloud configuration

For more information on how to configure plugins:

Configuration example

The values access_key_id and secret_access_key will be output by Terraform.

input {
    cloudwatch_logs {
        access_key_id => "${CLOUDWATCH_KEY_ID}"
        secret_access_key => "${CLOUDWATCH_KEY_SECRET}"
        log_group => "production-logs-group"
        region => "us-east-1"
    }
}
filter {
}
output {
    elasticsearch {
        cloud_id => "${XPACK_MANAGEMENT_ELASTICSEARCH_CLOUD_ID}"
        cloud_auth => "${XPACK_MANAGEMENT_ELASTICSEARCH_CLOUD_AUTH}"
        index => "cloudwatch-logs"
    }
}
2.2.3

10 months ago

2.2.5

7 months ago

2.2.4

9 months ago

2.2.1

12 months ago

2.2.2

12 months ago

2.2.0

1 year ago

2.1.14

1 year ago

2.2.0-next.2

1 year ago

2.2.0-next.3

1 year ago

2.1.14-next.0

1 year ago

2.1.9

1 year ago

2.1.12

1 year ago

2.1.13

1 year ago

2.1.10

1 year ago

2.1.11

1 year ago

2.2.0-next.0

1 year ago

2.2.0-next.1

1 year ago

2.1.4

1 year ago

2.1.6

1 year ago

2.1.5

1 year ago

2.1.8

1 year ago

2.1.7

1 year ago

2.1.0-next.1

1 year ago

2.1.0-next.0

1 year ago

2.1.2

1 year ago

2.1.1

1 year ago

2.1.3

1 year ago

2.1.0

1 year ago

2.0.11-next.1

1 year ago

2.0.11-next.0

1 year ago

2.0.11-next.3

1 year ago

2.0.11-next.2

1 year ago

2.0.13

1 year ago

2.0.11

1 year ago

2.0.12

1 year ago

2.0.9

1 year ago

2.0.10

1 year ago

2.0.8

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.7

1 year ago

2.0.6

1 year ago

2.0.0-next.2

1 year ago

2.0.0-next.0

1 year ago

2.0.0-next.1

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.65.13-next.4

1 year ago

1.65.13-next.5

1 year ago

1.65.11-beta.3

1 year ago

1.65.3

1 year ago

1.65.13-next.2

1 year ago

1.65.4

1 year ago

1.65.5

1 year ago

1.65.13-next.8

1 year ago

1.65.6

1 year ago

1.65.11-next.0

1 year ago

1.65.7

1 year ago

1.65.13-next.6

1 year ago

1.65.8

1 year ago

1.65.13-next.7

1 year ago

1.65.9

1 year ago

1.65.10

1 year ago

1.65.12

1 year ago

1.65.11

1 year ago

1.65.13-next.0

1 year ago

1.65.11-beta.0

1 year ago

1.65.13-next.1

1 year ago

1.65.11-beta.2

1 year ago

1.65.11-beta.1

1 year ago

1.65.2

1 year ago