# Importing JSON Wearables Data in ES

**URL:** <https://discuss.elastic.co/t/importing-json-wearables-data-in-es/47396>\
**Category:** Elasticsearch\
**Created:** [April 14, 2016, 2:13pm UTC](https://discuss.elastic.co/t/importing-json-wearables-data-in-es/47396 "2016-04-14T14:13:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rains555](https://avatars.discourse-cdn.com/v4/letter/r/bc8723/32.png) [@rains555](https://discuss.elastic.co/u/rains555)\
**Post date:** [April 14, 2016, 2:13pm UTC](https://discuss.elastic.co/t/importing-json-wearables-data-in-es/47396/1 "2016-04-14T14:13:50Z")

</div>

Hi I'm a EKL newbie and am trying to work through an issue.  
I'm trying to load json file with below format. I've created a mapping for it and followed the instructions at [https://www.elastic.co/guide/en/kibana/current/getting-started.html#tutorial-load-dataset](https://www.elastic.co/guide/en/kibana/current/getting-started.html#tutorial-load-dataset). I get an error trying to load the JSON data into Elastic. Note: I was able to load the account data and shakespeare JSON data into Elastic.

sample data  
{  
"ID": "alpha1",  
"timestamp": "2016-01-29T22:00:17.334Z",  
"deviceID": "1",  
"deviceType": "watch1",  
"codec": "Z1",  
"notes": "blue watch"  
},  
{  
"ID": "alpha2",  
"timestamp": "2016-01-30T22:00:17.334Z",  
"deviceID": "2",  
"deviceType": "watch2",  
"codec": "Z2",  
"notes": "yellow watch"  
},  
{  
"ID": "alpha3",  
"timestamp": "2016-01-31T22:00:17.334Z",  
"deviceID": "3",  
"deviceType": "watch3",  
"codec": "Z3",  
"notes": "orage watch"  
},  
{  
"ID": "alpha4",  
"timestamp": "2016-02-02T22:00:17.334Z",  
"deviceID": "4",  
"deviceType": "watch4",  
"codec": "Z4",  
"notes": "red watch"  
}

mapping  
curl -XPUT "localhost:9200/devices" -d"{""mappings"":{""default"":{""properties"":{""\_id"":{""type"":""string"",""index"":""not\_analyzed""},""created"":{""type"":""string"",""index"":""not\_analyzed""},""serialNumber"":

{""type"":""integer""},""mtype"":{""type"":""string"",""index"":""not\_analyzed""},""code"":{""type"":""string"",""index"":""not\_analyzed""},""desc"":{""type"":""string"",""index"":""not\_analyzed""}}}}}"

\*data load command \*  
curl -XPOST "localhost:9200/devices/\_bulk?pretty" --data-binary ""@d:\downloads\datasets\elastic\deviceList.json"

[![](https://cloud.githubusercontent.com/assets/18313655/14468155/8089d040-00ac-11e6-8489-d4552d12eb7a.png) ](https://cloud.githubusercontent.com/assets/18313655/14468155/8089d040-00ac-11e6-8489-d4552d12eb7a.png)

---

<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:** [July 5, 2017, 10:59pm UTC](https://discuss.elastic.co/t/importing-json-wearables-data-in-es/47396/2 "2017-07-05T22:59:13Z")

</div>

Closed on July 5, 2017, 10:59pm UTC


