Library to query CloudWatch Logs and create Pandas DataFrame from the results
Project description
CloudWatchLogs2Pandas
This file will become your README and also the index of your documentation.
Install
pip install CloudWatchLogs2Pandas
How to use
Fill me in please! Don’t forget code examples:
query = 'fields @timestamp, @message | sort @timestamp desc | limit 5'
log_group = '/aws/apigateway/welcome'
cwq = CloudWatchQuery(query, log_group)
cwq.get_df()
<style scoped>
.dataframe tbody tr th:only-of-type {
vertical-align: middle;
}
.dataframe tbody tr th {
vertical-align: top;
}
.dataframe thead th {
text-align: right;
}
</style>
timestamp | message | ptr | |
---|---|---|---|
0 | 2021-12-20 11:03:13.568 | Cloudwatch logs enabled for API Gateway | CmAKKAokMzI3MTYzODM3MDU1Oi9hd3MvYXBpZ2F0ZXdheS... |
1 | 2021-11-24 15:10:19.572 | Cloudwatch logs enabled for API Gateway | CmAKKAokMzI3MTYzODM3MDU1Oi9hd3MvYXBpZ2F0ZXdheS... |
2 | 2021-11-01 15:57:57.790 | Cloudwatch logs enabled for API Gateway | CmAKKAokMzI3MTYzODM3MDU1Oi9hd3MvYXBpZ2F0ZXdheS... |
3 | 2021-11-01 15:37:36.574 | Cloudwatch logs enabled for API Gateway | CmAKKAokMzI3MTYzODM3MDU1Oi9hd3MvYXBpZ2F0ZXdheS... |
4 | 2021-10-30 23:10:28.807 | Cloudwatch logs enabled for API Gateway | CmAKKAokMzI3MTYzODM3MDU1Oi9hd3MvYXBpZ2F0ZXdheS... |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for CloudWatchLogs2Pandas-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2746c9f4e578dc0046f183ee8d9c0cf3372f9ed4888598ca5258b07e71cf6cde |
|
MD5 | c85bf73a78d0b2f39bd3402d4b8c0529 |
|
BLAKE2b-256 | a309a61824024b5fce90198f4cf5b193dec3905b58992c0d65fb3c7cabe8130d |
Close
Hashes for CloudWatchLogs2Pandas-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7eefa0dca0a2eb35bcd6ae01e97746d301bb5c8c784a99f67cd2d396d8b7ed0d |
|
MD5 | 65556dfd43af9ad9123337242acf1f90 |
|
BLAKE2b-256 | ebcf0fa2afc5cd72a8230ffb3ffa967aa9712ba7cd36dd1cbf7337b89f80bb3b |