Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

securityonion-elastic: add script to disable dark theme in Kibana #1297

Closed
dougburks opened this issue Aug 14, 2018 · 3 comments
Closed

securityonion-elastic: add script to disable dark theme in Kibana #1297

dougburks opened this issue Aug 14, 2018 · 3 comments

Comments

@dougburks
Copy link
Contributor

dougburks commented Aug 14, 2018

Add a new script called /usr/sbin/so-elastic-configure-kibana-dashboards-light as follows:

#!/bin/bash
#
# Copyright 2014,2015,2016,2017,2018 Security Onion Solutions, LLC
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

cp -av /opt/elastic/src/kibana/dashboards /opt/elastic/src/kibana/dashboards.dark
sed -i 's|\\"darkTheme\\":true|\\"darkTheme\\":false|g' /opt/elastic/src/kibana/dashboards/*.json
so-elastic-configure-kibana-dashboards
rm -rf /opt/elastic/src/kibana/dashboards
mv /opt/elastic/src/kibana/dashboards.dark /opt/elastic/src/kibana/dashboards
@dougburks
Copy link
Contributor Author

@dougburks
Copy link
Contributor Author

@dougburks
Copy link
Contributor Author

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant