Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

elastic8.13.0 [date_histogram] unknown field [interval] #164

Open
chuqiao8250 opened this issue Apr 14, 2024 · 2 comments
Open

elastic8.13.0 [date_histogram] unknown field [interval] #164

chuqiao8250 opened this issue Apr 14, 2024 · 2 comments

Comments

@chuqiao8250
Copy link

Suppressed: org.elasticsearch.client.ResponseException: method [POST], host [http://192.168.5.27:30084], URI [/logstash-*/_search?typed_keys=true&ignore_unavailable=true&expand_wildcards=open&allow_no_indices=false&scroll=10m&search_type=query_then_fetch&batched_reduce_size=512], status line [HTTP/1.1 400 Bad Request]
{""error"":{""root_cause"":[{""type"":""x_content_parse_exception"",""reason"":""[1:776] [date_histogram] unknown field [interval] did you mean [fixed_interval]?""}],""type"":""x_content_parse_exception"",""reason"":""[1:776] [date_histogram] unknown field [interval] did you mean [fixed_interval]?""},""status"":400}
at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:283)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:261)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:235)
at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1762)

@LittleShrimp1987
Copy link
Collaborator

添加es数据源的时候,版本选的是啥呢

@voodoodoy
Copy link

voodoodoy commented May 29, 2024

有一样的问题,es版本8.7,使用提供的k8s镜像发布,数据源版本选的8.x

日志:
"2024-05-29T11:47:25.808+08:00" "ERROR" "com.autohome.frostmourne.monitor.config.GlobalControllerAdvice"        "38"    "org.elasticsearch.ElasticsearchStatusException"        "Elasticsearch exception [type=x_content_parse_exception, reason=[1:776] [date_histogram] unknown field [interval] did you mean [fixed_interval]?]"     "global catch exception"        "com.autohome.frostmourne.monitor.config.GlobalControllerAdvice"        "handleException"       "-"    "-"      "tech"  "frostmourne"   "frostmourne.monitor"   "-"     "196"   "http-nio-10054-exec-2" "-"     "10.80.8.159"   "-"     "-"     "-"     "-"     "ElasticsearchStatusException[Elasticsearch exception [type=x_content_parse_exception, reason=[1:776] [date_histogram] unknown field [interval] did you mean [fixed_interval]?]]
        at org.elasticsearch.rest.BytesRestResponse.errorFromXContent(BytesRestResponse.java:177)
        at org.elasticsearch.client.RestHighLevelClient.parseEntity(RestHighLevelClient.java:2050)
        at org.elasticsearch.client.RestHighLevelClient.parseResponseException(RestHighLevelClient.java:2026)
        at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1775)
        at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1732)
        at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1694)
        at org.elasticsearch.client.RestHighLevelClient.search(RestHighLevelClient.java:1090)
        at com.autohome.frostmourne.monitor.dao.elasticsearch.EsRestClientContainer.query(EsRestClientContainer.java:173)
        at com.autohome.frostmourne.monitor.service.core.query.impl.ElasticsearchDataQuery.query(ElasticsearchDataQuery.java:40)
        at com.autohome.frostmourne.monitor.service.core.query.impl.QueryService.elasticsearchQuery(QueryService.java:59)
        at com.autohome.frostmourne.monitor.controller.DataQueryController.elasticsearchData(DataQueryController.java:52)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)
        at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
        at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:105)
        at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:879)
        at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:793)
        at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
        at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
        at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
        at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:747)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:373)
        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590)
        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.base/java.lang.Thread.run(Thread.java:829)
        Suppressed: org.elasticsearch.client.ResponseException: method [POST], host [https://es-master.elk:9200], URI [/htweb5-2024.05.28,htweb5-2024.05.29/_search?typed_keys=true&ignore_unavailable=true&expand_wildcards=open&allow_no_indices=false&scroll=10m&search_type=query_then_fetch&batched_reduce_size=512], status line [HTTP/1.1 400 Bad Request]
{""error"":{""root_cause"":[{""type"":""x_content_parse_exception"",""reason"":""[1:776] [date_histogram] unknown field [interval] did you mean [fixed_interval]?""}],""type"":""x_content_parse_exception"",""reason"":""[1:776] [date_histogram] unknown field [interval] did you mean [fixed_interval]?""},""status"":400}
                at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:283)
                at org.elasticsearch.client.RestClient.performRequest(RestClient.java:261)
                at org.elasticsearch.client.RestClient.performRequest(RestClient.java:235)
                at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1762)
                ... 58 more
