# Kibana After set basePath cannot display UI

**URL:** <https://discuss.elastic.co/t/kibana-after-set-basepath-cannot-display-ui/248960>\
**Category:** Kibana\
**Created:** [September 17, 2020, 10:23am UTC](https://discuss.elastic.co/t/kibana-after-set-basepath-cannot-display-ui/248960 "2020-09-17T10:23:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohammad\_Iqbal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohammad_iqbal/32/75296_2.png) [@Mohammad\_Iqbal](https://discuss.elastic.co/u/Mohammad_Iqbal)\
**Post date:** [September 17, 2020, 10:23am UTC](https://discuss.elastic.co/t/kibana-after-set-basepath-cannot-display-ui/248960/1 "2020-09-17T10:23:07Z")

</div>

Hi

Sorry for my broken english.  
I still struggling with my kibana.yaml, i want to deploy it to k8s cluster

this my kibana.yaml

```auto
apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
  name: kibana
  namespace: elk-cluster
spec:
  version: 7.9.1
  count: 1
  config:
     server.basePath: "/logs"
  http:
    tls:
      selfSignedCertificate:
        disabled: true
  elasticsearchRef:
    name: elasticsearch
    namespace: elk-cluster
  podTemplate:
    spec:
      containers:
        - name: kibana
          readinessProbe:
            failureThreshold: 3
            httpGet:
              path: /
              port: 5601
              scheme: HTTP
            initialDelaySeconds: 10
            periodSeconds: 10
            successThreshold: 1
            timeoutSeconds: 5

```

the problem is when i try to port-forward service kibana-kb-http

```auto
PS D:\Repo\ELK Kubernetes> kubectl -n elk-cluster port-forward service/kibana-kb-http 5601
Forwarding from 127.0.0.1:5601 -> 5601
Forwarding from [::1]:5601 -> 5601
Handling connection for 5601
Handling connection for 5601

```

I copy 127.0.0.1:5601 to browser and automatically become [http://127.0.0.1:5601/logs/spaces/enter](http://127.0.0.1:5601/logs/spaces/enter)  
and response i get on browser is

```auto
{
    statusCode: 404,
    error: "Not Found",
    message: "Not Found"
}

```

and if i check log pod kibana is

```auto
{"type":"log","@timestamp":"2020-09-17T10:15:41Z","tags":["listening","info"],"pid":6,"message":"Server running at http://0.0.0.0:5601"}
{"type":"log","@timestamp":"2020-09-17T10:15:42Z","tags":["info","http","server","Kibana"],"pid":6,"message":"http server running at http://0.0.0.0:5601"}
{"type":"log","@timestamp":"2020-09-17T10:15:43Z","tags":["warning","plugins","reporting"],"pid":6,"message":"Enabling the Chromium sandbox provides an additional layer of protection."}
{"type":"response","@timestamp":"2020-09-17T10:15:50Z","tags":[],"pid":6,"method":"get","statusCode":302,"req":{"url":"/","method":"get","headers":{"host":"10.190.17.209:5601","user-agent":"kube-probe/1.17+","accept-encoding":"gzip","connection":"close"},"remoteAddress":"10.190.16.228","userAgent":"10.190.16.228"},"res":{"statusCode":302,"responseTime":28,"contentLength":9},"message":"GET / 302 28ms - 9.0B"}
{"type":"response","@timestamp":"2020-09-17T10:15:50Z","tags":[],"pid":6,"method":"get","statusCode":404,"req":{"url":"/logs/spaces/enter","method":"get","headers":{"host":"10.190.17.209:5601","user-agent":"kube-probe/1.17+","referer":"http://10.190.17.209:5601/","accept-encoding":"gzip","connection":"close"},"remoteAddress":"10.190.16.228","userAgent":"10.190.16.228","referer":"http://10.190.17.209:5601/"},"res":{"statusCode":404,"responseTime":52,"contentLength":9},"message":"GET /logs/spaces/enter 404 52ms - 9.0B"}
{"type":"response","@timestamp":"2020-09-17T10:16:00Z","tags":[],"pid":6,"method":"get","statusCode":302,"req":{"url":"/","method":"get","headers":{"host":"10.190.17.209:5601","user-agent":"kube-probe/1.17+","accept-encoding":"gzip","connection":"close"},"remoteAddress":"10.190.16.228","userAgent":"10.190.16.228"},"res":{"statusCode":302,"responseTime":7,"contentLength":9},"message":"GET / 302 7ms - 9.0B"}
{"type":"response","@timestamp":"2020-09-17T10:16:00Z","tags":[],"pid":6,"method":"get","statusCode":404,"req":{"url":"/logs/spaces/enter","method":"get","headers":{"host":"10.190.17.209:5601","user-agent":"kube-probe/1.17+","referer":"http://10.190.17.209:5601/","accept-encoding":"gzip","connection":"close"},"remoteAddress":"10.190.16.228","userAgent":"10.190.16.228","referer":"http://10.190.17.209:5601/"},"res":{"statusCode":404,"responseTime":58,"contentLength":9},"message":"GET /logs/spaces/enter 404 58ms - 9.0B"}
{"type":"response","@timestamp":"2020-09-17T10:16:10Z","tags":[],"pid":6,"method":"get","statusCode":302,"req":{"url":"/","method":"get","headers":{"host":"10.190.17.209:5601","user-agent":"kube-probe/1.17+","accept-encoding":"gzip","connection":"close"},"remoteAddress":"10.190.16.228","userAgent":"10.190.16.228"},"res":{"statusCode":302,"responseTime":12,"contentLength":9},"message":"GET / 302 12ms - 9.0B"}

```

What i missing for configuration kibana? because i need that basePath for internal domain access

thank you

---

<div class="post-metadata">

**Author:** ![Marta\_Bondyra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marta_bondyra/32/102122_2.png) [@Marta\_Bondyra](https://discuss.elastic.co/u/Marta_Bondyra)\
**Post date:** [October 12, 2020, 10:33am UTC](https://discuss.elastic.co/t/kibana-after-set-basepath-cannot-display-ui/248960/2 "2020-10-12T10:33:59Z")

</div>

Hi,

sorry for the late reply. Did you in the end manage to solve your issue?

---

<div class="post-metadata">

**Author:** ![Mohammad\_Iqbal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohammad_iqbal/32/75296_2.png) [@Mohammad\_Iqbal](https://discuss.elastic.co/u/Mohammad_Iqbal)\
**Post date:** [October 22, 2020, 3:57am UTC](https://discuss.elastic.co/t/kibana-after-set-basepath-cannot-display-ui/248960/4 "2020-10-22T03:57:07Z")

</div>

Hi @Marta_Bondyra

Thank you for reply me, that issue still exists until now.

Thanks

---

<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:** [November 19, 2020, 3:57am UTC](https://discuss.elastic.co/t/kibana-after-set-basepath-cannot-display-ui/248960/5 "2020-11-19T03:57:12Z")

</div>

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