How can build Kibana 4.2 on windows Machine?

(Santhosh Varala) #1


I want to build Kibana from 4.2 sources on Windows 8.1 machine. But it is giving errors.
Please provide the proper steps to prepare the builds.

thanks & regards,

(Magnus Bäck) #2

If you told us what errors you're getting it would be easier to help you.

(Santhosh Varala) #3

I have ran npm run build. But it is following error
kibana@4.2.0-snapshot build E:\workspace-eclipse\Kibana
grunt build

unning "_build:shrinkwrap:ensureExists:true" (_build:shrinkwrap:ensureExists) t

npm shrinkwrap --dev --loglevel error
arning: spawnSync npm ENOENT Use --force to continue.

borted due to warnings.

pm ERR! Windows_NT 6.3.9600
pm ERR! argv "D:\nodejs\node.exe" "C:\Users\santhosh\AppData\Roaming\npm
\node_modules\npm\bin\npm-cli.js" "run" "build"
pm ERR! node v4.0.0
pm ERR! npm v3.2.2
pm ERR! kibana@4.2.0-snapshot build: grunt build
pm ERR! Exit status 3
pm ERR!
pm ERR! Failed at the kibana@4.2.0-snapshot build script 'grunt build '.
pm ERR! This is most likely a problem with the kibana package,
pm ERR! not with npm itself.
pm ERR! Tell the author that this fails on your system:
pm ERR! grunt build
pm ERR! You can get their info via:
pm ERR! npm owner ls kibana
pm ERR! There is likely additional logging output above.

pm ERR! Please include the following file with any support request:
pm ERR! E:\workspace-eclipse\Kibana\npm-debug.log

(Santhosh Varala) #4

Can anybody helps on this issue?

(Jordan Sissel) #5

I've never tried building Kibana on Windows.

I'm not trying to derail you, but is there something wrong about the Windows releases of Kibana that we publish? Can you not use those? Maybe using our releases of Kibana for Windows could help you until the build problems you experience are resolved?

(Santhosh Varala) #6

Idea is, I want to customize the Kibana according to my needs. But release one is optimized generated code.
So if i want to change anything i need to touch the source code.
So for modified changes i can build Kibana out of it.

Please help in this regard or suggest any other alternative

(Tanya Bragin) #7

@Santhosh_Varala Building Kibana is currently only supported on Linux and OSX. So if you want to make changes to Kibana source code, you'll have to build it on a supported OS.

Also, if you'd like to submit a pull request to make the build process work on Windows, we'd be open to reviewing it, as we are not currently working on that.

(Santhosh Varala) #8

Is the build process works on Centos 6.5 ?

(Daniel Alvarez) #9

Some time ago I tried to do it, with successful results. I'll document the environment changes I did so as to build it in Windows.

(Probaner) #10

Can any 1 point to Kibana Source which was successfully build on Windows.

Build Kibana 5.6.4 release packages on Windows 7/Windows Server 2012
(Lee Drengenberg) #11

You can run from source on Windows (I do), and so you can use it and/or modify/contribute/etc, but you can't actually build kibana release packages on Windows yet.

There is a PR that you might be able to follow along with and get the build to work on Windows;

(Probaner) #12

Thanks Lee,
Which source you cloned? And what are the prerequisites for running it from
eclipse. Can you outline if possible? Thanks once more for quick reply.

(Lee Drengenberg) #13

I'm using (master branch)

Refer to;

On Windows, you'll need to install node (4.3.2 is our current version for Kibana master) for windows from

Install gitbash.

Using gitbash shell, in your git clone'd kibana directory, run npm install

Then ./bin/kibana

(Of course you need Elasticsearch running too)

(Lee Drengenberg) #14

I'm not sure how to run it from Eclipse.

(Probaner) #15

Thanks Lee for the guidance. I was able to build it. But now the problem
is: this kibana needs ElasticSearch 5.0.0. See the screenshot below. Do you
have pointer to ES 5.0.0? Let me know. Actually I am on the way of creating
Kibana plugin , all these are part of environment set-up for that.

(Lee Drengenberg) #16

You might have to build Elasticsearch 5.0 from source

There's some instructions gradle build in the README.textile in that repository.

I might be able to send you a link to a 5.0 snapshot build. What OS are you running Elasticsearch on (locally on Windows)?


(Lee Drengenberg) #17

You should also be able to start elasticsearch 5.0 snapshot from your Kibana checkout with esvm --branch master.

If you don't have esvm install it with npm install -g esvm.


(Probaner) #18

kindly send the link for snapshot build. Here are the details of
local windows.

(Probaner) #19

Getting this error while I start elasticsearch server from Kibana check outs even after installing esvm:

C:\Users\eprbane\elastic\kibana>npm run elasticsearch

> kibana@5.0.0-snapshot elasticsearch C:\Users\eprbane\elastic\kibana
> grunt esvm:dev:keepalive

Running "esvm:dev:keepalive" (esvm) task
starting up "dev" cluster
Keeping elasticsearch alive, to shutdown press command/control+c
INFO -  - cluster - Downloading & installing from "master" branch.
INFO -  - cluster - Installing plugins
INFO -  - cluster - Starting 1 nodes
Fatal error: Cannot read property 'split' of undefined

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "run" "elasticsearch"
npm ERR! node v4.4.1
npm ERR! npm  v2.14.20
npm ERR! kibana@5.0.0-snapshot elasticsearch: `grunt esvm:dev:keepalive`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the kibana@5.0.0-snapshot elasticsearch script 'grunt esvm:de
npm ERR! This is most likely a problem with the kibana package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     grunt esvm:dev:keepalive
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs kibana
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR!     npm owner ls kibana
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\eprbane\elastic\kibana\npm-debug.log


(Meenal Luktuke) #20

I just did a build of kibana from source code. Check the following

  1. git clone the kibana repository
  2. npm install
  3. npm run elasticsearch
  4. check write + execute permission on <>\kibana\optimize.babelcache.json and <>\kibana\optimize\bundles
  5. run Git bash and execute npm start from <>\kibana