Comments (4)
The wr.cloudwatch.describe_log_streams
API already implements next_token and can return all items. 50 is the limit for each pagination call, not the overall limit. It's enforced by the underlying boto3 API (see Limit in the link you shared).
from aws-sdk-pandas.
Thanks @jaidisido! I realize my confusion is with the word limit
which I didn't interpret to be a page size.
I have a log group with hundreds of thousands of log streams. How do I get the latest 1000 log streams ordered by LastEventTime
? I would have expected the limit
parameter to allow me to stop the pagination after 1000 events collected.
wr.cloudwatch.describe_log_streams(
log_group_name="/my/log/group",
order_by='LastEventTime',
descending=True,
)
from aws-sdk-pandas.
I see. We are limited by what the underlying boto3 calls exposes I am afraid. The read_logs API might give you more flexibility in the query perhaps.
from aws-sdk-pandas.
I think the boto3 API exposes enough nobs to achieve this behavior. Instead of running while "nextToken" in response
, we can client side stop paginating requests if some condition is met such as a client side limit or a client side LastEventTime
if this makes sense to you, I can re-open this as a feature request for adding a client side filtering / stop pagination parameter in wr.cloudwatch.describe_log_streams
for large log groups
from aws-sdk-pandas.
Related Issues (20)
- Support client-side parameter resolution in wr.athena.create_ctas_table HOT 1
- Cannot write parquet in an S3 path that includes white spaces when using ray HOT 1
- Provide option to skip commit in postgresql.to_sql to allow usage of transactions HOT 1
- Incorrect error message or implementation for datetime formatting? HOT 1
- Unsupported Athena type: json
- Requests for Additional Argument `name_function` on `awswrangler.s3.to_parquet()` HOT 1
- Support IAM Trusted Identity Propagation and Lake Formation with Athena
- Support IAM Trusted Identity Propagation with Redshift
- Upsert column parameters HOT 1
- Get column parameters HOT 2
- s3.read_parquet_table and exception "Unknown parameter in input: "ExcludeColumnSchema", must be one of: CatalogId, DatabaseName, TableName, Expression, NextToken, Segment, MaxResults" HOT 2
- The `to_property_graph` docstring in the Neptune module is not well written and does not describe the behavior of the function when the node already exists HOT 1
- Postgres upsert table creation
- Insight into error `awswrangler.exceptions.QueryFailed: Iceberg cannot access the requested resource` HOT 2
- athena.to_iceberg function is not deleting temp_table_xxxxx properly in Athena HOT 1
- Add s3_output parameter to athena.delete_from_iceberg_table method HOT 1
- wr.s3.download fits the whole file into memory, with 2x memory allocation
- Upsert mode for SQL Server HOT 1
- Lack of `verify` input to customize SSL verify option limits smooth usage of the package modules
- Allow more than parquet files in redshift copy from files function
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-sdk-pandas.