# Create kafka stream for a specific topic

**URL:** <https://forum.confluent.io/t/create-kafka-stream-for-a-specific-topic/2133>\
**Category:** Kafka Streams\
**Created:** [29 June 2021 13:48 UTC](https://forum.confluent.io/t/create-kafka-stream-for-a-specific-topic/2133 "2021-06-29T13:48:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohamed.ibrahim](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@mohamed.ibrahim](https://forum.confluent.io/u/mohamed.ibrahim)\
**Post date:** [29 June 2021 13:48 UTC](https://forum.confluent.io/t/create-kafka-stream-for-a-specific-topic/2133/1 "2021-06-29T13:48:30Z")

</div>

hi everyone, i’m looking for some help:  
i produce and consume messages in a topic from a spring boot application which integrate with kafka, so i need to create a stream which stores all messages for this topic from KSQL server , how to create this stream this way  
regards

---

<div class="post-metadata">

**Author:** ![rick](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/rick/32/49_2.png) [@rick](https://forum.confluent.io/u/rick)\
**Post date:** [29 June 2021 14:19 UTC](https://forum.confluent.io/t/create-kafka-stream-for-a-specific-topic/2133/2 "2021-06-29T14:19:09Z")

</div>

@mohamed.ibrahim if you could please clarify your question. Are you looking for help with the spring boot application, the ksqlDB portion, or a Kafka topic question in general? The more specifics you can provide, the more likely you are to receive a helpful answer.

Thanks

---

<div class="post-metadata">

**Author:** ![mohamed.ibrahim](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@mohamed.ibrahim](https://forum.confluent.io/u/mohamed.ibrahim)\
**Post date:** [29 June 2021 14:43 UTC](https://forum.confluent.io/t/create-kafka-stream-for-a-specific-topic/2133/3 "2021-06-29T14:43:04Z")

</div>

my app raises events to some topic and these events are appeared in the confluent UI (control center) i want create stream of this topic from ksql server to catch these events

---

<div class="post-metadata">

**Author:** ![rick](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/rick/32/49_2.png) [@rick](https://forum.confluent.io/u/rick)\
**Post date:** [29 June 2021 14:51 UTC](https://forum.confluent.io/t/create-kafka-stream-for-a-specific-topic/2133/4 "2021-06-29T14:51:04Z")

</div>

@mohamed.ibrahim This page has ksqlDB examples around specific scenarios. So in your case, “Creating a stream over an exsiting Kafka topic”: [ksqlDB: The database purpose-built for stream processing applications.](https://ksqldb.io/examples.html#create-a-stream-over-an-existing-kafka-topic)

---

<div class="post-metadata">

**Author:** ![mohamed.ibrahim](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@mohamed.ibrahim](https://forum.confluent.io/u/mohamed.ibrahim)\
**Post date:** [29 June 2021 15:00 UTC](https://forum.confluent.io/t/create-kafka-stream-for-a-specific-topic/2133/5 "2021-06-29T15:00:05Z")

</div>

thx for yr help but i saw these examples , i dont want to populate data using INSERT statement , i want the data to be populated dynamically based on the topic which my app raises event to it , is that even possible

---

<div class="post-metadata">

**Author:** ![rick](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/rick/32/49_2.png) [@rick](https://forum.confluent.io/u/rick)\
**Post date:** [29 June 2021 15:09 UTC](https://forum.confluent.io/t/create-kafka-stream-for-a-specific-topic/2133/6 "2021-06-29T15:09:41Z")

</div>

The link I posted does not reference an INSERT statement, it references “creating a stream from an existing topic”, which is what you seem to be trying to accomplish.

---

<div class="post-metadata">

**Author:** ![mohamed.ibrahim](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@mohamed.ibrahim](https://forum.confluent.io/u/mohamed.ibrahim)\
**Post date:** [29 June 2021 15:19 UTC](https://forum.confluent.io/t/create-kafka-stream-for-a-specific-topic/2133/7 "2021-06-29T15:19:09Z")

</div>

it’s mention after this section  
any ways i created the stream and selected from it but it didnt catch the new raised events to the topic  
after setting ‘auto.offset.reset’ to ‘earliest’ i only got old data which i inserted by insert statement manually in cli  
thx for yr help
