# Need help to store and access document

**URL:** https://discuss.elastic.co/t/need-help-to-store-and-access-document/219293
**Category:** Elasticsearch
**Created:** [February 13, 2020, 11:53pm UTC](https://discuss.elastic.co/t/need-help-to-store-and-access-document/219293 "2020-02-13T23:53:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Benoit\_Martin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benoit_martin/32/21235_2.png) [@Benoit\_Martin](https://discuss.elastic.co/u/Benoit_Martin)
#### Post date: [February 13, 2020, 11:53pm UTC](https://discuss.elastic.co/t/need-help-to-store-and-access-document/219293/1 "2020-02-13T23:53:42Z")

</div>

Hi,

Data :

```auto
{
    "key1": "value1",
    "key2": "value2",
    "key3": "value3",
    "key4": "value4",
    "key5": {
      "key6": [
        {
          "key7": {
            "ipv4_unicast": [
              "somevalue"
            ],
            "ipv6_unicast": [
              "somevalue1",
              "somevalue2"
            ]
          }
        },
        {
          "key8": {
            "ipv4_unicast": [
              "somevalue"
            ],
            "ipv6_unicast": [
              "somevalue"
            ]
          }
        }
      ]
    }
}

```

I used `curl --noproxy '*' -k -vX PUT 'https://elastic:mypassword@myelasticsearch.url/my-index' -d @data.json -H 'Content-Type: application/json'`

To add data to a brand new index. I see it working fine but when I try to visualize in Kibana. The data does not seem to be properly stored. By cons when I use the json mode it works. Via curl too. I would also like to make a request and filter on for example key5.key6.key7.ipv4\_unicast == somevalue and return only key1 and key2. Thank you in advance for your advice and your precious help.

---

<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: [March 12, 2020, 11:54pm UTC](https://discuss.elastic.co/t/need-help-to-store-and-access-document/219293/2 "2020-03-12T23:54:01Z")

</div>

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