While using the Google Workspace Admin module for Filebeat, I've encountered an issue where duplicate logs are being received.
The problem seems to originate from the url.params.startTime
configuration, particularly with the following logic:
value: >-
[[- if eq .cursor.pagination_finished "true" -]]
[[- .cursor.next_start_date -]]
[[- else -]]
[[- .cursor.last_response_date -]]
[[- end -]]
default: '[[formatDate (now (parseDuration "-{{.initial_interval}}"))]]'
Here, next_start_date
is being set to [[ .first_event.id.time ]]
(the event time). However, this causes the module to set the startTime
parameter to the time of the event, resulting in the same event being pulled repeatedly.
Since startTime
sets the beginning of the range for the logs, this behavior causes multiple logs to be received for the same event, leading to duplication.
Steps to Reproduce:
- Configure the Google Workspace Admin module as per the documentation.
- Enable the module and start Filebeat.
- Observe the logs being ingested.
Environment:
Filebeat version: 8.16.1
Module: Google Workspace Admin
Has anyone found a workaround or solution to prevent this behavior?
Thank you in advance!