https://github.com/awslabs/aws-ecs-logs-collector-for-windows
The script will be used to collect general os logs as well as Docker and ecs-agent logs, it also support to enable debug mode for docker and ecs-agent in Windows 2016.
https://github.com/awslabs/aws-ecs-logs-collector-for-windows
Last synced: 4 months ago
JSON representation
The script will be used to collect general os logs as well as Docker and ecs-agent logs, it also support to enable debug mode for docker and ecs-agent in Windows 2016.
- Host: GitHub
- URL: https://github.com/awslabs/aws-ecs-logs-collector-for-windows
- Owner: awslabs
- License: apache-2.0
- Created: 2017-11-27T19:05:09.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-14T20:01:45.000Z (about 7 years ago)
- Last Synced: 2024-05-23T00:34:10.449Z (11 months ago)
- Language: PowerShell
- Size: 27.3 KB
- Stars: 12
- Watchers: 4
- Forks: 11
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - awslabs/aws-ecs-logs-collector-for-windows - The script will be used to collect general os logs as well as Docker and ecs-agent logs, it also support to enable debug mode for docker and ecs-agent in Windows 2016. (PowerShell)
README
# AWS ECS Logs Collector For Windows
This project was created to collect Amazon ECS log files and OS logs for troubleshooting Amazon ECS on Windows customer support cases.
## Supported Operating System
Windows 2016
## Collected information
System and Application Event Logs
OS System Information
Docker logs
Amazon ECS agent Logs
## Results
Creates a collect.zip file in the same folder as the script
## Usage
Run this script as an elevated user:
# .\ecs-logs-collector.ps1
The script can be used in normal(Brief) or debug mode.
## Example output
This script can be used in normal or debug mode
### Example output in normal mode
The following output shows this project running in normal mode:
# .\ecs-logs-collector.ps1
Running Default(Brief) ModeCleaning up directory
OKCreating temporary directory
OKCollecting System information
OKChecking free disk space
C: drive has 75% free space
OKCollecting System Logs
OKCollecting Application Logs
OKCollecting Volume info
OKCollecting Windows Firewall info
Collecting Rules for Domain profile
Collecting Rules for Private profile
Collecting Rules for Public profile
OKCollecting installed applications list
OKCollecting Services list
OKCollecting Docker daemon information
OKCollecting ECS Agent logs
OKInspect running Docker containers and gather Amazon ECS container agent data
OKCollecting Docker daemon logs
OKArchiving gathered data
OK### Example output in debug mode
The following output shows this script running with debug mode. Note that running in debug mode restarts Docker and the Amazon ECS agent.
# .\ecs-logs-collector.ps1 -RunMode debug
Running Debug ModeCleaning up directory
OKEnabling debug mode for the Docker Service
[SC] ChangeServiceConfig SUCCESS
OKEnabling debug mode for the Amazon ECS container agent
Restarting the Amazon ECS container agent to enable debug mode
OKCreating temporary directory
OKCollecting System information
OKChecking free disk space
C: drive has 75% free space
OKCollecting System Logs
OKCollecting Application Logs
OKCollecting Volume info
OKCollecting Windows Firewall info
Collecting Rules for Domain profile
Collecting Rules for Private profile
Collecting Rules for Public profile
OKCollecting installed applications list
OKCollecting Services list
OKCollecting Docker daemon information
OKCollecting ECS Agent logs
OKInspect running Docker containers and gather Amazon ECS container agent data
OKCollecting Docker daemon logs
OKArchiving gathered data
OK## Contributing
Please [create a new GitHub issue](https://github.com/awslabs/aws-ecs-logs-collector-for-windows/issues/new) for any feature requests, bugs, or documentation improvements.
Where possible, [submit a pull request](https://help.github.com/articles/creating-a-pull-request-from-a-fork/) for the change.
## License
This library is licensed under the Apache 2.0 License.