# Need help in copy data to ElasticSearch

**URL:** <https://discuss.elastic.co/t/need-help-in-copy-data-to-elasticsearch/16739>\
**Category:** Elasticsearch\
**Created:** [April 1, 2014, 3:01pm UTC](https://discuss.elastic.co/t/need-help-in-copy-data-to-elasticsearch/16739 "2014-04-01T15:01:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![prachi\_sharma](https://avatars.discourse-cdn.com/v4/letter/p/c4cdca/32.png) [@prachi\_sharma](https://discuss.elastic.co/u/prachi_sharma)\
**Post date:** [April 1, 2014, 3:01pm UTC](https://discuss.elastic.co/t/need-help-in-copy-data-to-elasticsearch/16739/1 "2014-04-01T15:01:19Z")

</div>

I'm having a small dataset of tweets, the structure of JSON is below and a  
file contains multiple JSON objects

{"created\_at":"Fri Dec 06 13:00:00 +0000  
2013","id":408943910199627778,"id\_str":"408943910199627778","text":"\u9ad8\u6728\u3055\u3093\u306e\u3053\u3048\u5143\u592a\u3058\u3083\u306d\n\n\u3061\u3052\u30fc\u304b","source":"\u003ca  
href="[https://about.twitter.com/products/tweetdeck](https://about.twitter.com/products/tweetdeck)"  
rel="nofollow"\u003eTweetDeck\u003c/a\u003e","truncated":false,"in\_reply\_to\_status\_id":null,"in\_reply\_to\_status\_id\_str":null,"in\_reply\_to\_user\_id":null,"in\_reply\_to\_user\_id\_str":null,"in\_reply\_to\_screen\_name":null,"user":{"id":263559267,"id\_str":"263559267","name":"\u3078\u3063\u3049\u306f\u5927\u4e08\u592b\u3058\u3083\u306a\u3044\u3051\u3069\u5927\u4e08\u592b\u3067\u3059","screen\_name":"hello4you","location":"\u8eca\u8f2a\u306e\u56fd","url":null,"description":"\u30a2\u30cb\u30e1\u3057\u304b\u898b\u3066\u306a\u3044\u672a\u6765\u3082\u898b\u3066\u306a\u3044\u3002\r\n\u5f10\u5bfaSP\u521d\u6bb5\u306e\u5e95\u8fba\u3001\u30dd\u30c3\u30d7\u30f3\u306f\u30ec\u30d9\u30eb30\u304c\u9650\u754c\u30de\u30f3\u3002\u30ed\u30fc\u30c9\u30e9\u3001\u30d1\u30ba\u30c9\u30e9\u307c\u3061\u307c\u3061\u30003DS\u30d5\u30ec\u30b3\u30000259-1312-2538\r\n\u7d20\u6575\u306a\u30a2\u30a4\u30b3\u30f3\u306f@hello4you\u3055\u3093\u306b\u66f8\u3044\u3066\u3044\u305f\u3060\u304d\u307e\u3057\u305f\uff01\uff01\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\uff01","protected":false,"followers\_count":302,"friends\_count":386,"listed\_count":10,"created\_at":"Thu  
Mar 10 08:16:42 +0000  
2011","favourites\_count":778,"utc\_offset":32400,"time\_zone":"Tokyo","geo\_enabled":true,"verified":false,"statuses\_count":63363,"lang":"ja","contributors\_enabled":false,"is\_translator":false,"profile\_background\_color":"C0DEED","profile\_background\_image\_url":"[http://a0.twimg.com/profile\_background\_images/686949334/e345db29067bd59b463c9be16aef09e8.jpeg","profile\_background\_image\_url\_https":"https://si0.twimg.com/profile\_background\_images/686949334/e345db29067bd59b463c9be16aef09e8.jpeg","profile\_background\_tile":true,"profile\_image\_url":"http://pbs.twimg.com/profile\_images/378800000829025490/40c2ba6b6aa5ea89ddb609e4f0b4b624\_normal.png","profile\_image\_url\_https":"https://pbs.twimg.com/profile\_images/378800000829025490/40c2ba6b6aa5ea89ddb609e4f0b4b624\_normal.png","profile\_banner\_url":"https://pbs.twimg.com/profile\_banners/263559267/1384989886","profile\_link\_color":"0084B4","profile\_sidebar\_border\_color":"FFFFFF","profile\_sidebar\_fill\_color":"DDEEF6","profile\_text\_color":"333333","profile\_use\_background\_image":true,"default\_profile":false,"default\_profile\_image":false,"following":null,"follow\_request\_sent":null,"notifications":null},"geo":null,"coordinates":null,"place":null,"contributors":null,"retweet\_count":0,"favorite\_count":0,"entities":{"hashtags":[],"symbols":[],"urls":[],"user\_mentions":[]},"favorited":false,"retweeted":false,"filter\_level":"medium","lang":"ja](http://a0.twimg.com/profile_background_images/686949334/e345db29067bd59b463c9be16aef09e8.jpeg%22,%22profile_background_image_url_https%22:%22https://si0.twimg.com/profile_background_images/686949334/e345db29067bd59b463c9be16aef09e8.jpeg%22,%22profile_background_tile%22:true,%22profile_image_url%22:%22http://pbs.twimg.com/profile_images/378800000829025490/40c2ba6b6aa5ea89ddb609e4f0b4b624_normal.png%22,%22profile_image_url_https%22:%22https://pbs.twimg.com/profile_images/378800000829025490/40c2ba6b6aa5ea89ddb609e4f0b4b624_normal.png%22,%22profile_banner_url%22:%22https://pbs.twimg.com/profile_banners/263559267/1384989886%22,%22profile_link_color%22:%220084B4%22,%22profile_sidebar_border_color%22:%22FFFFFF%22,%22profile_sidebar_fill_color%22:%22DDEEF6%22,%22profile_text_color%22:%22333333%22,%22profile_use_background_image%22:true,%22default_profile%22:false,%22default_profile_image%22:false,%22following%22:null,%22follow_request_sent%22:null,%22notifications%22:null%7D,%22geo%22:null,%22coordinates%22:null,%22place%22:null,%22contributors%22:null,%22retweet_count%22:0,%22favorite_count%22:0,%22entities%22:%7B%22hashtags%22:%5B%5D,%22symbols%22:%5B%5D,%22urls%22:%5B%5D,%22user_mentions%22:%5B%5D%7D,%22favorited%22:false,%22retweeted%22:false,%22filter_level%22:%22medium%22,%22lang%22:%22ja)"}

How do i import this data in elastic search as there are no indexes in the  
data (so can't use bulk data)

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/3ae6373f-24b8-4128-8d61-dc83fd4c38ed%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3ae6373f-24b8-4128-8d61-dc83fd4c38ed%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Binh\_Ly\_2](https://avatars.discourse-cdn.com/v4/letter/b/d07c76/32.png) [@Binh\_Ly\_2](https://discuss.elastic.co/u/Binh_Ly_2)\
**Post date:** [April 1, 2014, 3:56pm UTC](https://discuss.elastic.co/t/need-help-in-copy-data-to-elasticsearch/16739/2 "2014-04-01T15:56:38Z")

</div>

You'd probably need to either restructure the file into \_bulk format, or  
just read the files in code and build/send bulk requests dynamically.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/75e7b458-c659-4186-b52e-36e293368d80%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/75e7b458-c659-4186-b52e-36e293368d80%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 1:38am UTC](https://discuss.elastic.co/t/need-help-in-copy-data-to-elasticsearch/16739/3 "2017-07-06T01:38:59Z")

</div>


