# Problem with logstash input kinesis plugin while reading data from the stream

**URL:** https://discuss.elastic.co/t/problem-with-logstash-input-kinesis-plugin-while-reading-data-from-the-stream/111995
**Category:** Logstash
**Created:** [December 15, 2017, 1:52pm UTC](https://discuss.elastic.co/t/problem-with-logstash-input-kinesis-plugin-while-reading-data-from-the-stream/111995 "2017-12-15T13:52:37Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![kabali12345](https://avatars.discourse-cdn.com/v4/letter/k/6a8cbe/32.png) [@kabali12345](https://discuss.elastic.co/u/kabali12345)
#### Post date: [December 15, 2017, 1:52pm UTC](https://discuss.elastic.co/t/problem-with-logstash-input-kinesis-plugin-while-reading-data-from-the-stream/111995/1 "2017-12-15T13:52:37Z")

</div>

Hi all..

I am trying to access kinesis stream i mean to read data from the stream

here is my conf

```auto
input
{
kinesis {
    application_name => "logstash"
    kinesis_stream_name => "apple"
    region => "xxxxxx"
    codec => "json"
}
}
output
{
 stdout { codec => rubydebug }
  }

```

I am getting the below error...don't understand why is it so

```auto
Dec 15, 2017 5:45:48 PM com.amazonaws.services.kinesis.clientlibrary.lib.worker.InitializeTask call
SEVERE: Caught exception: 
com.amazonaws.services.kinesis.model.InvalidArgumentException: StartingSequenceNumber 495788662778xxxxxxxxxxxxxxxxxxxxxx used in GetShardIterator on shard shardId-000000000003 in stream apple under account xxxxxxxxxxx is invalid because it did not come from this stream. (Service: AmazonKinesis; Status Code: 400; Error Code: InvalidArgumentException; Request ID: fe38e3xxxxxxxx)

```

please help me to overcome the above issue

Thank You.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [December 15, 2017, 2:11pm UTC](https://discuss.elastic.co/t/problem-with-logstash-input-kinesis-plugin-while-reading-data-from-the-stream/111995/2 "2017-12-15T14:11:29Z")

</div>

Moved to #logstash

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [January 12, 2018, 2:11pm UTC](https://discuss.elastic.co/t/problem-with-logstash-input-kinesis-plugin-while-reading-data-from-the-stream/111995/3 "2018-01-12T14:11:49Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
