This is an automated email from the ASF dual-hosted git repository.
tobiasistvan pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push:
new fb30561 [AMBARI-24018] Log Search component log url does not work on
Ambari web UI (#1458)
fb30561 is described below
commit fb30561976adbacec740dd8603a9c500b5cea4dd
Author: Istvan Tobias <[email protected]>
AuthorDate: Tue Jun 5 13:56:09 2018 +0200
[AMBARI-24018] Log Search component log url does not work on Ambari web UI
(#1458)
---
ambari-web/app/views/common/modal_popups/log_tail_popup.js | 9 ++++++---
1 file 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 6510ac9..bba4d17 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'),
--
To stop receiving notification emails like this one, please contact
[email protected].