# Accessing Kibana Dashboards from a Centralized Location (PHP Webpage)

**URL:** <https://discuss.elastic.co/t/accessing-kibana-dashboards-from-a-centralized-location-php-webpage/139552>\
**Category:** Kibana\
**Created:** [July 11, 2018, 11:54am UTC](https://discuss.elastic.co/t/accessing-kibana-dashboards-from-a-centralized-location-php-webpage/139552 "2018-07-11T11:54:30Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shakir\_Hussain](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@Shakir\_Hussain](https://discuss.elastic.co/u/Shakir_Hussain)\
**Post date:** [July 11, 2018, 11:54am UTC](https://discuss.elastic.co/t/accessing-kibana-dashboards-from-a-centralized-location-php-webpage/139552/1 "2018-07-11T11:54:31Z")

</div>

I am developing a webpage in php to access all the available dashboards of kibana from a centralised location. From a web page clicking button to access the dashboard giving me an error

{"statusCode":404,"error":"Not Found"}

When I access the URL from web browser it is working for me. Problem only when access from a web page link.  
Your help is highly appreciated in this regard.

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [July 11, 2018, 11:15pm UTC](https://discuss.elastic.co/t/accessing-kibana-dashboards-from-a-centralized-location-php-webpage/139552/2 "2018-07-11T23:15:12Z")

</div>

Is there a basepath you're not accounting for in the link?

---

<div class="post-metadata">

**Author:** ![Shakir\_Hussain](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@Shakir\_Hussain](https://discuss.elastic.co/u/Shakir_Hussain)\
**Post date:** [July 12, 2018, 3:49am UTC](https://discuss.elastic.co/t/accessing-kibana-dashboards-from-a-centralized-location-php-webpage/139552/3 "2018-07-12T03:49:45Z")

</div>

In my setup there is no basepath configured in kibana.yml

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [July 12, 2018, 4:09am UTC](https://discuss.elastic.co/t/accessing-kibana-dashboards-from-a-centralized-location-php-webpage/139552/4 "2018-07-12T04:09:16Z")

</div>

I must be missing something - so if you create a link that takes you to the dashboard, clicking on it results in a 404 - but if you take that exact same link and past it into the address bar it works as expected?

---

<div class="post-metadata">

**Author:** ![Shakir\_Hussain](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@Shakir\_Hussain](https://discuss.elastic.co/u/Shakir_Hussain)\
**Post date:** [July 12, 2018, 4:12am UTC](https://discuss.elastic.co/t/accessing-kibana-dashboards-from-a-centralized-location-php-webpage/139552/5 "2018-07-12T04:12:00Z")

</div>

Yes Tyler you understood correctly.

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [July 12, 2018, 4:25am UTC](https://discuss.elastic.co/t/accessing-kibana-dashboards-from-a-centralized-location-php-webpage/139552/6 "2018-07-12T04:25:17Z")

</div>

The only thing I can think of is there must be some subtle difference in the two URL's

---

<div class="post-metadata">

**Author:** ![EldrosKandar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eldroskandar/32/33188_2.png) [@EldrosKandar](https://discuss.elastic.co/u/EldrosKandar)\
**Post date:** [July 12, 2018, 8:47am UTC](https://discuss.elastic.co/t/accessing-kibana-dashboards-from-a-centralized-location-php-webpage/139552/7 "2018-07-12T08:47:51Z")

</div>

How do you generate the link in PHP?

---

<div class="post-metadata">

**Author:** ![Shakir\_Hussain](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@Shakir\_Hussain](https://discuss.elastic.co/u/Shakir_Hussain)\
**Post date:** [July 12, 2018, 8:55am UTC](https://discuss.elastic.co/t/accessing-kibana-dashboards-from-a-centralized-location-php-webpage/139552/8 "2018-07-12T08:55:34Z")

</div>

Thanks for helping, I realised that Kibana Dashboard URLs were not working when they were part of POST method. On changing it to hyperlinks it worked for me.

---

<div class="post-metadata">

**Author:** ![Shakir\_Hussain](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@Shakir\_Hussain](https://discuss.elastic.co/u/Shakir_Hussain)\
**Post date:** [July 12, 2018, 8:57am UTC](https://discuss.elastic.co/t/accessing-kibana-dashboards-from-a-centralized-location-php-webpage/139552/9 "2018-07-12T08:57:15Z")

</div>

The links in PHP were Kibana Share of "Embedded iframe short URLs".

---

<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:** [August 9, 2018, 8:57am UTC](https://discuss.elastic.co/t/accessing-kibana-dashboards-from-a-centralized-location-php-webpage/139552/10 "2018-08-09T08:57:18Z")

</div>

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