-
Notifications
You must be signed in to change notification settings - Fork 56
Building Kibana
The instructions provided below specify the steps to install Kibana 6.6.0 on Linux on IBM Z for following distributions:
- RHEL (7.4, 7.5, 7.6)
- SLES (12 SP3, 15)
- Ubuntu (16.04, 18.04)
General Notes:
- When following the steps below please use a standard permission user unless otherwise specified.
- A directory
/<source_root>/
will be referred to in these instructions, this is a temporary writable directory anywhere you'd like to place it.
- Node.js
- Elasticsearch (6.6.0 or later). Refer this for Elasticsearch
If you want to build Kibana using manual steps, go to STEP 2.
Use the following commands to build Kibana using the build script. Please make sure you have wget installed.
wget -q https://raw.githubusercontent.com/linux-on-ibm-z/scripts/master/Kibana/build_kibana.sh
# Build Kibana
bash build_kibana.sh [Provide -t option for executing build with tests]
If the build completes successfully, go to STEP 7. In case of error, check logs
for more details or go to STEP 2 to follow manual build steps.
export SOURCE_ROOT=/<source_root>/
-
RHEL (7.4, 7.5, 7.6)
sudo yum install wget tar make flex gcc gcc-c++ binutils-devel bzip2
- Build GCC 4.9.4
cd $SOURCE_ROOT wget ftp://gcc.gnu.org/pub/gcc/releases/gcc-4.9.4/gcc-4.9.4.tar.gz tar -xzf gcc-4.9.4.tar.gz && cd gcc-4.9.4/ ./contrib/download_prerequisites && cd .. mkdir gccbuild && cd gccbuild ../gcc-4.9.4/configure --prefix=$HOME/install/gcc-4.9.4 --enable-checking=release --enable-languages=c,c++ --disable-multilib make && sudo make install export PATH=$HOME/install/gcc-4.9.4/bin:$PATH export LD_LIBRARY_PATH=$HOME/install/gcc-4.9.4/lib64/ gcc --version
- Build GCC 4.9.4
-
SLES (12 SP3, 15)
sudo zypper install wget tar
-
Ubuntu (16.04, 18.04)
sudo apt-get update sudo apt-get install wget tar
Download Node.js Version 10.14.1
from here, follow the instruction to download Node.js and run the following commands.
cd $SOURCE_ROOT
wget https://nodejs.org/dist/v10.14.1/node-v10.14.1-linux-s390x.tar.gz
tar xvf node-v10.14.1-linux-s390x.tar.xz
mv node-v10.14.1-linux-s390x nodejs
cd $SOURCE_ROOT
wget https://artifacts.elastic.co/downloads/kibana/kibana-6.6.0-linux-x86_64.tar.gz
tar xvf kibana-6.6.0-linux-x86_64.tar.gz
cd $SOURCE_ROOT/kibana-6.6.0-linux-x86_64
mv node node_old # rename the node
ln -s $SOURCE_ROOT/nodejs node
This creates a new folder node
that links to installed node.js.
sudo ln -sf $SOURCE_ROOT/kibana-6.6.0-linux-x86_64/bin/kibana /usr/bin/
Now Kibana is ready to execute, make sure an Elasticsearch instance is running, and update the Kibana configuration file config/kibana.yml
to set elasticsearch.url
to the Elasticsearch host.
kibana
Open your browser and go to http://localhost:5601 to make sure Kibana works.
The information provided in this article is accurate at the time of writing, but on-going development in the open-source projects involved may make the information incorrect or obsolete. Please open issue or contact us on IBM Z Community if you have any questions or feedback.