summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIstvan Tobias <tobias.istvan@gmail.com>2018-06-05 13:56:09 +0200
committerGitHub <noreply@github.com>2018-06-05 13:56:09 +0200
commitfb30561976adbacec740dd8603a9c500b5cea4dd (patch)
tree4fe03eddae01d58ced325a2a585e399ad35a6425
parent9c908b528bece876e8fb291fda2585fdcb20e24b (diff)
[AMBARI-24018] Log Search component log url does not work on Ambari web UI (#1458)
-rw-r--r--ambari-web/app/views/common/modal_popups/log_tail_popup.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/ambari-web/app/views/common/modal_popups/log_tail_popup.js b/ambari-web/app/views/common/modal_popups/log_tail_popup.js
index 6510ac9fb4..bba4d17725 100644
--- a/ambari-web/app/views/common/modal_popups/log_tail_popup.js
+++ b/ambari-web/app/views/common/modal_popups/log_tail_popup.js
@@ -39,10 +39,13 @@ App.showLogTailPopup = function(content) {
logSearchUrl: function() {
var quickLink = App.QuickLinks.find().findProperty('site', 'logsearch-env'),
- logSearchServerHost = App.HostComponent.find().findProperty('componentName', 'LOGSEARCH_SERVER').get('hostName');
-
+ logSearchServerHost = App.HostComponent.find().findProperty('componentName', 'LOGSEARCH_SERVER').get('hostName'),
+ queryParams = '';
if (quickLink) {
- return quickLink.get('template').fmt('http', logSearchServerHost, quickLink.get('default_http_port')) + '?host_name=' + this.get('content.hostName') + '&file_name=' + this.get('content.filePath') + '&component_name=' + this.get('content.logComponentName');
+ queryParams = 'hosts=' + this.get('content.hostName') + '&components=' + this.get('content.logComponentName')
+ + '&query=%5B%7B"id":0,"name":"path","label":"Path","value":"' + this.get('content.filePath')
+ + '","isExclude":false%7D%5D';
+ return quickLink.get('template').fmt('http', logSearchServerHost, quickLink.get('default_http_port')) + '/#/logs/serviceLogs?' + queryParams;
}
return '#';
}.property('content'),