Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

Latest commit

 

History

History
53 lines (44 loc) · 2.06 KB

sumologic_polling_source.md

File metadata and controls

53 lines (44 loc) · 2.06 KB

sumologic_polling_source

Provides a Sumologic Polling source. This source is used to import data from AWS S3 buckets.

IMPORTANT: The AWS credentials are stored in plain-text in the state. This is a potential security issue.

Example Usage

resource "sumologic_polling_source" "s3_audit" {
    name          = "Amazon S3 Audit"
    category      = "aws/s3audit"
    content_type  = "AwsS3AuditBucket"
    scan_interval = 300000 # 5 minutes in milliseconds
    paused        = false
    collector_id  = "${sumologic_collector.collector.id}"

    authentication {
        access_key = "AKIAIOSFODNN7EXAMPLE"
        secret_key = "******"
    }

    path {
        bucket_name     = "Bucket1"
        path_expression = "*"
    }
}

resource "sumologic_collector" "collector" {
    name        = "my-collector"
    description = "Just testing this"
}

Argument reference

  • name - The name of the source. This is required, and has to be unique in the scope of the collector. Changing this will force recreation the source.
  • collector_id - (Required) The ID of the collector to attach this source to.
  • category - (Required) The source category this source logs to.
  • content_type - (Required) The content-type of the collected data. Details can be found in the [Sumologic documentation for hosted sources][2].
  • scan_interval - (Required) Time interval of scans for new data in milliseconds.
  • paused - (Required) When set to true, the scanner is paused. To disable, set to false.
  • authentication - (Required) Authentication details for connecting to the S3 bucket.
    • access_key - (Required) Your AWS access key
    • secret_key - (Required) Your AWS secret key
  • path - (Required) The location to scan for new data.
    • bucket_name - (Required) The name of the bucket.
    • path_expression - (Required) The path to the data.

Attributes reference

  • id - The internal ID of the source.

Back to Index