Falcon API doesn't work as expected #943
-
Describe the bug The problem is the falcon api sometimes returns one instance and sometimes its not. This is very peculiar. Suppose for one 'abc' instance the api returning that it exists in falcon db on 22nd March. On 23rd March the api doesn't return anything. Again one 24th March, it is returning the instance exists. This is very confusing as to why this happens. Our Job runs eveyday at 5 AM CET. To Reproduce Expected behavior Environment (please complete the following information):
Additional context
I am attaching one sample excel file which actually shows how it is returning one particular instance in a strange way. We know it for one instance but I am sure this is happening for may instances in our organization. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hi @nspacer thanks for the question! Converting this to a discussion to better assist. I took a look at the attached code and wanted to take a look at the loop.
While this does paginate through the list is it possible that there are more than 10000 records in your environment? Specifically the The
|
Beta Was this translation helpful? Give feedback.
-
Dear @crowdstrikedcs , after checking the data for couple of days, we can see that the resources that are short lived do not appear in the API. So what we are observing is, suppose one of the instance which is started for 2 mins and then stopped again after 2 mins, do not appear in the API. But is available in the snapshot taken directly from crodstrike website. Do you know any reason for this behaviour? |
Beta Was this translation helpful? Give feedback.
Hi @nspacer WRT to your first, I misspoke earlier about only being able to pull 10000 records, this does not apply to customers in the US-1 cloud currently where the limit is 150000. I would still encourage usage of the
query_devices_by_filter_scroll
operation as due to its difference in using an offset pointer we will have better results scrolling through responses with more than 10000 records.To clarify on your second point, with the
query_devices_by_filter_scroll
operation, after having reached the last page of data the following response will set the total to zero indicating no more records are to be returned, at which point the loop will exit. This is a difference from thequery_dev…