"

看日志貌似没有走到Elasticsearch8ClientContainer类里,重启后一下容器后就查出来了。不知道数据源的Properties字段里存的version是啥

key:
encrypt_key:EX31$@*^ac1
Properties字段内容:
IK4VBLer7VuOASXZ0+LS9CHayzXW/eay8jTjItBwsWjoxDZp+Br6nG37aFqnR10OtT/6nGIaC2nR5Amqac05ggNk6HSYUskI/C524yJjBhr+h7yoOByjQkkmvl0IKpJ7PxlK4ak3okM0AGNql2swWSEg/vRmNZoSJdAKCDBgOMzM4DtAe4yHFu223tGNzITL8Tk9YrdcCj+1wz9GN5CCFjEoBrm9vOLNsONHguTnmKE1HhzAU3LhWf9HD25nptQAz5ug9++LESfDBDVQHkoUhbBagzGYRz7IW1NdHvbjgFEulSae7ckIZNYYuFl0rZ+HKi9bh9jbdkZi9VZl9VPx9Mg010j+gwDSvHDXuV1wHwWaoDeTibiwNcf9yyE/e4VMfpaTYCdV9kTF0JcR4XjIEDRh1uwZocsYCMXVSByp1uRrInMz6yRasEVgdiXmBO0+37Dday9unCbCe3hbn7MFElGv+IA/CSWvbw2AzywzYO7jpetE69W4yhw0MKHcumeTT7p0zcuk5iOvj4NNur4C5sjnmole/WNq9T1a1CbsscrXkEf1eesqEsJCKV0bcBfJXVXQ2TY1Awc8sAie38GxXj0n4+959dld/hDxWbcFIN/AxxI7c9JeZ0HjWg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bX6gdl2JXwsJkhg9tWFAPEGhtM/dwIUSisx1qRkLwYOvobrQvutfWU8288ZCfq6NCS7/EfRLRMEjZntyczowyrhKIqt42nX4mJFPKZwJ/MhZkjgnxCextUx4scOpVIG2zVrg5WGI0l02iRlY+uKiQawG2XFPLkyMomK920O2aCKlKU+Hcp9npZTvD20xb3sPRR3k0S3d5aKeLKJOEEZLcKolyU4mabdxMMKviKN0sPvJCYAoClrdaHtvFDpq+3QkonQu5k41N2vznHscMc0QvJ4wujKO6xuBe6zvaX8qei2jbJoto3C/8mbb80Xhj/Ep/Yr9hmuz8khDlCzpYHFSgKY8te045ueA0YBcYgGwc/oRceuXEXueCo8+Guz/3tBFmjhUKA3pA/JvBOeJdLJ7WNGYCsTmXw2VNDGFjt+C821puo9zm59wptkwlF0O+8Kvaur8bPBasTYtwPzaix0euwOquwvMZ0DP6qgxEobbRps/dQbxO81MgIPPOxVq+PWAmfNP9cprIINzooBd1p5ZeQsrSn47LvZMBSu+ImhePapBXIpMKHenIzr1/jZPYU+5hgaQ6sUdPUdSN6f3k6HkHyEDwqijBU9vdhlr4YjczU0pCnBPyW/Lhaszvmu7eqFkE0Xxooo+Lcm4X3w24VOR3n+o1LA==

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants