# Customizing the login page

**URL:** <https://forum.search-guard.com/t/customizing-the-login-page/2027>\
**Category:** Search Guard\
**Created:** [December 22, 2020, 10:47am UTC](https://forum.search-guard.com/t/customizing-the-login-page/2027 "2020-12-22T10:47:58Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![HeiDri](https://avatars.discourse-cdn.com/v4/letter/h/7ba0ec/32.png) [@HeiDri](https://forum.search-guard.com/u/HeiDri)\
**Post date:** [December 22, 2020, 10:47am UTC](https://forum.search-guard.com/t/customizing-the-login-page/2027/1 "2020-12-22T10:47:59Z")

</div>

Hi guys , recently i tried changing the search guard default logo using this nice feature https://docs.search-guard.com/latest/kibana-login-customizing but the logo won’t change and the Bold charachters also won’t work , i used a file stored on my local pc , this is my config :

> ```
> searchguard.basicauth.login.brandimage: "file:///C:/SG/tuxpi.jpg"
> searchguard.basicauth.login.title: WELCOME
> searchguard.basicauth.login.subtitle: <strong> login </strong>
> 
> ```

Any idea what’s wrong , thanks in advance.

---

<div class="post-metadata">

**Author:** ![srgbnd](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.search-guard.com/srgbnd/32/506_2.png) [@srgbnd](https://forum.search-guard.com/u/srgbnd)\
**Post date:** [December 22, 2020, 10:52am UTC](https://forum.search-guard.com/t/customizing-the-login-page/2027/2 "2020-12-22T10:52:42Z")

</div>

Hi.

> searchguard…

Two dots? Does Kibana start with this config?

What Search Guard version release do you use?

---

<div class="post-metadata">

**Author:** ![HeiDri](https://avatars.discourse-cdn.com/v4/letter/h/7ba0ec/32.png) [@HeiDri](https://forum.search-guard.com/u/HeiDri)\
**Post date:** [December 22, 2020, 10:55am UTC](https://forum.search-guard.com/t/customizing-the-login-page/2027/3 "2020-12-22T10:55:32Z")

</div>

sorry it was a copy paste error , i only placed one dot , i’m using the 7.10.0 version

---

<div class="post-metadata">

**Author:** ![srgbnd](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.search-guard.com/srgbnd/32/506_2.png) [@srgbnd](https://forum.search-guard.com/u/srgbnd)\
**Post date:** [December 22, 2020, 11:56am UTC](https://forum.search-guard.com/t/customizing-the-login-page/2027/4 "2020-12-22T11:56:29Z")

</div>

Put the image in kibana/plugins/searchguard/assets/. The config:

```auto
searchguard.basicauth.login.showbrandimage: true
searchguard.basicauth.login.brandimage: /plugins/searchguard/assets/bender_250px_width.png
searchguard.basicauth.login.title: WELCOME
searchguard.basicauth.login.subtitle: <strong> login </strong>

```

And you get

 ![Screenshot 2020-12-22 at 12.46.40](https://us1.discourse-cdn.com/flex019/uploads/search_guard/original/1X/4f8223eb5da5dc1006f10720d3a5ef6cc65c03dc.jpeg)

Though I see there are issues, the HTML doesn’t work in the title and subtitle. Plus, there is a problem with the image position. I’ll file a bug for this.

---

<div class="post-metadata">

**Author:** ![HeiDri](https://avatars.discourse-cdn.com/v4/letter/h/7ba0ec/32.png) [@HeiDri](https://forum.search-guard.com/u/HeiDri)\
**Post date:** [December 25, 2020, 8:33am UTC](https://forum.search-guard.com/t/customizing-the-login-page/2027/5 "2020-12-25T08:33:14Z")

</div>

Hi @srgbnd thank you for your help , i tried your way but still won’t work , i’m on windows by the way ,

this is my config :  
searchguard.basicauth.login.brandimage: “C:/Elastic/kibana-7.10.0/kibana-7.10.0/plugins/Search\_guard-7.10.0/assets/tuxpi.jpg”

Any idea what’s wrong ?

---

<div class="post-metadata">

**Author:** ![srgbnd](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.search-guard.com/srgbnd/32/506_2.png) [@srgbnd](https://forum.search-guard.com/u/srgbnd)\
**Post date:** [December 29, 2020, 4:31pm UTC](https://forum.search-guard.com/t/customizing-the-login-page/2027/6 "2020-12-29T16:31:28Z")

</div>

Yes, it doesn’t work on Windows. [The code](https://git.floragunn.com/search-guard/search-guard-kibana-plugin/-/blob/sg-7.48.0-es-7.10.x/public/applications/searchguard/login/LoginPage.js#L183) doesn’t account for [the Windows path format](https://docs.microsoft.com/en-us/dotnet/standard/io/file-path-formats). The slashes must be mirrored if Windows. I file a bug and add it to the queue.

---

<div class="post-metadata">

**Author:** ![srgbnd](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.search-guard.com/srgbnd/32/506_2.png) [@srgbnd](https://forum.search-guard.com/u/srgbnd)\
**Post date:** [January 2, 2021, 10:59am UTC](https://forum.search-guard.com/t/customizing-the-login-page/2027/7 "2021-01-02T10:59:47Z")

</div>

Correction, the logo customization works on Windows. @HeiDri for the brandimage option, you have to use a relative path under HTTP protocol and not the full filesystem path.

The Kibana config

```auto
searchguard.basicauth.login.showbrandimage: true
searchguard.basicauth.login.brandimage: /plugins/searchguard/assets/bender.jpg
searchguard.basicauth.login.title: WELCOME
searchguard.basicauth.login.subtitle: login

```

Result

 ![sg_custom_logo.PNG](https://us1.discourse-cdn.com/flex019/uploads/search_guard/original/1X/d8e1af667f4750ad33cb9a41f89d39d47156ad29.jpeg)

---

<div class="post-metadata">

**Author:** ![Mike](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.search-guard.com/mike/32/458_2.png) [@Mike](https://forum.search-guard.com/u/Mike)\
**Post date:** [January 15, 2021, 7:50pm UTC](https://forum.search-guard.com/t/customizing-the-login-page/2027/8 "2021-01-15T19:50:50Z")

</div>

Hi @HeiDri,

Thanks for pointing out the broken HTML tags support. This, together with the custom styles support for the login button, has been fixed and will be working as expected in the next release.

Thanks!  
Mike

---

<div class="post-metadata">

**Author:** ![HeiDri](https://avatars.discourse-cdn.com/v4/letter/h/7ba0ec/32.png) [@HeiDri](https://forum.search-guard.com/u/HeiDri)\
**Post date:** [January 18, 2021, 12:53pm UTC](https://forum.search-guard.com/t/customizing-the-login-page/2027/9 "2021-01-18T12:53:11Z")

</div>

Glad to help , thank you for all the amazing work you’re doing 🙂
