Query S3 Log Files
Project description
S3 Log Query
S3 Log Query is a Python library that takes one or more log files stored in S3, fetches and aggregates log messages from the files based on certain parameters, and returns the messages in order of occurrence. This library utilizes S3 Select and multithreading for performance.
Installation
Use the package manager pip to install S3 Log Query.
pip install s3-log-query
Usage
from s3_log_query import LogQuery
logs = LogQuery(log_paths={'server1': 'server1/server1.log', 'db server': 'db_server/db_server.log',
'server2': 'server2/server2.log', 'server3': 'server3/server3/log'},
s3_bucket='mikethoun-logs')
logs.query(start='02/28/2020 5:20:55', entries=100, keys=['server1', 'db server'], min_severity=logging.WARN)
Contributing
Pull requests are welcome.
License
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file s3-log-query-1.0.0.tar.gz.
File metadata
- Download URL: s3-log-query-1.0.0.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af2e130d8a1cc65311be85fe889a48a6c49add46589f4fd1c35d279af34c3a25
|
|
| MD5 |
8fdd4695e87ae784a550fbfb364a3663
|
|
| BLAKE2b-256 |
9e33bd7aa07c1294bdf4d6652d86de13b2261822897f27373f530216d8bcacd9
|
File details
Details for the file s3_log_query-1.0.0-py3-none-any.whl.
File metadata
- Download URL: s3_log_query-1.0.0-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20217276d92001c970648b10bfad0efc526bb80ff07c6c7f3a8b4c56f3c0e6f9
|
|
| MD5 |
86a709bb5764279825896e528ef21d0b
|
|
| BLAKE2b-256 |
134de02c647310b150e1cddd70395cb7e333773af1f33a56336cea1bc134d29f
|