Skip to content

Building Kibana

aborkar-ibm edited this page Feb 26, 2019 · 52 revisions

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.

Dependencies:

  • Node.js
  • Elasticsearch (6.6.0 or later). Refer this for Elasticsearch

1. Build using script

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.

2. Use the following commands to obtain dependencies

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
  • SLES (12 SP3, 15)

    sudo zypper install wget tar   
  • Ubuntu (16.04, 18.04)

    sudo apt-get update
    sudo apt-get install wget tar   

3. Install Node.js

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

4. Get Kibana release package and extract

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

5. Replace Node.js in the package with the installed Node.js.

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.

6. Add kibana to /usr/bin

sudo ln -sf $SOURCE_ROOT/kibana-6.6.0-linux-x86_64/bin/kibana /usr/bin/

7. Start Kibana

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.

References

Kibana

Clone this wiki locally