# Undefined reading 'searchSourceJSON' Postfix dashboard

**URL:** https://discuss.elastic.co/t/undefined-reading-searchsourcejson-postfix-dashboard/348952
**Category:** Kibana
**Tags:** elastic-stack-monitoring
**Created:** [December 9, 2023, 2:57am UTC](https://discuss.elastic.co/t/undefined-reading-searchsourcejson-postfix-dashboard/348952 "2023-12-09T02:57:45Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![skmessage](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/skmessage/32/129209_2.png) [@skmessage](https://discuss.elastic.co/u/skmessage)
#### Post date: [December 9, 2023, 2:57am UTC](https://discuss.elastic.co/t/undefined-reading-searchsourcejson-postfix-dashboard/348952/1 "2023-12-09T02:57:45Z")

</div>

Greetings!

I am trying to port the elastic-kibana-postfix .json files to .ndjson files to visualize a dashboard for Postfix for Elasticsearch 8.10.2. The PR and issue discussion are available at the following links:

> <https://github.com/ActionScripted/elastic-kibana-postfix/issues/15>
>
> Is there a latest version of the dashboard JSON files in .ndjson format that is …required for ELK 8.x?

> <https://github.com/ActionScripted/elastic-kibana-postfix/pull/16>
>
> The .json files have been ported to ndjson files and they get imported cleanly. …The same has been tested on Elasticsearch v8.10.2.

The .ndjson files get imported correctly, but, when I try to open Dashboards -\> [Filebeat Postfix] Overview it throws the following error:

`Cannot read properties of undefined (reading 'searchSourceJSON')`

I removed the searchSourceJSON field from kibanaSavedObjectMeta key. Is this mandatory? Can anyone please assist in porting the JSON files correctly?

Thank you!

---

<div class="post-metadata">

### Author: ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)
#### Post date: [December 12, 2023, 5:18pm UTC](https://discuss.elastic.co/t/undefined-reading-searchsourcejson-postfix-dashboard/348952/2 "2023-12-12T17:18:38Z")

</div>

How are you generating those `ndjson` files?

---

<div class="post-metadata">

### Author: ![skmessage](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/skmessage/32/129209_2.png) [@skmessage](https://discuss.elastic.co/u/skmessage)
#### Post date: [December 13, 2023, 1:02pm UTC](https://discuss.elastic.co/t/undefined-reading-searchsourcejson-postfix-dashboard/348952/3 "2023-12-13T13:02:58Z")

</div>

I am not generating the ndjson files. I manually converted the json files from [https://github.com/ActionScripted/elastic-kibana-postfix/tree/master/kibana](https://github.com/ActionScripted/elastic-kibana-postfix/tree/master/kibana) to ndjson until they imported cleanly.

Thanks for your reply!

---

<div class="post-metadata">

### Author: ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)
#### Post date: [December 13, 2023, 2:14pm UTC](https://discuss.elastic.co/t/undefined-reading-searchsourcejson-postfix-dashboard/348952/4 "2023-12-13T14:14:40Z")

</div>

Wouldn't be a better approach to import those saved objects in a clean kibana instance, upgrade the stack up to the desired target so Kibana migrates them appropriately, and then finally export them? 🤔

---

<div class="post-metadata">

### Author: ![skmessage](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/skmessage/32/129209_2.png) [@skmessage](https://discuss.elastic.co/u/skmessage)
#### Post date: [December 13, 2023, 4:05pm UTC](https://discuss.elastic.co/t/undefined-reading-searchsourcejson-postfix-dashboard/348952/5 "2023-12-13T16:05:36Z")

</div>

I have been able to import the .json files to 6.5.1 Elasticsearch and Kibana versions. I shall try your approach to upgrade them. Thank you for the suggestion.

---

<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 10, 2024, 4:06pm UTC](https://discuss.elastic.co/t/undefined-reading-searchsourcejson-postfix-dashboard/348952/6 "2024-01-10T16:06:34Z")

</div>

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