Modify ElasticSearchClient to search for the exact query
@@ -56,7 +56,7 @@ public class ElasticSearchClient {
*/
public JSONObject searchCarbonLogs(String logSnippet) throws IOException {
- String searchURL = hostName + "/" + deploymentStackID + "-carbonlogs*/_search?q=" + logSnippet;
+ String searchURL = hostName + "/" + deploymentStackID + "-carbonlogs*/_search?q=\"" + logSnippet + "\"";
log.info("searchURL:" + searchURL);
RESTClient restClient = new RESTClient();
