# Send logstash output to questdb

**URL:** <https://discuss.elastic.co/t/send-logstash-output-to-questdb/347717>\
**Category:** Logstash\
**Created:** [November 22, 2023, 10:17am UTC](https://discuss.elastic.co/t/send-logstash-output-to-questdb/347717 "2023-11-22T10:17:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Indeed2000](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@Indeed2000](https://discuss.elastic.co/u/Indeed2000)\
**Post date:** [November 22, 2023, 10:17am UTC](https://discuss.elastic.co/t/send-logstash-output-to-questdb/347717/1 "2023-11-22T10:17:43Z")

</div>

Hi, how can i send logstash output to questdb?  
which plugin suitable for this aim and compatible with questdb?  
which port suitable on questdb for this aim?  
I have if condition on output if tag = send then write to table with same name on questdb "send" , if tag = receive write to table with same name on questdb "receive"

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [November 22, 2023, 11:04am UTC](https://discuss.elastic.co/t/send-logstash-output-to-questdb/347717/2 "2023-11-22T11:04:33Z")

</div>

Hi @Indeed2000,

Are you looking for a one-off upload or a regular sync?

I've not used QuestDB myself, and with a quick scan can't see a QuestDB specific Logstash plugin. But looking through the documentation you could either:

1. Export data from Elasticsearch to CSV via the [Logstash CSV output plugin](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-csv.html) and then upload with the [QuestDB HTTP API](https://questdb.io/docs/develop/insert-data/#http-rest-api) accessible on port `9000`.
2. Using a community plugin or [write your own](https://www.elastic.co/guide/en/logstash/current/output-new-plugin.html). I see that [this one](https://github.com/theangryangel/logstash-output-jdbc) was archived in 2019 so I would use it reluctantly as it's not been tested with later versions of Logstash.

Alternatively, if you are looking for an approach without Logstash, you could use the [QuestDB client](https://questdb.io/docs/reference/clients/overview/) and [Elasticsearch client](https://www.elastic.co/guide/en/elasticsearch/client/index.html) in a compatible language such as Python or JavaScript depending on your expertise.

Hope that helps!

---

<div class="post-metadata">

**Author:** ![Indeed2000](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@Indeed2000](https://discuss.elastic.co/u/Indeed2000)\
**Post date:** [November 22, 2023, 3:16pm UTC](https://discuss.elastic.co/t/send-logstash-output-to-questdb/347717/3 "2023-11-22T15:16:21Z")

</div>

Hi @carly.richmond need read this from log rile and send to questdb line by line, realtime, continuously like this:  
Input file \> output questdb

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [November 22, 2023, 3:27pm UTC](https://discuss.elastic.co/t/send-logstash-output-to-questdb/347717/4 "2023-11-22T15:27:25Z")

</div>

> [@Indeed2000](#):
>
> Hi, how can i send logstash output to questdb?  
> which plugin suitable for this aim and compatible with questdb?

Logstash does not have any output plugin to send logs to QuestDB, I don't think you can use Logstash to this task unless you choose to build your own plugin.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [November 22, 2023, 5:57pm UTC](https://discuss.elastic.co/t/send-logstash-output-to-questdb/347717/5 "2023-11-22T17:57:01Z")

</div>

If you need to move data from logstash to questdb I would suggest putting a [third party tool](https://questdb.io/docs/third-party-tools/overview/) like kafka between them.

---

<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:** [December 20, 2023, 5:57pm UTC](https://discuss.elastic.co/t/send-logstash-output-to-questdb/347717/6 "2023-12-20T17:57:21Z")

</div>

Closed on December 20, 2023, 5:57pm UTC

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