-
Notifications
You must be signed in to change notification settings - Fork 97
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
Record size limit exceeded in 1586 KB #210
Comments
I am facing similar issue and haven't found any solution yet. Found another link with same issue which was closed with no resolution |
Hi @pradeepbhadani, @singhajit89 Thank you for your feedback! |
Hi @simukappu, I haven't raise enhancement request yet for this plugin but will definitely raise based on feedback on recommended work around/solution below. I am using this plugin to send the record to Kinesis Firehose which has exactly same 1 MB limitation and exception in td-agent.log file when record size limit exceeded similar to issue reported on #201 Fact: My use Case: To avoid log explosion haven't configure my application to send logs to Kinesis Firehose. Recommended Solution:
The above will help me to use my application to send all the logs to Kinesis excluding the record of size greater than 1 MB and also not filling up the td-agent.log file. Thank you! |
Thank you for the details. I understood what the critical issue is. |
Hi @singhajit89, Does log_truncate_max_size configuration parameter become a solution for your issue? When you set this parameter, error log printed by "SkipRecordError" including "ExceedMaxRecordSizeError" will be truncated to length of log_truncate_max_size here. |
Hi @simukappu, I had already tried using the above configuration log_truncate_max_size a month back but that didn't worked for me. But recently I made a change in kinesis.rb file which now working as expected. For the record greater than 1MB its now only printing the exception name & size and skipping to print the record_message content in td-agent.log file which is helping to keep the file log file size low and also allowing us to see application logs in elasticsearch(excluding record of size greater than 1MB) Original block----
Changes that is working
For Example: Using the above if the record size exceeds the kinesis firehose limit it prints below in td-agent.log file
|
Hi @simukappu, How can I get the above changes committed in actual repo or what is the procedure to do it ? |
If we remove @record_message from to_s method, there will be no way to know the content of error record from standard logs. We are providing log_truncate_max_size parameter to shorten log size. We would appreciate it if you could feedback why log_truncate_max_size parameter does not work for you and why you would like to remove @record_message from standard log format. Thank you for your feedback! |
Closing this issue for now. Please reopen if required. |
I am using
kinesis_streams
plugin and sending data from a file to Kinesis.From AWS doc, I can see that there is a 1MB limit per record. But is there a better way to handle these error - like filter out these records when bigger than 1MB, etc?
Config
Error
The text was updated successfully, but these errors were encountered: