From e288dfb168165e42840fea54e7eb3f6d796be376 Mon Sep 17 00:00:00 2001
From: Darshan Nagesh <darshan.nagesh@tarento.com>
Date: Tue, 22 Mar 2022 12:48:12 +0530
Subject: [PATCH] Changing the path for Dashboards ES URL g

---
 .../com/tarento/analytics/service/impl/RestService.java   | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/tarento/analytics/service/impl/RestService.java b/src/main/java/com/tarento/analytics/service/impl/RestService.java
index a61f1ee..e74157c 100644
--- a/src/main/java/com/tarento/analytics/service/impl/RestService.java
+++ b/src/main/java/com/tarento/analytics/service/impl/RestService.java
@@ -51,8 +51,10 @@ public class RestService {
 	private String quadnaryUsername;
 	@Value("${services.esindexer.quadnary.password}")
 	private String quadnaryPassword;
-	@Value("${services.esindexer.quadnary.host}")
-	private String indexServiceQuadnaryHost;
+	@Value("${services.esindexer.quadnary.host.name}")
+	private String indexServiceQuadnaryHostName;
+	@Value("${services.esindexer.quadnary.host.port}")
+	private String indexServiceQuadnaryPort;
 
 	@Autowired
 	private RetryTemplate retryTemplate;
@@ -76,7 +78,7 @@ public class RestService {
 		} else if (instance.equals(Constants.TERNARY)) {
 			url = (indexServiceTernaryHost) + index + indexServiceHostSearch;
 		} else if (instance.equals(Constants.QUADNARY)) {
-			url = (indexServiceQuadnaryHost) + index + indexServiceHostSearch;
+			url = (indexServiceQuadnaryHostName) + ":" + (indexServiceQuadnaryPort) + "/" + index + indexServiceHostSearch;
 		}
 
 		HttpHeaders headers = getHttpHeaders(instance);
-- 
GitLab