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

Error uploading logs spanning > 24 hours #1

Closed
lincheney opened this issue Apr 21, 2016 · 1 comment
Closed

Error uploading logs spanning > 24 hours #1

lincheney opened this issue Apr 21, 2016 · 1 comment
Assignees

Comments

@lincheney
Copy link
Owner

Uploading a batch of logs spanning > 24 hours fails. This can occur if the server has been down for a few days.
The log uploader will need to be more intelligent and split up the batch appropriately.

Traceback:

Traceback (most recent call last):
File "/main.py", line 181, in <module>
client.log_messages(log_stream, list(messages))
File "/main.py", line 97, in log_messages
self._log_messages(log_stream, messages[i : (i+chunk)])
File "/main.py", line 106, in _log_messages
self.put_log_messages(log_stream, messages)
File "/main.py", line 91, in put_log_messages
**kwargs
File "/usr/local/lib/python3.4/dist-packages/botocore/client.py", line 228, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/usr/local/lib/python3.4/dist-packages/botocore/client.py", line 492, in _make_api_call
raise ClientError(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InvalidParameterException) when calling the PutLogEvents operation: The batch of log events in a single PutLogEvents req
@lincheney lincheney self-assigned this Apr 21, 2016
@lincheney
Copy link
Owner Author

Fixed in c0d93f7

blueyed pushed a commit to blueyed/journald-2-cloudwatch that referenced this issue Aug 22, 2017
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