matchedTerms, TimeRan
sb.append("").append(entry.getValue()).append(" | ");
try {
- String search_uri="/search?rangetype=absolute&fields=message%2Csource%2C"+rule.getField()+"&from="+timeRange.getFrom()+"&to="+timeRange.getTo()+"&q="+URLEncoder.encode(rule.getQuery()+" AND " + rule.getField()+":\""+entry.getKey()+"\"", "UTF-8");
+ String streamId = rule.getStreamId();
+ String search_uri = "";
+
+ if (streamId != null && streamId != ""){
+ search_uri+="/streams/"+streamId;
+ }
+ search_uri+="/search?rangetype=absolute&fields=message%2Csource%2C"+rule.getField()+"&from="+timeRange.getFrom()+"&to="+timeRange.getTo()+"&q="+URLEncoder.encode(rule.getQuery()+" AND " + rule.getField()+":\""+entry.getKey()+"\"", "UTF-8");
sb.append("").append("Search").append(" | ");
} catch (UnsupportedEncodingException e) {
sb.append("").append("Unable to URL encode search URI").append(" | ");