# Load The Data Set KIBANA

**URL:** <https://discuss.elastic.co/t/load-the-data-set-kibana/222352>\
**Category:** Kibana\
**Created:** [March 5, 2020, 6:37pm UTC](https://discuss.elastic.co/t/load-the-data-set-kibana/222352 "2020-03-05T18:37:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bharatchhajed](https://avatars.discourse-cdn.com/v4/letter/b/c2a13f/32.png) [@bharatchhajed](https://discuss.elastic.co/u/bharatchhajed)\
**Post date:** [March 5, 2020, 6:37pm UTC](https://discuss.elastic.co/t/load-the-data-set-kibana/222352/1 "2020-03-05T18:37:31Z")

</div>

I am trying this on cloud ES and Kibana which has credentials to call API. In the example it is not using any credential.

[https://www.elastic.co/guide/en/kibana/current/tutorial-build-dashboard.html#\_load\_the\_data\_sets](https://www.elastic.co/guide/en/kibana/current/tutorial-build-dashboard.html#_load_the_data_sets)

```
Invoke-RestMethod "http://<host>:<port>/bank/account/_bulk?pretty" -Method Post -ContentType 'application/x-ndjson' -InFile "accounts.json"
Invoke-RestMethod "http://<host>:<port>/shakespeare/_bulk?pretty" -Method Post -ContentType 'application/x-ndjson' -InFile "shakespeare.json"
Invoke-RestMethod "http://<host>:<port>/_bulk?pretty" -Method Post -ContentType 'application/x-ndjson' -InFile "logs.jsonl"

```

I assume we need to add a header requireAuth, username and password, but i am not sure how to do it.

can someone help me how can I do it? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 5, 2020, 7:18pm UTC](https://discuss.elastic.co/t/load-the-data-set-kibana/222352/2 "2020-03-05T19:18:56Z")

</div>

[https://virtuallysober.com/2018/01/04/introduction-to-powershell-rest-api-authentication/](https://virtuallysober.com/2018/01/04/introduction-to-powershell-rest-api-authentication/) has a few options you could try.

---

<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:** [April 2, 2020, 7:19pm UTC](https://discuss.elastic.co/t/load-the-data-set-kibana/222352/3 "2020-04-02T19:19:07Z")

</div>

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