# Kafka.to() function

**URL:** <https://community.influxdata.com/t/kafka-to-function/25826>\
**Category:** InfluxDB 2\
**Tags:** kafka\
**Created:** [July 21, 2022, 6:36am UTC](https://community.influxdata.com/t/kafka-to-function/25826 "2022-07-21T06:36:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aceankit99](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/aceankit99/32/10372_2.png) [@aceankit99](https://community.influxdata.com/u/aceankit99)\
**Post date:** [July 21, 2022, 6:36am UTC](https://community.influxdata.com/t/kafka-to-function/25826/1 "2022-07-21T06:36:17Z")

</div>

Hello ,  
can I send query data to the azure event hub using Kafka.to using influx task? or Is there any other way available?

---

<div class="post-metadata">

**Author:** ![Anaisdg](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/anaisdg/32/6401_2.png) [@Anaisdg](https://community.influxdata.com/u/Anaisdg)\
**Post date:** [July 21, 2022, 4:14pm UTC](https://community.influxdata.com/t/kafka-to-function/25826/2 "2022-07-21T16:14:48Z")

</div>

Hello @aceankit99,  
I think so! I haven’t tried it though.  
Otherwise maybe you use http.get?

> **[TL;DR InfluxDB Tech Tips: Handling JSON Objects and Mapping Through Arrays |...](https://www.influxdata.com/blog/tldr-influxdb-tech-tips-handling-json-objects-mapping-arrays/)**
>
> There are many ways to use Flux to bring in data from different sources. Here's how to work with three examples with increasingly complex JSON types.
