# How to access a deashboard or view from another php front end

**URL:** <https://discuss.elastic.co/t/how-to-access-a-deashboard-or-view-from-another-php-front-end/249557>\
**Category:** Kibana\
**Created:** [September 22, 2020, 4:12pm UTC](https://discuss.elastic.co/t/how-to-access-a-deashboard-or-view-from-another-php-front-end/249557 "2020-09-22T16:12:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![francieliton\_araujo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/francieliton_araujo/32/47771_2.png) [@francieliton\_araujo](https://discuss.elastic.co/u/francieliton_araujo)\
**Post date:** [September 22, 2020, 4:12pm UTC](https://discuss.elastic.co/t/how-to-access-a-deashboard-or-view-from-another-php-front-end/249557/1 "2020-09-22T16:12:10Z")

</div>

i am trying to create a php that accesses a kibana deashboard however my kibana needs a user password. what happens is that i would like to access it password need to put username and password. but before that i already see a problem, when i use iframe it takes me to the login page however when placing the credentials it processes but it returns to the same login page.

```auto
<?php

require_once dirname( __FILE__ ).'/include/config.inc.php';
require_once dirname( __FILE__ ).'/include/hosts.inc.php';

$page['title'] = _('Availability report');
$page['file'] = 'kibana.php';
$page['scripts'] = ['class.calendar.js', 'gtlc.js'];
$page['type'] = detect_page_type(PAGE_TYPE_HTML);

 require_once dirname( __FILE__ ).'/include/page_header.php';

?>
<html>
        <head>
        </head>
        <body>
                <iframe width="100%" height="1200px" src="http://1.1.1.21:5601/goto/b1671f828fcf4f87d02c78753ac6312b"</iframe>

        </body>
</html>

```

 ![nao atualiza](https://us1.discourse-cdn.com/elastic/original/3X/5/8/58ece224685e5b5dab7fd8c194cc7605b86b4f7a.png)

---

<div class="post-metadata">

**Author:** ![Mikhail\_Shustov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mikhail_shustov/32/49186_2.png) [@Mikhail\_Shustov](https://discuss.elastic.co/u/Mikhail_Shustov)\
**Post date:** [September 23, 2020, 10:25am UTC](https://discuss.elastic.co/t/how-to-access-a-deashboard-or-view-from-another-php-front-end/249557/2 "2020-09-23T10:25:54Z")

</div>

Hi. Using Nginx seems to be the simplest option for your case. Relevant threads with setup examples [Auto-authenticating to iframe-embedded Kibana dashboard](https://discuss.elastic.co/t/auto-authenticating-to-iframe-embedded-kibana-dashboard/46091/4)  
[Nginx reverse proxy for kibana](https://discuss.elastic.co/t/nginx-reverse-proxy-for-kibana/179024)  
[Kibana iframe with Token (Authentication purpose)](https://discuss.elastic.co/t/kibana-iframe-with-token-authentication-purpose/207744)

---

<div class="post-metadata">

**Author:** ![francieliton\_araujo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/francieliton_araujo/32/47771_2.png) [@francieliton\_araujo](https://discuss.elastic.co/u/francieliton_araujo)\
**Post date:** [September 23, 2020, 11:49am UTC](https://discuss.elastic.co/t/how-to-access-a-deashboard-or-view-from-another-php-front-end/249557/3 "2020-09-23T11:49:22Z")

</div>

Thanks for the answer, however I didn't understand what I should do.  
I don't know where this file is, if it is no kibana server or any external server, even so I searched both and found nothing.  
I am trying to do this on zabbix.  
You could indicate another way, or show some practical case being done.

---

<div class="post-metadata">

**Author:** ![Mikhail\_Shustov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mikhail_shustov/32/49186_2.png) [@Mikhail\_Shustov](https://discuss.elastic.co/u/Mikhail_Shustov)\
**Post date:** [September 23, 2020, 11:58am UTC](https://discuss.elastic.co/t/how-to-access-a-deashboard-or-view-from-another-php-front-end/249557/4 "2020-09-23T11:58:01Z")

</div>

> [@francieliton\_araujo](#):
>
> I don't know where this file is, if it is no kibana server or any external server, even so I searched both and found nothing.

What file exactly you didn't manage to find? `nginx.conf` ? You might have to [install](https://www.nginx.com/resources/wiki/start/topics/tutorials/install/) nginx on your server if you don't have one

---

<div class="post-metadata">

**Author:** ![francieliton\_araujo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/francieliton_araujo/32/47771_2.png) [@francieliton\_araujo](https://discuss.elastic.co/u/francieliton_araujo)\
**Post date:** [September 23, 2020, 1:16pm UTC](https://discuss.elastic.co/t/how-to-access-a-deashboard-or-view-from-another-php-front-end/249557/5 "2020-09-23T13:16:37Z")

</div>

> [@Mikhail\_Shustov](#):
>
> nginx.conf

yes it is nginx.conf, but where should i install it on the kibana or external server?

---

<div class="post-metadata">

**Author:** ![Mikhail\_Shustov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mikhail_shustov/32/49186_2.png) [@Mikhail\_Shustov](https://discuss.elastic.co/u/Mikhail_Shustov)\
**Post date:** [September 23, 2020, 1:41pm UTC](https://discuss.elastic.co/t/how-to-access-a-deashboard-or-view-from-another-php-front-end/249557/6 "2020-09-23T13:41:21Z")

</div>

> but where should i install it on the kibana or external server?

It depends on your network topology. Do you have a load balancer in front of Kibana? You can install Nginx as a proxy on any server having access to the Kibana server.

---

<div class="post-metadata">

**Author:** ![francieliton\_araujo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/francieliton_araujo/32/47771_2.png) [@francieliton\_araujo](https://discuss.elastic.co/u/francieliton_araujo)\
**Post date:** [September 23, 2020, 2:33pm UTC](https://discuss.elastic.co/t/how-to-access-a-deashboard-or-view-from-another-php-front-end/249557/7 "2020-09-23T14:33:39Z")

</div>

ok, at the moment i am unable to do this, there would be another way, even if without security, because first i just need to show how it works.

---

<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:** [October 21, 2020, 2:34pm UTC](https://discuss.elastic.co/t/how-to-access-a-deashboard-or-view-from-another-php-front-end/249557/8 "2020-10-21T14:34:08Z")

</div>

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