需要条件查询日志,决定直接调graylog里条件查询api.
看graylog3.0文档,上面说需要在当前用户下建立token,测试许久发现实际不生效.
需要在调接口之前,header头里添加这个authorization 字符串就好了.
public class RestTemplateTokenRelayinterceptor implements ClientHttpRequestInterceptor {
@Override
public ClientHttpResponse intercept(HttpRequest httpRequest, byte