| Crates.io | stdin-to-cloudwatch |
| lib.rs | stdin-to-cloudwatch |
| version | 0.3.0 |
| created_at | 2024-02-17 05:30:06.892529+00 |
| updated_at | 2024-02-17 14:50:15.948944+00 |
| description | Send logs from stdin to AWS CloudWatch Logs |
| homepage | |
| repository | https://github.com/milabo/stdin-to-cloudwatch |
| max_upload_size | |
| id | 1143024 |
| size | 55,808 |
Send logs from stdin to AWS CloudWatch Logs
echo "Hello, World!" | stdin-to-cloudwatch MyLogGroup MyLogStream
MyLogGroup is the name of the log group to send the logs to
MyLogStream is the name of the log stream to send the logs to
cargo install stdin-to-cloudwatch
--regionThe AWS region to send the logs to.
echo "Hello, World!" | stdin-to-cloudwatch MyLogGroup MyLogStream --region us-west-2
--endpoint-urlThe endpoint URL to send the logs to.
LocalStack users can use this to send logs to LocalStack.
echo "Hello, World!" | stdin-to-cloudwatch MyLogGroup MyLogStream --endpoint-url http://localhost:4566
--remake-log-streamIf the log stream already exists, delete it and create a new one.
echo "Hello, World!" | stdin-to-cloudwatch MyLogGroup MyLogStream --remake-log-stream
-s, --suffix-stream-name-with-timestampAppend the current timestamp to the log stream name.
echo "Hello, World!" | stdin-to-cloudwatch MyLogGroup MyLogStream --suffix-stream-name-with-timestamp
stream name will be like MyLogStream-1708169869
--pass-throughPass the logs through to stdout after sending them to CloudWatch Logs.
echo "Hello, World!" | stdin-to-cloudwatch MyLogGroup MyLogStream --pass-through