# Heatmap and ipv4 prefixes insertion but not manually

**URL:** <https://discuss.elastic.co/t/heatmap-and-ipv4-prefixes-insertion-but-not-manually/198071>\
**Category:** Kibana\
**Created:** [September 4, 2019, 3:41pm UTC](https://discuss.elastic.co/t/heatmap-and-ipv4-prefixes-insertion-but-not-manually/198071 "2019-09-04T15:41:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bf31415](https://avatars.discourse-cdn.com/v4/letter/b/a3d4f5/32.png) [@bf31415](https://discuss.elastic.co/u/bf31415)\
**Post date:** [September 4, 2019, 3:41pm UTC](https://discuss.elastic.co/t/heatmap-and-ipv4-prefixes-insertion-but-not-manually/198071/1 "2019-09-04T15:41:06Z")

</div>

I'm using ipv4 prefixes for x and y axis in a heatmap. suppose i wanted to enumerate 100 prefixes-- or 1000 and apply to both x and y axis. is there a way i can create a list of prefixes without going through manual add prefix UI approach?

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [September 6, 2019, 10:45am UTC](https://discuss.elastic.co/t/heatmap-and-ipv4-prefixes-insertion-but-not-manually/198071/2 "2019-09-06T10:45:17Z")

</div>

First of all, 1000+ values in a heatmap will be pretty unreadable, but the only way I could think of not adding them by hand would be to add 2 or 3, then save the heatmap, export it from the Saved Objects menu, open it with a text editor to figure out the pattern on how they are added in the .ndjson file and then create a script that adds them to the ndjson file. Finally, import the new ndjson file and you have your heatmap with 100 or 1000 prefixes.

---

<div class="post-metadata">

**Author:** ![bf31415](https://avatars.discourse-cdn.com/v4/letter/b/a3d4f5/32.png) [@bf31415](https://discuss.elastic.co/u/bf31415)\
**Post date:** [September 6, 2019, 10:26pm UTC](https://discuss.elastic.co/t/heatmap-and-ipv4-prefixes-insertion-but-not-manually/198071/3 "2019-09-06T22:26:22Z")

</div>

Thanks. I'll give that a try.

---

<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:** [October 4, 2019, 10:26pm UTC](https://discuss.elastic.co/t/heatmap-and-ipv4-prefixes-insertion-but-not-manually/198071/4 "2019-10-04T22:26:23Z")

</div>

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