The invention discloses a
data source management method, and relates to the technical field of
data management, and the
data source management method comprises the following steps: 1, a
preprocessor preprocesses a request, analyzes
metadata information including a cluster name and a connection mode, and constructs an Elasticsearch
client; 2, importing a veority template engine, and analyzing and converting the request into a message body corresponding to the request through a converter; constructing a request parameter; 3, importing an httpclient module, accessing an Elasticsearch cluster corresponding to the http request through the http request, obtaining a returned result, uniformly
processing the result through an analyzer, and returning data; the invention discloses a multi-
data source management system compatible with a plurality of versions of Elasticsearch clusters. Under a
preprocessor and a converter, request message bodies corresponding to different versions are generated in combination with a velocity template engine, and then through interaction between https / http and corresponding Elasticsearch, a parser carries out unified
processing and returning. On the premise of taking the above as the core, the operation difficulty of the Elasticsearch cluster is simplified, and the functions of index management,
data stream archiving query, data archiving and the like are realized.