-
Notifications
You must be signed in to change notification settings - Fork 444
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
[Google Workspace] Cursor is not set correctly in httpjson.yml.hbs #4491
Comments
Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
@marc-gr Do you recall why "execution time" was used as opposed to a timestamp taken from the last received event? integrations/packages/google_workspace/data_stream/admin/agent/stream/httpjson.yml.hbs Lines 28 to 30 in 8bebafa
|
@tlee-elastic It should be resuming by using the execution time of the last request (as was persisted to disk). If that state was lost (or it was the first time the integration runs) then by default it will use |
@andrewkroh from what I can see in the logs, when the google workspace integration paginates, it still updates the cursor with the execution time. If there is an agent restart/disruption during this time. When it resumes, it continues from the cursor time and results in missing data. Logs below:
You can see that the start time in the pagination is still |
I do not remember any specific reason, and indeed it seems like using the provided time in the events would result in a more robust solution. |
Answering to myself. Going through the integration I remember why I did not use the id.time field. I saw different date formats for the time from several samples, and hence supporting these all in the httpjson config would be a bit brittle and cumbersome. I can explore it again and amend it, as I indeed think would be better under a failing scenario like the proposed one. |
Hi! We just realized that we haven't looked into this issue in a while. We're sorry! We're labeling this issue as |
Still relevant 👍 |
This seems like it was a duplicate of #4796 and it should have been closed along with it. |
Closed as duplicate. |
Hi Team,
The cursor is not set correctly in the httpjson.yml.hbs.
When the agent restarts, it will continue from the current time instead of progressing from the last API response time. This causes an outage as the agent cannot automatically backfill the data from the last successful document.
The text was updated successfully, but these errors were encountered: