# Getting error INVALID\_FETCH\_SESSION\_EPOCH in logstash

**URL:** <https://discuss.elastic.co/t/getting-error-invalid-fetch-session-epoch-in-logstash/139340>\
**Category:** Logstash\
**Created:** [July 10, 2018, 12:14pm UTC](https://discuss.elastic.co/t/getting-error-invalid-fetch-session-epoch-in-logstash/139340 "2018-07-10T12:14:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krishna\_Oza](https://avatars.discourse-cdn.com/v4/letter/k/35a633/32.png) [@Krishna\_Oza](https://discuss.elastic.co/u/Krishna_Oza)\
**Post date:** [July 10, 2018, 12:14pm UTC](https://discuss.elastic.co/t/getting-error-invalid-fetch-session-epoch-in-logstash/139340/1 "2018-07-10T12:14:51Z")

</div>

I am getting the error INVALID\_FETCH\_SESSION\_EPOCH while reading messages from kafka.

The error I get is as below.

[2018-07-10T17:42:20,547][INFO][org.apache.kafka.clients.FetchSessionHandler] [Consumer clientId=logstash-3, groupId=logstash] Node 0 was unable to process the fetch request with (sessionId=1078722252, epoch=278837): INVALID\_FETCH\_SESSION\_EPOCH.

Below is my config

input {  
kafka  
{  
codec =\> json  
bootstrap\_servers =\> "10.24.141.0:9092"  
topics =\> ["syslog-topic","dmesg-topic"]  
consumer\_threads =\> 4  
partition\_assignment\_strategy =\> "org.apache.kafka.clients.consumer.RoundRobinAssignor"  
}  
}  
output  
{  
if [tag]  
{  
elasticsearch {  
hosts =\> "localhost:9200"  
index =\> manual\_logs\_error  
}  
}  
elasticsearch {  
hosts =\> "localhost:9200"  
index =\> manual\_logs  
}  
}

---

<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:** [August 7, 2018, 12:14pm UTC](https://discuss.elastic.co/t/getting-error-invalid-fetch-session-epoch-in-logstash/139340/2 "2018-08-07T12:14:56Z")

</div>

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