# Bulk API does not work in 5.6.1

**URL:** <https://discuss.elastic.co/t/bulk-api-does-not-work-in-5-6-1/102692>\
**Category:** Elasticsearch\
**Created:** [October 4, 2017, 11:50am UTC](https://discuss.elastic.co/t/bulk-api-does-not-work-in-5-6-1/102692 "2017-10-04T11:50:42Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![fillic2002](https://avatars.discourse-cdn.com/v4/letter/f/c2a13f/32.png) [@fillic2002](https://discuss.elastic.co/u/fillic2002)\
**Post date:** [October 4, 2017, 11:50am UTC](https://discuss.elastic.co/t/bulk-api-does-not-work-in-5-6-1/102692/1 "2017-10-04T11:50:42Z")

</div>

I tried using the \_bulk api with the data provided in sample data section. However the bulk API always throwing error. I know earlier it was working like charm. I used fiddler to call \_bulk api and attached the file.

This is specific with the log related sample data.

Step1 Error: During the mapping creation this is what i got. Though mapping got saved in index.  
#! Deprecation: field [include\_in\_all] is deprecated, as [\_all] is deprecated, and will be disallowed in 6.0, use [copy\_to] instead.

Step 2 Error:  
{"error":{"root\_cause":[{"type":"json\_parse\_exception","reason":"Unexpected character ('-' (code 45)) in numeric value: expected digit (0-9) to follow minus sign, for valid numeric value\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@2b2d58fd; line: 1, column: 3]"}],"type":"json\_parse\_exception","reason":"Unexpected character ('-' (code 45)) in numeric value: expected digit (0-9) to follow minus sign, for valid numeric value\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@2b2d58fd; line: 1, column: 3]"},"status":500}

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [October 4, 2017, 11:57am UTC](https://discuss.elastic.co/t/bulk-api-does-not-work-in-5-6-1/102692/2 "2017-10-04T11:57:34Z")

</div>

It would help if you provided the exact error that was returned.

---

<div class="post-metadata">

**Author:** ![fillic2002](https://avatars.discourse-cdn.com/v4/letter/f/c2a13f/32.png) [@fillic2002](https://discuss.elastic.co/u/fillic2002)\
**Post date:** [October 4, 2017, 12:44pm UTC](https://discuss.elastic.co/t/bulk-api-does-not-work-in-5-6-1/102692/3 "2017-10-04T12:44:04Z")

</div>

I have modified my question with some more details. I am using localhost:9200/\_bulk call

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [October 4, 2017, 12:48pm UTC](https://discuss.elastic.co/t/bulk-api-does-not-work-in-5-6-1/102692/4 "2017-10-04T12:48:44Z")

</div>

The error message indicates that you have submitted invalid JSON. What do the documents look like?

---

<div class="post-metadata">

**Author:** ![fillic2002](https://avatars.discourse-cdn.com/v4/letter/f/c2a13f/32.png) [@fillic2002](https://discuss.elastic.co/u/fillic2002)\
**Post date:** [October 4, 2017, 1:13pm UTC](https://discuss.elastic.co/t/bulk-api-does-not-work-in-5-6-1/102692/5 "2017-10-04T13:13:52Z")

</div>

Exactly, I downloaded the document from elastic site. And pasting few lines from the same in here.

{"index":{"\_index":"logstash-2015.05.18","\_type":"log"}}  
{"@timestamp":"2015-05-18T09:03:25.877Z","ip":"185.124.182.126","extension":"gif","response":"404","geo":{"coordinates":{"lat":36.518375,"lon":-86.05828083},"src":"PH","dest":"MM","srcdest":"PH:MM"},"@tags":["success","info"],"utc\_time":"2015-05-18T09:03:25.877Z","referer":"[http://twitter.com/error/william-shepherd","agent":"Mozilla/5.0](http://twitter.com/error/william-shepherd%22,%22agent%22:%22Mozilla/5.0) (X11; Linux x86\_64; rv:6.0a1) Gecko/20110421 Firefox/6.0a1","clientip":"185.124.182.126","bytes":804,"host":"[motion-media.theacademyofperformingartsandscience.org](http://motion-media.theacademyofperformingartsandscience.org)","request":"/canhaz/gemini-7.gif","url":"[https://motion-media.theacademyofperformingartsandscience.org/canhaz/gemini-7.gif","@message":"185.124.182.126](https://motion-media.theacademyofperformingartsandscience.org/canhaz/gemini-7.gif%22,%22@message%22:%22185.124.182.126) - - [2015-05-18T09:03:25.877Z] "GET /canhaz/gemini-7.gif HTTP/1.1" 404 804 "-" "Mozilla/5.0 (X11; Linux x86\_64; rv:6.0a1) Gecko/20110421 Firefox/6.0a1"","spaces":"this is a thing with lots of spaces wwwwoooooo","xss":"","headings":["

### f-i-j-nl-ng","[http://facebook.com/success/lodewijk-van-den-berg"],"links":["daniel-tani@facebook.com","http://nytimes.com/security/kathryn-sullivan","www.nytimes.com"],"relatedContent":[{"url":"http://www.laweekly.com/news/cbs-crew-rat-fink-2368032","og:type":"article","og:title":"CBS](http://facebook.com/success/lodewijk-van-den-berg%22%5D,%22links%22:%5B%22daniel-tani@facebook.com%22,%22http://nytimes.com/security/kathryn-sullivan%22,%22www.nytimes.com%22%5D,%22relatedContent%22:%5B%7B%22url%22:%22http://www.laweekly.com/news/cbs-crew-rat-fink-2368032%22,%22og:type%22:%22article%22,%22og:title%22:%22CBS) Crew Rat Fink","og:description":"Near a couple of auto body shops (and a sharp new Space Invader mosaic that we'll post soon) near Temple and Westmoreland is a CBS wall with a nice Rat ...","og:url":"[http://www.laweekly.com/news/cbs-crew-rat-fink-2368032","article:published\_time":"2008-01-14T08:05:26-08:00","article:modified\_time":"2014-10-28T14:59:52-07:00","article:section":"News","article:tag":"Mark](http://www.laweekly.com/news/cbs-crew-rat-fink-2368032%22,%22article:published_time%22:%222008-01-14T08:05:26-08:00%22,%22article:modified_time%22:%222014-10-28T14:59:52-07:00%22,%22article:section%22:%22News%22,%22article:tag%22:%22Mark) Mauer","og:image":"[http://IMAGES1.laweekly.com/imager/cbs-crew-rat-fink/u/original/2430299/img\_2049.jpg","og:image:height":"360","og:image:width":"480","og:site\_name":"LA](http://IMAGES1.laweekly.com/imager/cbs-crew-rat-fink/u/original/2430299/img_2049.jpg%22,%22og:image:height%22:%22360%22,%22og:image:width%22:%22480%22,%22og:site_name%22:%22LA) Weekly","twitter:title":"CBS Crew Rat Fink","twitter:description":"Near a couple of auto body shops (and a sharp new Space Invader mosaic that we'll post soon) near Temple and Westmoreland is a CBS wall with a nice Rat ...","twitter:card":"summary","twitter:image":"[http://IMAGES1.laweekly.com/imager/cbs-crew-rat-fink/u/original/2430299/img\_2049.jpg","twitter:site":"@laweekly"},{"url":"http://www.laweekly.com/news/push-and-retna-in-koreatown-2368043","og:type":"article","og:title":"Push](http://IMAGES1.laweekly.com/imager/cbs-crew-rat-fink/u/original/2430299/img_2049.jpg%22,%22twitter:site%22:%22@laweekly%22%7D,%7B%22url%22:%22http://www.laweekly.com/news/push-and-retna-in-koreatown-2368043%22,%22og:type%22:%22article%22,%22og:title%22:%22Push) and Retna in Koreatown","og:description":"Yeah, I originally had this posted this morning as Push & Ayer - Sorry. It looked like a Retna piece, but I saw the Ayer in there and thought that must ...","og:url":"[http://www.laweekly.com/news/push-and-retna-in-koreatown-2368043","article:published\_time":"2008-01-29T07:28:32-08:00","article:modified\_time":"2014-10-28T14:59:54-07:00","article:section":"News","article:tag":"Shelley](http://www.laweekly.com/news/push-and-retna-in-koreatown-2368043%22,%22article:published_time%22:%222008-01-29T07:28:32-08:00%22,%22article:modified_time%22:%222014-10-28T14:59:54-07:00%22,%22article:section%22:%22News%22,%22article:tag%22:%22Shelley) Leopold","og:image":"[http://IMAGES1.laweekly.com/imager/push-and-retna-in-koreatown/u/original/2430376/img\_3671.jpg","og:image:height":"360","og:image:width":"480","og:site\_name":"LA](http://IMAGES1.laweekly.com/imager/push-and-retna-in-koreatown/u/original/2430376/img_3671.jpg%22,%22og:image:height%22:%22360%22,%22og:image:width%22:%22480%22,%22og:site_name%22:%22LA) Weekly","twitter:title":"Push and Retna in Koreatown","twitter:description":"Yeah, I originally had this posted this morning as Push & Ayer - Sorry. It looked like a Retna piece, but I saw the Ayer in there and thought that must ...","twitter:card":"summary","twitter:image":"[http://IMAGES1.laweekly.com/imager/push-and-retna-in-koreatown/u/original/2430376/img\_3671.jpg","twitter:site":"@laweekly"},{"url":"http://www.laweekly.com/news/asylm-ruets-pdb-on-santa-monica-2368012","og:type":"article","og:title":"Asylm](http://IMAGES1.laweekly.com/imager/push-and-retna-in-koreatown/u/original/2430376/img_3671.jpg%22,%22twitter:site%22:%22@laweekly%22%7D,%7B%22url%22:%22http://www.laweekly.com/news/asylm-ruets-pdb-on-santa-monica-2368012%22,%22og:type%22:%22article%22,%22og:title%22:%22Asylm), Ruets, PDB on Santa Monica","og:description":"Not a new piece, but a well-hidden gem a little south of Santa Monica Blvd. in an alley off of Heliotrope or Edgemont. I've been sitting on this for a w...","og:url":"[http://www.laweekly.com/news/asylm-ruets-pdb-on-santa-monica-2368012","article:published\_time":"2008-04-22T15:11:15-07:00","article:modified\_time":"2014-10-28T14:59:48-07:00","article:section":"News","article:tag":"Culture](http://www.laweekly.com/news/asylm-ruets-pdb-on-santa-monica-2368012%22,%22article:published_time%22:%222008-04-22T15:11:15-07:00%22,%22article:modified_time%22:%222014-10-28T14:59:48-07:00%22,%22article:section%22:%22News%22,%22article:tag%22:%22Culture) and Lifestyle","og:image":"[http://images1.laweekly.com/imager/asylm-ruets-pdb-on-santa-monica/u/original/2430137/img\_5027.jpg","og:image:height":"360","og:image:width":"480","og:site\_name":"LA](http://images1.laweekly.com/imager/asylm-ruets-pdb-on-santa-monica/u/original/2430137/img_5027.jpg%22,%22og:image:height%22:%22360%22,%22og:image:width%22:%22480%22,%22og:site_name%22:%22LA) Weekly","twitter:title":"Asylm, Ruets, PDB on Santa Monica","twitter:description":"Not a new piece, but a well-hidden gem a little south of Santa Monica Blvd. in an alley off of Heliotrope or Edgemont. I've been sitting on this for a w...","twitter:card":"summary","twitter:image":"[http://images1.laweekly.com/imager/asylm-ruets-pdb-on-santa-monica/u/original/2430137/img\_5027.jpg","twitter:site":"@laweekly"},{"url":"http://www.laweekly.com/news/laurence-tribe-tangles-with-cbs-and-la-city-hall-2396867","og:type":"article","og:title":"Laurence](http://images1.laweekly.com/imager/asylm-ruets-pdb-on-santa-monica/u/original/2430137/img_5027.jpg%22,%22twitter:site%22:%22@laweekly%22%7D,%7B%22url%22:%22http://www.laweekly.com/news/laurence-tribe-tangles-with-cbs-and-la-city-hall-2396867%22,%22og:type%22:%22article%22,%22og:title%22:%22Laurence) Tribe Tangles with CBS and L.A. City Hall","og:description":"The United States Court of Appeals for the Ninth Circuit’s Courtroom 3 - a miniature auditorium with comfortable, smoked salmon-colored seats - wa...","og:url":"[http://www.laweekly.com/news/laurence-tribe-tangles-with-cbs-and-la-city-hall-2396867","article:published\_time":"2008-06-04T14:16:10-07:00","article:modified\_time":"2014-11-26T14:43:59-08:00","article:section":"News","og:site\_name":"LA](http://www.laweekly.com/news/laurence-tribe-tangles-with-cbs-and-la-city-hall-2396867%22,%22article:published_time%22:%222008-06-04T14:16:10-07:00%22,%22article:modified_time%22:%222014-11-26T14:43:59-08:00%22,%22article:section%22:%22News%22,%22og:site_name%22:%22LA) Weekly","twitter:title":"Laurence Tribe Tangles with CBS and L.A. City Hall","twitter:description":"The United States Court of Appeals for the Ninth Circuit’s Courtroom 3 - a miniature auditorium with comfortable, smoked salmon-colored seats - wa...","twitter:card":"summary","twitter:site":"@laweekly"}],"machine":{"os":"win xp","ram":3221225472},"@version":"1"} {"index":{"\_index":"logstash-2015.05.18","\_type":"log"}} {"@timestamp":"2015-05-18T12:28:25.013Z","ip":"79.1.14.87","extension":"gif","response":"200","geo":{"coordinates":{"lat":35.16531472,"lon":-107.9006142},"src":"GN","dest":"US","srcdest":"GN:US"},"@tags":["success","info"],"utc\_time":"2015-05-18T12:28:25.013Z","referer":"[http://www.slate.com/warning/b-alvin-drew","agent":"Mozilla/5.0](http://www.slate.com/warning/b-alvin-drew%22,%22agent%22:%22Mozilla/5.0) (X11; Linux i686) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.50 Safari/534.24","clientip":"79.1.14.87","bytes":774,"host":"[motion-media.theacademyofperformingartsandscience.org](http://motion-media.theacademyofperformingartsandscience.org)","request":"/canhaz/james-mcdivitt.gif","url":"[https://motion-media.theacademyofperformingartsandscience.org/canhaz/james-mcdivitt.gif","@message":"79.1.14.87](https://motion-media.theacademyofperformingartsandscience.org/canhaz/james-mcdivitt.gif%22,%22@message%22:%2279.1.14.87) - - [2015-05-18T12:28:25.013Z] "GET /canhaz/james-mcdivitt.gif HTTP/1.1" 200 774 "-" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.50 Safari/534.24"","spaces":"this is a thing with lots of spaces wwwwoooooo","xss":"","headings":["

### charles-bolden","[http://www.slate.com/success/barry-wilmore"],"links":["george-nelson@twitter.com","http://facebook.com/info/anatoly-solovyev","www.www.slate.com"],"relatedContent":[],"machine":{"os":"osx","ram":8589934592},"@version":"1](http://www.slate.com/success/barry-wilmore%22%5D,%22links%22:%5B%22george-nelson@twitter.com%22,%22http://facebook.com/info/anatoly-solovyev%22,%22www.www.slate.com%22%5D,%22relatedContent%22:%5B%5D,%22machine%22:%7B%22os%22:%22osx%22,%22ram%22:8589934592%7D,%22@version%22:%221)"}

---

<div class="post-metadata">

**Author:** ![fillic2002](https://avatars.discourse-cdn.com/v4/letter/f/c2a13f/32.png) [@fillic2002](https://discuss.elastic.co/u/fillic2002)\
**Post date:** [October 4, 2017, 1:17pm UTC](https://discuss.elastic.co/t/bulk-api-does-not-work-in-5-6-1/102692/6 "2017-10-04T13:17:59Z")

</div>

Interesting thing is -\> if i use same lines and past it in dev tool using \_bulk it works.... But its a cumbersome process to load so many lines in Dev tool. There should be easy way out like i use fiddler.

This used to work like a charm with 5.4 version but something broken in current version.

---

<div class="post-metadata">

**Author:** ![fillic2002](https://avatars.discourse-cdn.com/v4/letter/f/c2a13f/32.png) [@fillic2002](https://discuss.elastic.co/u/fillic2002)\
**Post date:** [October 16, 2017, 5:13am UTC](https://discuss.elastic.co/t/bulk-api-does-not-work-in-5-6-1/102692/7 "2017-10-16T05:13:37Z")

</div>

Any update in here?

---

<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:** [November 13, 2017, 5:13am UTC](https://discuss.elastic.co/t/bulk-api-does-not-work-in-5-6-1/102692/8 "2017-11-13T05:13:43Z")

</div>

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