Skip to content
This repository has been archived by the owner on May 23, 2019. It is now read-only.

Support midnight index rollover #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

pemontto
Copy link

Pass multiple indices to Elasticsearch when query_start_time is less than update_interval seconds from midnight UTC. The previous behaviour would miss events occurring in the seconds before midnight.

e.g. The update interval is 60s, the last query was performed at 2016-01-09T23:59:30Z on index logstash-2016.01.09. The next query occurs at 2016-01-10T00:00:30Z on index logstash-2016.01.10, missing 30s worth of events indexed into logstash-2016.01.09.

This commit will tell Elasticsearch to query both indices if the time period straddles midnight.

Pass multiple indices to Elasticsearch when query_start_time is less than update_interval seconds from midnight UTC
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant