Add example notebook for downloading S3 logs #69
+2,895
−1,515
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds an example IPython notebook demonstrating how to download and analyze log files from the
staging-eks-otel-loggingS3 bucket. Just an example - I'm not sure we even want to check it into this repo. I wanted to try it. I think the logs path might be too granular. If we have lots of these it will take some time to download all of them. We can condense them to parquet files.What's included
Notebook:
scripts/download_s3_logs.ipynb- A complete example showing:Dependencies: Added
boto3,pandas, andipykernelto dev dependenciesFeatures
The notebook handles the partitioned S3 structure (
logs/year=2025/month=12/day=04/hour=15/minute=21/) and automatically extracts partition information as separate columns for easier filtering and analysis.Usage
uv sync --group devThis is intended as an example/reference for anyone who needs to download and analyze logs from the S3 bucket.