sumologic-python-sdk icon indicating copy to clipboard operation
sumologic-python-sdk copied to clipboard

Built-in rate-limiting

Open ghost opened this issue 10 years ago • 7 comments

ghost avatar Aug 06 '15 17:08 ghost

Can you expound on this issue please? what exactly is trying to be achieved ?

MelchiSalins avatar Jan 14 '16 01:01 MelchiSalins

The Sumo Logic API has rate limits (documented here). I think the SDK should know these limits and operate accordingly.

ghost avatar Jan 14 '16 02:01 ghost

Thanks, I'll take a look at this and try and come up with a fix for it. I am currently having to put my application to sleep implicitly to avoid the rate limits.

MelchiSalins avatar Feb 16 '16 00:02 MelchiSalins

Does anyone have a short term patch for this? I'm getting a

HTTPError: 504 Server Error: GATEWAY_TIMEOUT

And I think it's due to the rate limiting

mritchie712 avatar Apr 07 '16 22:04 mritchie712

When the REST API rate-limits you will receive a 429: Too many requests. The 504 is a server error which most likely occurred during an outage of some backend service that the API depends on. @mritchie712 please let me know if you're still having this issue.

ghost avatar May 06 '16 23:05 ghost

In case anyone else is having this issue... I solved it by using the Search Job API instead of the search API.

https://github.com/SumoLogic/sumo-api-doc/wiki/Search-Job-API

mritchie712 avatar May 07 '16 13:05 mritchie712

Do you know of a PHP implementation of the Search Job API ? I want to update the Sumologic Google Charts php project

oriadam avatar Aug 25 '16 17:08 oriadam