The Banana project was forked from Kibana, and works with all kinds of time series (and non-time series) data stored in Apache Solr. It uses Kibana's powerful dashboard configuration capabilities, ports key panels to work with Solr, and provides significant additional capabilities, including new panels that leverage D3.js.
The goal is to create a rich and flexible UI, enabling users to rapidly develop end-to-end applications that leverage the power of Apache Solr. Data can be ingested into Solr through a variety of ways, including Logstash, Flume and other connectors.
The release branch holds the current code. Use it for deployment, and branch from it when you contribute (see
CONTRIBUTING.md). Releases are tagged vX.Y.Z.
The older develop and fusion branches are no longer used for development.
What changed in this version, and in 1.6.27 to 1.6.30, is in CHANGELOG.md. The version number is the one in
package.json. Notes for older versions are on the
wiki.
Banana is not published to npm any more: package.json is marked "private": true, and the banana-fusion package that
is already on npm stays at 1.6.30. Build Banana from this repository (npm ci, npm run build, see below), or build the
Docker image (Option 5). See
docs/adr/0028-private-package.md. Hosting outside Fusion is described in
docs/hosting-docker.md and the security trade-offs in docs/security.md.
- Lucidworks Fusion 5.9.x is the supported back end (the version this release is developed and tested against is 5.9.16). Banana runs inside Fusion's admin UI, or in the Docker image in front of Fusion.
- Node.js and npm to build Banana from source. Node.js 22 (22.18 or later) is the reference toolchain; the build and tests
also run on Node.js 24.11 or later and on 26 or later, and continuous integration covers 22, 24 and 26 (the exact range is
enginesinpackage.json). The repository has an.nvmrcfor the 22 line. Runnpm ci, notnpm install, so that the committedpackage-lock.jsonis used. - Docker, if you want the container image (any recent Docker with BuildKit).
- A modern web browser. The latest version of Chrome and Firefox have been tested to work. Safari also works, except for the "Export to File" feature for saving dashboards. We recommend that you use Chrome or Firefox while building dashboards.
- For the Solr preset only: a plain Solr server (Solr's endpoint must be open, or a proxy configured to allow access to it). The preset was smoke-tested once on Solr 9.11 in a local container; see "Solr preset" below for what that did and did not cover. Other Solr versions are untested by this project.
- A webserver (optional).
Banana is built with webpack. From a fresh clone:
npm ci # install exactly what package-lock.json lists
npx playwright install chromium # the unit tests and the smoke check use this browser
npm run build # writes dist/
npm test # unit tests (Karma, headless Chromium)
npm run test:node # tests that need no browser
npm start serves dist/ on port 8000. Contributors: see CONTRIBUTING.md.
src/config.js ships with the Lucidworks Fusion defaults (USE_FUSION: true, query pipelines API under
/api/query-pipelines/_system/collections/, collection system_logs, dashboards stored in the Fusion blob store).
To run Banana against a plain Solr server instead, use the Solr preset: copy config.solr.js over config.js
(dist/config.js in a built distribution; src/config.js is its source). No rebuild is needed, because config.js is not part of
the bundled code. The preset sets USE_FUSION: false, solr: "/solr/", solr_core: "logs",
banana_index: "banana-int" and default_dashboard: "default.solr.json", the Solr default dashboard. Reload the page
after copying, because the browser may cache config.js. A built dist requests config.js without a cache-busting tag
(unlike the application bundle), so a hard reload or no-cache headers on config.js may be needed.
Set banana_server in config.js to load and save dashboards on a different server than the data server. It only
matters when USE_FUSION is false; with Fusion, dashboards are saved and loaded through the blob API.
A shared link can carry ?server=... to name the server a dashboard is loaded from (Solr mode only). Banana uses it only
when it is a relative path such as /solr/, equals banana_server (or solr), or is listed in allowed_dashboard_servers
in config.js; any other value is ignored with a warning. See docs/adr/0021-dashboard-server-parameter.md.
See docs/adr/0006-fusion-defaults-and-solr-preset.md and docs/adr/0007-plain-solr-scope.md.
The preset was run once, by hand, against a local solr:9 container (Solr 9.11.0, standalone mode, not SolrCloud). A copy of
dist/ with config.solr.js as config.js was served by a static web server that forwarded /solr/ to the container on the
same origin. Results:
- The default Solr dashboard loaded, and its panel queries and the field list (
/admin/luke) returned results from a core namedcollection1. One facet query returned 400 because the test data had nomessagefield, which is a data problem, not a Banana one. The shipped dashboard namescollection1(and the fieldevent_timestamp) itself, so point the dashboard at your own core with Configure Dashboard. - A
banana-intcore created fromresources/banana-int-solr-5.0/confsaved a dashboard from the Save menu, and the document was found in the core afterwards. Solr 9 logged errors that it could not load thesolr.LRUCache,solr.search.LRUCacheandsolr.FastLRUCacheclasses named by that oldsolrconfig.xml, and carried on. Creatingbanana-intwith the default configset (solr create -c banana-int) was not tried on Solr 9. - That run was made before Banana learned to fall back to the CoreAdmin list. It then showed the alert "Could not retrieve
collections from Solr (error status = 400)" on a standalone Solr, because the collection list it asks for first
(
/admin/collections?action=LIST) exists only in SolrCloud. Banana now asks/admin/cores?action=STATUSwhen that request fails and shows the alert only if both fail. The fallback is covered by unit tests and was not run against Solr 9. - Copying
dist/into Solr's own web application directory (Option 1 and Option 3) was not tried on Solr 9, and neither was SolrCloud or any other Solr version.
Plain Solr support is limited to keeping the preset working (see docs/adr/0007-plain-solr-scope.md).
-
Run Solr at least once to create the webapp directory (this step might be unnecessary for Solr 6):
cd $SOLR_HOME/bin ./solr start -
Build Banana (this needs Node.js 22.18 or later in the 22 line, 24.11 or later in the 24 line, or 26 or later) and copy the built
distfolder to$SOLR_HOME/server/solr-webapp/webapp/. Thesrcfolder cannot be served as it is, because the application is bundled bynpm run build:cd $BANANA_HOME npm ci npm run build cp -R ./dist $SOLR_HOME/server/solr-webapp/webapp/bananaThen select the Solr preset by copying
config.solr.jsoverconfig.js(the shippedconfig.jshas the Fusion defaults):cp $SOLR_HOME/server/solr-webapp/webapp/banana/config.solr.js $SOLR_HOME/server/solr-webapp/webapp/banana/config.js
-
Run Solr at least once to create the webapp directories:
cd $SOLR_HOME/example java -jar start.jar -
Build Banana as described above (
npm ci, thennpm run build) and copy thedistfolder to$SOLR_HOME/example/solr-webapp/webapp/banana. -
Select the Solr preset by copying
config.solr.jsoverconfig.jsinbanana(the shippedconfig.jshas the Fusion defaults).
NOTES: If your Solr server/port is different from localhost:8983, then after the
copy step above edit solr in banana/config.js and server in
banana/app/dashboards/default.solr.json to enter the hostname and port that you are using.
Remember that banana runs within the client browser, so provide a fully qualified domain name (FQDN), because the
hostname and port number you provide should be resolvable from the client machines.
If you have not created the data collections and ingested data into Solr, you will see an error message saying "Collection not found at .." You can use any connector to get data into Solr. If you want to use Logstash, please go to the Solr Output Plug-in for Logstash Page for code, documentation and examples.
Lucidworks has packaged Solr, Logstash (with a Solr Output Plug-in), and Banana (the Solr port of Kibana), along with example collections and dashboards in order to rapidly enable proof-of-concepts and initial development/testing. See http://www.lucidworks.com/lucidworks-silk/.
There is no WAR file. Build Banana as described in Option 1, then copy the contents of the dist folder into a
banana directory inside the directory that holds Solr's own web application (the one that contains Solr's admin
index.html; where that is depends on your Solr version and installation). Then select the Solr preset by copying
config.solr.js over config.js in that banana directory (the shipped config.js has the Fusion defaults), as in
Option 1, and set solr there if your Solr is not on localhost:8983. Browse to
http://localhost:8983/solr/banana/index.html (or the FQDN of your Solr server). Solr may replace that directory when
you upgrade it, so for anything long-lived serve dist from a web server instead (Option 4). See
docs/adr/0026-remove-war-build.md for why the WAR build was removed.
Banana is an AngularJS app and can be run in any webserver that has access to Solr. You will need to enable CORS on the Solr instances that you query, or configure a proxy that makes requests to banana and Solr as same-origin. We typically recommend the latter approach.
Build Banana as described in Option 1 and serve the dist folder (npm run build writes it); src cannot be served
as it is. npm start serves dist on port 8000 once it is built. npm run dev serves the application with
webpack-dev-server on the local machine only (set BANANA_DEV_HOST to change that), but it does not proxy /api or
/solr, so it cannot reach Fusion or Solr unless you add a proxy or enable CORS on the server you query.
Panel directories or map.<name>.js files that you add to a deployed dist folder are not picked up: panels are
bundled at build time, so add them under src and rebuild.
The repository has a Dockerfile that builds Banana and serves it with an unprivileged nginx that also forwards /api/,
/auth/ and /admin/ to one Fusion instance on the same origin. People log in with their own Fusion accounts; the
container holds no Fusion credential.
docker build -t banana-hosting .
docker run --rm -p 127.0.0.1:8080:8080 \
-e FUSION_URL=https://fusion.example.com \
-e BANANA_PUBLIC_ORIGIN=http://localhost:8080 -e BANANA_INSECURE_COOKIES=on \
banana-hostingOpen http://localhost:8080. BANANA_INSECURE_COOKIES=on is for trying it on localhost only; a
real deployment sits behind HTTPS, with BANANA_PUBLIC_ORIGIN set to the https address. compose.yaml is an example
that also drops privileges and makes the file system read-only. The container refuses to start with a clear message when
its environment is wrong, and it logs what it checked in Fusion. What it proxies, the variables it reads and the security
trade-offs are in docs/adr/0003-standalone-hosting-same-origin-proxy.md
and docs/adr/0023-docker-image.md.
The step-by-step guide is docs/hosting-docker.md; read docs/security.md before putting it in front of real users.
If you want to save and load dashboards from Solr, then you need to create a collection called banana-int first. For Solr 6, here are the steps:
cd $SOLR_HOME/bin
./solr create -c banana-int
For Solr 5 and 4, you have to create the banana-int collection using the configuration files provided in either
the resources/banana-int-solr-5.0 (for Solr 5) directory or the resources/banana-int-solr-4.5 directory
(for Solr 4.5). If you are using SolrCloud, you will need to upload the configuration into
ZooKeeper and then create the collection using that configuration.
The Solr server configured in config.js will serve as the default node for each dashboard; you can configure each dashboard to point to a different Solr endpoint as long as your webserver and Solr put out the correct CORS headers. See the README file under the resources/enable-cors directory for a guide.
If you created dashboards for Banana 1.0.0, you did not have a global filtering panel. In some cases, these filter values can be implicitly set to defaults that may lead to strange search results. We recommend updating your old dashboards by adding a filtering panel. A good way to do it visually is to put the filtering panel on its own row and hide it when it is not needed.
Q: How do I secure my Solr endpoint so that users do not have access to it?
A: The simplest solution is to use an Apache or
nginx reverse proxy (See for example https://groups.google.com/forum/#!topic/ajax-solr/pLtYfm83I98).
Q: Can I use banana for non-time series data?
A: Yes, from version 1.3 onwards, non-time series data are also supported.
- Lucidworks SILK: http://www.lucidworks.com/lucidworks-silk/
- Webinar on Lucidworks SILK: http://programs.lucidworks.com/SiLK-introduction_Register.html.
- Logstash: http://logstash.net/
- SILK Use Cases: https://github.com/LucidWorks/silkusecases. Provides example configuration files, schemas and dashboards required to build applications that use Solr and Banana.
Banana is a community-maintained project. For questions, bug reports and feature requests, please open an issue at GitHub Issues. See CONTRIBUTING.md if you would like to contribute a change, and SECURITY.md to report a security vulnerability.
Kibana is a trademark of Elasticsearch BV
Logstash is a trademark of Elasticsearch BV