Hi Splunkers,
I'm currently working on customizing the Splunk login screen to change the logo, background, footer, etc. I referred to the Splunk documentation (https://docs.splunk.com/Documentation/Splunk/9.1.3/AdvancedDev/CustomizeLogin) and successfully completed the customization. Now, the Splunk login screen displays my logo, background image, and footer content.
However, I encountered an issue when running Splunk App Inspect on the custom-login app I created. The Splunk App Inspect tool reported 8 failures:
I'm wondering if the [endpoint:*] and [expose:*] stanzas in web.conf are necessary for customizing the login screen. Are these stanzas required for login screen changes? All other issues have been fixed. (for production environment)
Below is the corrected version of the custom_login app structure based on the Splunk App Inspect recommendations:
```
custom_login
|-- default
| |-- app.conf
| |-- web.conf
| |-- restmap.conf
| |-- savedsearches.conf
| |-- ui_prefs.conf
| |-- README
| |-- data
|-- metadata
| |-- default.meta
|-- static
| |-- appIcon.png
| |-- appIcon_2x.png
| |-- appIconAlt.png
| |-- appIconAlt_2x.png
| |-- background.png
| |-- fav_logo.png
|-- bin
| |-- readme.txt
|-- appserver
| |-- static
| |-- background.png
| |-- fav_logo.png
```
Here are the contents of the configuration files:
**app.conf**
```
[launcher]
author = NAME
description = <<<<<XXXXXXXXYYYYYY>>>>>>.
version = Custom login 1.0
[install]
is_configured = 0
[ui]
is_visible = 1
label = Custom app login
[triggers]
reload.web = web.conf
reload.restmap = restmap.conf
reload.ui_prefs = ui_prefs.conf
```
**restmap.conf**
```
# restmap.conf for custom_login
[endpoint:login_background]
# REST endpoint for login background image configurations
match = /custom_login
```
**ui_prefs.conf**
```
[settings]
loginBackgroundImageOption = custom
loginCustomBackgroundImage = custom_login:appserver/static/background.png
login_content = This is a server managed by my team. For any inquiries, please reach out to us at YYYY.com
loginCustomLogo = custom_login:appserver/static/fav_logo.png
loginFooterOption = custom
loginFooterText = © 2024 XXXXXXX
```
**web.conf**
```
[endpoint:login]
[expose:login_background]
pattern = /custom_login
methods = GET
```
I am currently working in a development environment. Any advice on how to proceed with these changes would be appreciated.
Thanks in advance.
What is the goal/target of the app? If it's for internal use then you can ignore the failures. If it's for Splunk Cloud then you must resolve the web.conf error. Splunk Support may be able to help you with that, but be prepared for them to say what you want to do is not possible.
What is the goal/target of the app? If it's for internal use then you can ignore the failures. If it's for Splunk Cloud then you must resolve the web.conf error. Splunk Support may be able to help you with that, but be prepared for them to say what you want to do is not possible.
Yes, I'm customizing the login screen for Splunk Enterprise, not for Splunk Cloud. I'm ignoring these failures. Thanks. @richgalloway