# Dev Tools \\ Console with NDJSON

**URL:** <https://discuss.elastic.co/t/dev-tools-console-with-ndjson/374328>\
**Category:** Elasticsearch\
**Created:** [February 10, 2025, 4:53pm UTC](https://discuss.elastic.co/t/dev-tools-console-with-ndjson/374328 "2025-02-10T16:53:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![es2025](https://avatars.discourse-cdn.com/v4/letter/e/df705f/32.png) [@es2025](https://discuss.elastic.co/u/es2025)\
**Post date:** [February 10, 2025, 4:53pm UTC](https://discuss.elastic.co/t/dev-tools-console-with-ndjson/374328/1 "2025-02-10T16:53:09Z")

</div>

![ES8-Console](https://us1.discourse-cdn.com/elastic/original/3X/f/b/fb316f8d79e568112978f7b47cf3a51ed0d73e97.png)  
Hello, I am new to ES, please help to shed a light, does it error mean the Dev Tools Console does not handle ndjson or something else I missed? Thank you.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [February 10, 2025, 5:12pm UTC](https://discuss.elastic.co/t/dev-tools-console-with-ndjson/374328/2 "2025-02-10T17:12:44Z")

</div>

Hi @es2025, Welcome to the community.

First, please do not post pictures of text. It is impossible to debug, and some people can not see it. Post the text of what you want to debug. Then Perhaps we can help.

Yes Dev Console supports... did you make sure you do not have Smart Quotes on or something?

**What version are you on?**

I would recommend looking at

> **[Bulk API | Elasticsearch Guide \[8.17\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html)**

You will notice that the `_bulk` API uses `POST`, not `PUT`, but I do not think that is the issue... but we can not debug your issue because we do not have the text / code 🙂

Post the text of your data / API request perhaps we can help.

---

<div class="post-metadata">

**Author:** ![es2025](https://avatars.discourse-cdn.com/v4/letter/e/df705f/32.png) [@es2025](https://discuss.elastic.co/u/es2025)\
**Post date:** [February 10, 2025, 10:40pm UTC](https://discuss.elastic.co/t/dev-tools-console-with-ndjson/374328/3 "2025-02-10T22:40:28Z")

</div>

```auto
PUT sample_data/_bulk
{"index": {}}
{"@timestamp": "2023-10-23T12:15:03.360Z", "client_ip": "172.21.2.162", "message": "Connected to 10.1.0.3", "event_duration": 3450233}
{"index": {}}
{"@timestamp": "2023-10-23T12:27:28.948Z", "client_ip": "172.21.2.113", "message": "Connected to 10.1.0.2", "event_duration": 2764889}
{"index": {}}

```

hi, here is mine, thank you.

---

<div class="post-metadata">

**Author:** ![RainTown](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raintown/32/140206_2.png) [@RainTown](https://discuss.elastic.co/u/RainTown)\
**Post date:** [February 10, 2025, 11:40pm UTC](https://discuss.elastic.co/t/dev-tools-console-with-ndjson/374328/4 "2025-02-10T23:40:01Z")

</div>

> [@es2025](#):
>
> ```auto
> PUT sample_data/_bulk
> {"index": {}}
> {"@timestamp": "2023-10-23T12:15:03.360Z", "client_ip": "172.21.2.162", "message": "Connected to 10.1.0.3", "event_duration": 3450233}
> {"index": {}}
> {"@timestamp": "2023-10-23T12:27:28.948Z", "client_ip": "172.21.2.113", "message": "Connected to 10.1.0.2", "event_duration": 2764889}
> {"index": {}}
> 
> ```

As written, those commands work in the console.

Suggestion - cut and paste them _from here_ straight back into the Dev console in the browser and try again.

The ones from screenshot above _look_ OK too. But we cant see what hidden characters there might be messing with things.

Maybe also something weird in your browser, maybe try with "private" browser window. Check for a browser plugins/extensions that might be messing here.

And a bit better to use POST, though I do notice latest versions of API docs seem to say both PUT and POST are allowed

---

<div class="post-metadata">

**Author:** ![es2025](https://avatars.discourse-cdn.com/v4/letter/e/df705f/32.png) [@es2025](https://discuss.elastic.co/u/es2025)\
**Post date:** [February 11, 2025, 1:04am UTC](https://discuss.elastic.co/t/dev-tools-console-with-ndjson/374328/5 "2025-02-11T01:04:08Z")

</div>

Thank you, you're right, I tried with another browser, it works, however not yet configured out why my configuration get messed with the new line character.

Thanks for the recommendation using POST. It is also true that both PUT and POST now allow ndjson.

---

<div class="post-metadata">

**Author:** ![RainTown](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raintown/32/140206_2.png) [@RainTown](https://discuss.elastic.co/u/RainTown)\
**Post date:** [February 11, 2025, 1:24am UTC](https://discuss.elastic.co/t/dev-tools-console-with-ndjson/374328/6 "2025-02-11T01:24:16Z")

</div>

thats great.

You can close this thread by accepting one of the answers.

Good luck with your project.
