Skip to content

Commit

Permalink
Configurable time field
Browse files Browse the repository at this point in the history
  • Loading branch information
aadel committed Jan 16, 2015
1 parent 0384800 commit 55f51dc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/app/components/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ function (_) {
var defaults = {
solr: "http://"+window.location.hostname+":8983/solr/",
solr_core: "logstash_logs",
timefield: 'event-timestamp',
banana_index : 'banana-int',
USE_ADMIN_LUKE: true,
USE_ADMIN_CORES: true,
Expand Down
2 changes: 1 addition & 1 deletion src/app/controllers/dashLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function (angular, _) {
$scope.new = {
server: $scope.config.solr,
core_name: $scope.config.solr_core,
time_field: 'event_timestamp'
time_field: $scope.config.timefield
};
};

Expand Down
1 change: 1 addition & 0 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ function (Settings) {
*/
solr: "/solr/",
solr_core: "logstash_logs",
timefield: 'timestamp',

/**
* The default Solr index to use for storing objects internal to Banana, such as
Expand Down

0 comments on commit 55f51dc

Please sign in to comment.