# How to split data from mqtt broker

**URL:** <https://discourse.nodered.org/t/how-to-split-data-from-mqtt-broker/56133>\
**Category:** General\
**Created:** [5 January 2022 09:39 UTC](https://discourse.nodered.org/t/how-to-split-data-from-mqtt-broker/56133 "2022-01-05T09:39:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![firfaz](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@firfaz](https://discourse.nodered.org/u/firfaz)\
**Post date:** [5 January 2022 09:39 UTC](https://discourse.nodered.org/t/how-to-split-data-from-mqtt-broker/56133/1 "2022-01-05T09:39:19Z")

</div>

Hi node-red community, im new in node-red.  
i have problem to get data n split it.  
i have 5 data. what should i do.

 ![node red](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/b/bb893467056a93e5b802b433949e90da540b29ec.png)

I have 5 data.  
now my data is out, but I need a separation on each data.  
how to separate data

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [5 January 2022 09:48 UTC](https://discourse.nodered.org/t/how-to-split-data-from-mqtt-broker/56133/2 "2022-01-05T09:48:25Z")

</div>

Muhammad welcome to the forum!

First off, do you control the format of the data being sent to Node-RED? If so, you should think about formatting it as a JavaScript object.

If not, you can split that data using the `split` node.

## 

I recommend watching this playlist: [Node-RED Essentials](https://www.youtube.com/playlist?list=PLyNBB9VCLmo1hyO-4fIZ08gqFcXBkHy-6). The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.

---

<div class="post-metadata">

**Author:** ![firfaz](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@firfaz](https://discourse.nodered.org/u/firfaz)\
**Post date:** [5 January 2022 10:04 UTC](https://discourse.nodered.org/t/how-to-split-data-from-mqtt-broker/56133/3 "2022-01-05T10:04:10Z")

</div>

Thank you zenofmud, i will have a look first.  
anything I will ask back later.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [5 January 2022 10:45 UTC](https://discourse.nodered.org/t/how-to-split-data-from-mqtt-broker/56133/4 "2022-01-05T10:45:49Z")

</div>

Actually I suspect the CSV node may be more useful for this, as you can use the template for assigning property names to each "column"

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [6 March 2022 10:45 UTC](https://discourse.nodered.org/t/how-to-split-data-from-mqtt-broker/56133/5 "2022-03-06T10:45:58Z")

</div>

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