# Topics\_pattern of kafka input plugin is not working

**URL:** <https://discuss.elastic.co/t/topics-pattern-of-kafka-input-plugin-is-not-working/169405>\
**Category:** Logstash\
**Created:** [February 21, 2019, 11:48am UTC](https://discuss.elastic.co/t/topics-pattern-of-kafka-input-plugin-is-not-working/169405 "2019-02-21T11:48:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![srineela](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@srineela](https://discuss.elastic.co/u/srineela)\
**Post date:** [February 21, 2019, 11:48am UTC](https://discuss.elastic.co/t/topics-pattern-of-kafka-input-plugin-is-not-working/169405/1 "2019-02-21T11:48:33Z")

</div>

I am having topics in kafka with prefix "abc-". When I use topics\_pattern =\> "abc-\*" in kafka input plugin I am not getting any results in elasticerach. It is not throwing any errors in logstash also.

Currently I am using logstash 6.5.4 version and following is my configuration

```
input {
    	kafka {
    			bootstrap_servers => "localhost:9092"
    			topics_pattern => "abc-*"
    			metadata_max_age_ms => 60000
    	}		
    }
```

---

<div class="post-metadata">

**Author:** ![xiaobao623](https://avatars.discourse-cdn.com/v4/letter/x/ccd318/32.png) [@xiaobao623](https://discuss.elastic.co/u/xiaobao623)\
**Post date:** [March 13, 2019, 1:17pm UTC](https://discuss.elastic.co/t/topics-pattern-of-kafka-input-plugin-is-not-working/169405/2 "2019-03-13T13:17:13Z")

</div>

Hi , you mast write as  
"abc-._" NOT "abc-_"  
don't lost the " . " betwen "-" and "\*"

---

<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:** [April 10, 2019, 1:21pm UTC](https://discuss.elastic.co/t/topics-pattern-of-kafka-input-plugin-is-not-working/169405/3 "2019-04-10T13:21:32Z")

</div>

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