# Embed Kibana Dashboard in Asp.Net Core Web Application

**URL:** <https://discuss.elastic.co/t/embed-kibana-dashboard-in-asp-net-core-web-application/297488>\
**Category:** Kibana\
**Created:** [February 17, 2022, 12:41pm UTC](https://discuss.elastic.co/t/embed-kibana-dashboard-in-asp-net-core-web-application/297488 "2022-02-17T12:41:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thirumavalavan](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@Thirumavalavan](https://discuss.elastic.co/u/Thirumavalavan)\
**Post date:** [February 17, 2022, 12:41pm UTC](https://discuss.elastic.co/t/embed-kibana-dashboard-in-asp-net-core-web-application/297488/1 "2022-02-17T12:41:38Z")

</div>

Team,

Can you please help me to give an idea/sample code on embedding the kibana dashboard into my web application? what are the steps I have to follow?

Fyi, I have enabled Elasticsearch cluster setup and configured it in the Kibana system. I did basic authentication security for Elasticsearch.

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [March 2, 2022, 3:28pm UTC](https://discuss.elastic.co/t/embed-kibana-dashboard-in-asp-net-core-web-application/297488/2 "2022-03-02T15:28:50Z")

</div>

Hi @Thirumavalavan ,

Have you checked this docs: [Reporting and sharing | Kibana Guide [8.0] | Elastic](https://www.elastic.co/guide/en/kibana/current/reporting-getting-started.html#embed-code) and [Authentication in Kibana | Kibana Guide [8.0] | Elastic](https://www.elastic.co/guide/en/kibana/current/kibana-authentication.html#embedded-content-authentication)?

Best,  
Oleg

---

<div class="post-metadata">

**Author:** ![Thirumavalavan](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@Thirumavalavan](https://discuss.elastic.co/u/Thirumavalavan)\
**Post date:** [March 3, 2022, 5:52am UTC](https://discuss.elastic.co/t/embed-kibana-dashboard-in-asp-net-core-web-application/297488/3 "2022-03-03T05:52:47Z")

</div>

Thanks for the details. Yes, I have checked and got the embed URL. but that URL is not loaded in the application. it's showing "/internal/security/login" unauthorized error.

And I have done the basic authentication. want to auto-login kibana dashboard which embedded in Iframe

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [March 3, 2022, 8:54am UTC](https://discuss.elastic.co/t/embed-kibana-dashboard-in-asp-net-core-web-application/297488/4 "2022-03-03T08:54:07Z")

</div>

> [@Thirumavalavan](#):
>
> it's showing "/internal/security/login" unauthorized error.

Can you share a HAR file and check Kibana verbose logs (`logging.verbose: true`) to see if there is anything suspicious?

---

<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:** [March 31, 2022, 8:54am UTC](https://discuss.elastic.co/t/embed-kibana-dashboard-in-asp-net-core-web-application/297488/5 "2022-03-31T08:54:44Z")

</div>

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