Update search index for logs
@@ -67,8 +67,6 @@ public class Logs extends AbstractRestInterface implements ILogs {
@GsonWithIds
@Override
public Response getLogs(LogRequest logRequest) {
- String url = BackendConfig.INSTANCE.getElasticsearchURL() + "/" + "logstash-*" +"/_search";
-
LinkedList logs = new LinkedList();
RestHighLevelClient client = new RestHighLevelClient(
@@ -77,7 +75,7 @@ public class Logs extends AbstractRestInterface implements ILogs {
BackendConfig.INSTANCE.getElasticsearchPort(),
BackendConfig.INSTANCE.getElasticsearchProtocol())));
- SearchRequest searchRequest = new SearchRequest("logstash-*");
+ SearchRequest searchRequest = new SearchRequest("sp_*");
SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder();
searchSourceBuilder.query(boolQuery()
