ํ์ฌ 7๋ฒ์ ์ด์ฉ์ค์ธ๋ฐ -XPOST ์ ์๋ฌ๊ฐ ๋ฐ์ํฉ๋๋ค.
์ ๋ ๋์ผํ ๋ฌธ์ ๋ฅผ ๊ฒช์๋๋ฐ, ES6.0 ์ดํ ๋ถํฐ content-type์ ์ ํํ ๊ธฐ์ฌํด์ฃผ์ด์ผ ํ๋ค๊ณ ํฉ๋๋ค. https://www.elastic.co/kr/blog/strict-content-type-checking-for-elasticsearch-rest-requests Starting from Elasticsearch 6.0, all REST requests that include a body must also provide the correct content-type for that body. ๋ํ, bulk ์ธ ๊ฒฝ์ฐ๋ -H 'Content-Type: application/x-ndjson' ์ต์
์ ์ถ๊ฐํด์ ํด๊ฒฐํ์์ต๋๋ค. ์ด ๊ฒฝ์ฐ, ๊ฐํ๊น์ง๊ฐ ๋ฐ๋์ ํฌํจ๋๋๊ฒ ndjson์ ์คํ์ธ๊ฐ ๋ด
๋๋ค. ์ผ๋ถ dump ํ์ผ์ ๋ง์ง๋ง ์ค ๊ฐํ์ด ์์ผ๋ฉด ์๋ฌ๊ฐ ๋๋ ๊ฒ์ ํ์ธํ๊ณ ์์ ํ์์ต๋๋ค. 2016๋
์๋ฃ๋ผ ์ผ๋ถ ์ปค๋ฉ๋์ ๋ฐ์ดํฐ๋ฅผ ์์ ํ๋ฉด์ ์ด๊ฒ์ ๊ฒ ์ฐพ์๋ณด๋ ๊ฒ๋ ๋์์ง ์๋ค์. ๋ณธ ๊ฐ์๋ก ELK์ ๊ฐ๋
์ ์ก๋๋ฐ ํฐ ๋์์ด ๋์์ต๋๋ค. ๊ฐ์ฌํฉ๋๋ค.