Metadata-Version: 2.1
Name: pyinsights
Version: 0.1.0
Summary: AWS CloudWatch Logs Insights is wrapped by Python
License: MIT
Keywords: aws,insights,cli
Author: homoluctus
Author-email: w.slife18sy@gmail.com
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Requires-Dist: boto3 (>=1.10.45,<2.0.0)
Requires-Dist: jsonschema (>=3.2.0,<4.0.0)
Requires-Dist: pyyaml (>=5.2,<6.0)
Description-Content-Type: text/markdown

# PyInsights

A CLI tool To query CloudWatch Logs Insights.

## Usage

### 1. Write Configuration

write configuration to `pyinsights.yml` like:

```yaml
version: '1.0'
log_group_name:
  - '/ecs/sample'
pattern: 'field @message | filter @message like /ERROR/'
duration: '30m'
limit: 10
```

### 2. Execute command

```bash
pyinsights -c pyinsights.yml -p aws_profile -r region
```

