Skip to content
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

Configuration for shard iterator AT_TIMESTAMP #19

Open
santoshkulk opened this issue Feb 3, 2017 · 7 comments
Open

Configuration for shard iterator AT_TIMESTAMP #19

santoshkulk opened this issue Feb 3, 2017 · 7 comments

Comments

@santoshkulk
Copy link

KCL provides an option to specify the initial position in the stream from where the application starts reading from. It can be one of LATEST, TRIM_HORIZON or AT_TIMESTAMP. I do not see a configuration option currently available in the logstash configuration to specify the same. Is there anything I am missing here?

@codekitchen
Copy link
Collaborator

Nope, it's just never come up so far. Right now it's hard-coded to TRIM_HORIZON: https://github.com/logstash-plugins/logstash-input-kinesis/blob/master/lib/logstash/inputs/kinesis.rb#L73

Making this configurable is certainly reasonable though.

@tschran
Copy link

tschran commented Feb 14, 2017

I second this request.

We have a number of streams with 7 day retention, so as we're setting up new logstash stream processors, each one has to chew through a week worth of data that we've already processed with our existing system. It would be great to be able to tell it to just start processing from now and ignore the existing data.

@jennysivapalan
Copy link

We have the same use case @tschran so would love to see this feature.

@aloisbarreras
Copy link
Contributor

hey @codekitchen I took a stab at adding support for LATEST here.

I have never written ruby code in my life, so I'm sure it will need a little revision.

@jlaneve
Copy link

jlaneve commented Aug 18, 2017

+1

@codekitchen
Copy link
Collaborator

LATEST is now supported thanks to a PR from @aloisbarreras

AT_TIMESTAMP support involves further work if anybody is interested in tackling it -- most likely another config parameter for the timestamp. I'm not positive if logstash natively supports timestamp config vars or if we'd need to parse it out from a string in this plugin.

@codekitchen codekitchen changed the title Configuration for shard iterator- LATEST, TRIM_HORIZON, AT_TIMESTAMP Configuration for shard iterator AT_TIMESTAMP Aug 22, 2017
@SatejMore
Copy link

Hello,
Is this configuration available for use in kinesis input plugin now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants