# Output to Kafka

**URL:** <https://discuss.elastic.co/t/output-to-kafka/210732>\
**Category:** Logstash\
**Created:** [December 5, 2019, 2:40pm UTC](https://discuss.elastic.co/t/output-to-kafka/210732 "2019-12-05T14:40:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Haalanam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/haalanam/32/58782_2.png) [@Haalanam](https://discuss.elastic.co/u/Haalanam)\
**Post date:** [December 5, 2019, 2:40pm UTC](https://discuss.elastic.co/t/output-to-kafka/210732/1 "2019-12-05T14:40:48Z")

</div>

i have a logstash conf file that looks like this:

```auto
input {

      jdbc {

            jdbc_driver_class => "Java::oracle.jdbc.driver.OracleDriver"
            jdbc_connection_string => "jdbc:oracle:thin:@//the-s2.db.oracle.yn:1521/DPP2.mind.com"
            jdbc_user => "STG_TEST"
            jdbc_password => "cddcdcd"
            parameters => {"orderid" => 1212332365}
            statement => "select PO_SEARCH_IL_ID,ORDER_DATE,REF_1,SHIPPING_WINDOW_START,SHIPPING_WINDOW_END FROM ods.po_search_il where PO_SEARCH_IL_ID =:orderid "
            schedule => "* * * * *"
            clean_run => true

    }

}

output {
        kafka {
        bootstrap_servers => "mykafkaservername.kn:9092"
        topic_id => ["test3"]
                }
        }

```

the Script run the topic test3 is created into the kafka server but no data in there.

[![snapshot of the kafka UI](https://us1.discourse-cdn.com/elastic/original/3X/4/5/455ef03c0d27f4eb684220e0a9ea58c00eebb03f.png)](https://i.stack.imgur.com/Ikiq7.png)

Does somebody could help on that error ?

---

<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 2, 2020, 2:40pm UTC](https://discuss.elastic.co/t/output-to-kafka/210732/2 "2020-01-02T14:40:49Z")

</div>

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