# 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/270969
**Category:** Logstash
**Created:** [April 22, 2021, 1:58pm UTC](https://discuss.elastic.co/t/problem-with-logstash-input-kinesis-plugin-while-reading-data-from-the-stream/270969 "2021-04-22T13:58:23Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![dbElastic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dbelastic/32/46548_2.png) [@dbElastic](https://discuss.elastic.co/u/dbElastic)
#### Post date: [April 22, 2021, 1:58pm UTC](https://discuss.elastic.co/t/problem-with-logstash-input-kinesis-plugin-while-reading-data-from-the-stream/270969/1 "2021-04-22T13:58:23Z")

</div>

Caught exception while sync'ing Kinesis shards and leases

com.amazonaws.services.kinesis.model.ResourceNotFoundException: Stream aws-xxx-xxx-xxxx-kinesis-xxxxxx under account xxxxxxxxxx not found. (Service: AmazonKinesis; Status Code: 400; Error Code: ResourceNotFoundException;

my conf file content are as below:  
input {  
kinesis {  
region =\> "XX"  
profile =\> "XX"  
kinesis\_stream\_name =\> "kinesis-firehose"  
add\_field =\> ["type", "kinesistest"]  
codec =\> json { }  
}  
}

output {  
stdout { codec =\> rubydebug }  
if ([@metadata][beat] != "metricbeat" and [@metadata][beat] != "winlogbeat" and [@metadata][beat] != "heartbeat" and [@metadata][beat] != "filebeat" and [type] == "kinesistest") {  
elasticsearch {

```
hosts => '${XXX}'
user => "${XXX}"
password => "${XXX}"
index => "kinesis"

```

}  
}

}

@dadoonet , I saw you commenting on such a post in the past. Any clues?

---

<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: [May 20, 2021, 1:58pm UTC](https://discuss.elastic.co/t/problem-with-logstash-input-kinesis-plugin-while-reading-data-from-the-stream/270969/2 "2021-05-20T13:58:53Z")

</div>

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