From c5678139ef0a3c1655568558dfce40d097afab76 Mon Sep 17 00:00:00 2001 From: Rashid Khan Date: Thu, 2 May 2013 16:46:26 -0700 Subject: [PATCH] removed localhost from config.js, added guessing of ES host --- config.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/config.js b/config.js index 419dbc152c7..f78faac98b6 100644 --- a/config.js +++ b/config.js @@ -12,10 +12,14 @@ If you need to configure the default dashboard, please see dashboards/default */ var config = new Settings( { - elasticsearch: 'http://localhost:9200', - kibana_index: "kibana-int", - modules: ['histogram','map','pie','table','stringquery','sort', - 'timepicker','text','fields','hits','dashcontrol', - 'column'], + // By default this will attempt to reach ES at the same host you have + // elasticsearch installed on. You probable want to set it to the FQDN of your + // elasticsearch host + elasticsearch: "http://"+window.location.hostname+":9200", + // elasticsearch: 'http://localhost:9200', + kibana_index: "kibana-int", + modules: ['histogram','map','pie','table','stringquery','sort', + 'timepicker','text','fields','hits','dashcontrol', + 'column'], } );