A simple data generator for easy validations of Logs & Metrics ingestion.
Require Go version 1.22+
- Clone the repository
- Copy
config.sample.yaml
and edit as needed. - Start the data generator with config file as the only parameter
go run main.go --configFile ./config.yaml
Check config.sample.yaml
as a reference configuration.
ECS (Elastic Common Schema) formated logs based on zap. Check ecs-logging-go-zap for adoption
Generate metrics similar to a CloudWatch metrics entry. Limited support and tobe improved
Important
AWS specific exporters require aws.profile to configure with a valid credential profile name. And make sure you have sufficient permissions to use the exporter with these credentials.
Generates a file with new line as data point delimiter.
Available options,
file_location
: Optional file location to write the output to. Default to./out
Write generated data to a S3 bucket.
Available options,
s3Bucket
: Bucket name (required)bucketSeconds
: Period between two bucket entries. Optional and default to 120secondsbucketPrefix
: Optional prefix for the entry. Default tologFile-
Push data to an AWS firehose data stream.
Available options,
firehoseStreamName
: firehose stream name (required)
Push data to AWS CloudWatch log group or stream name.
Available options,
cloudwatchLogGroup
: Cloudwatch log group namecloudwatchLogStreamName
: Define a specific log stream name
Important
One of these options must be set to use the exporter