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

Storing API Log to Elasticsearch failing for being too large #280

Open
chrismshea opened this issue Jun 18, 2024 · 0 comments
Open

Storing API Log to Elasticsearch failing for being too large #280

chrismshea opened this issue Jun 18, 2024 · 0 comments

Comments

@chrismshea
Copy link

Issue

We utilize Elasticsearch to store and access API logs. When reviewing logs I found a number of log statements stating that the API log was unable to be stored in Elasticsearch because the content length was too large. If this continues we will lose access to historical API requests which is critical to supporting our product.

Failed to store API log to Elasticsearch. Exception message: Error executing "SendMessage" on "https://sqs.us-east-1.amazonaws.com/624083294473/log-queue-prod-us-east-1"; AWS HTTP error: Client error: `POST https://sqs.us-east-1.amazonaws.com/624083294473/log-queue-prod-us-east-1` resulted in a `413 Request Entity Too Large` response: HTTP content length exceeded 1662976 bytes. Unable to parse error information from response - Error parsing XML: String could not be parsed as XML

@jmymy states:

The minimum message size is 1 byte (1 character). The maximum is 262,144 bytes (256 KiB).
Im guessing we are hitting these limits

Search Link

https://k1-prod-us-east-1.subscribepro.com/_dashboards/app/data-explorer/discover#?_a=(discover:(columns:!(_sourc[…]20log%20to%20Elasticsearch%22'))

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

No branches or pull requests

1 participant