Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interact with CloudTrail Logs #8

Open
abrooke opened this issue Jun 28, 2014 · 0 comments
Open

Interact with CloudTrail Logs #8

abrooke opened this issue Jun 28, 2014 · 0 comments

Comments

@abrooke
Copy link
Contributor

abrooke commented Jun 28, 2014

Reference for cloud trail log format here.

Default listing of log will contain the following components: eventId, userName, eventTime, eventName, eventSource errorCode, errorMessage.

Options should allow for different formats and data included in listing of logs. For example an option of "---raw" could mean to just output the json.

CloudTrail stores its logs in s3 so retrieval of the logs for parsing will require an understanding of how to query s3, the storage path for CloudTrail logs, and the ability to parse the format for listing of s3 information. Additionally, the download of the logs in their json.gz format, which once downloaded can be parsed further for information.

--- CloudTrail s3 path ---
s3://[bucket for logs]/AWSLogs/[Account number]/CloudTrail/[region]/[year]/[month]/[day]

--- Output format of "aws s3 ls" ---
[year]-[month]-[day] [byte count or PRE for folder] [file or folder]

Note: the illusion of folders is for human convenience, the buckets are actually flat structures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant