https://github.com/spudmashmedia/awslogs-docker
Docker-compose script to create a container for awslogs (https://github.com/jorgebastida/awslogs)
https://github.com/spudmashmedia/awslogs-docker
aws aws-cloudwatch-logs bash docker docker-compose
Last synced: 3 months ago
JSON representation
Docker-compose script to create a container for awslogs (https://github.com/jorgebastida/awslogs)
- Host: GitHub
- URL: https://github.com/spudmashmedia/awslogs-docker
- Owner: spudmashmedia
- License: mit
- Created: 2017-07-10T10:59:52.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-10T12:14:15.000Z (almost 9 years ago)
- Last Synced: 2025-12-08T19:22:09.274Z (7 months ago)
- Topics: aws, aws-cloudwatch-logs, bash, docker, docker-compose
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# awslogs-docker
Docker-compose script to create a container for awslogs (https://github.com/jorgebastida/awslogs)
## Requirements
Please install
1) Docker Toolbox
```
https://www.docker.com/products/docker-toolbox
```
2) Docker-Compose
```
https://docs.docker.com/compose/
```
## Installation
### Clone the repository
Using Kitematic (Docker toolbox), click Docker CLI to open a console which is remoted into your Virtual Box VM with Docker.
### Configure files
Populate the *.aws* credentials file with you api key
```
[default]
aws_access_key_id=[key]
aws_secret_access_key=[secret]
```
In the docker-compose.yml modify the following keys:
| KEY | Description |
|---|---|
| *AWS_LOGS_STREAM* | cloudwatch endpoint |
| *AWS_LOGS_REGION* | Region (default: Sydney) |
| *AWS_LOGS_TIME* | is use to query the logs. we're filtering by startdate (default: 1 day of logs) |
| *AWS_LOGS_GREP* | used to filter the resulting dataset (default: find all entries with 'error') |
| *AWS_LOGS_REFRESH* | AWS_LOGS_REFRESH=1m |
### Create Docker Container
In the console, run:
```
/> docker-compose -f docker-compose.yml up -d
```
### View logs in Kitematic
You should now see live logs appearing in the "Container Logs" window in Kitematic.
## Contributing
1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D
## History
- v1
## License
MIT