Skip to content

Commit 2ee8e37

Browse files
committed
Adding response for Elasticsearch rollup api
1 parent 2e1a9e3 commit 2ee8e37

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/vlinsert/elasticsearch/elasticsearch.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ func RequestHandler(path string, w http.ResponseWriter, r *http.Request) bool {
5252
fmt.Fprintf(w, `{}`)
5353
return true
5454
}
55+
if strings.HasPrefix(path, "/insert/elasticsearch/_rollup") {
56+
// Return fake response for Elasticsearch rollup apis
57+
// See: https://www.elastic.co/guide/en/elasticsearch/reference/8.8/rollup-apis.html
58+
fmt.Fprintf(w, `{}`)
59+
return true
60+
}
5561
if strings.HasPrefix(path, "/insert/elasticsearch/logstash") || strings.HasPrefix(path, "/insert/elasticsearch/_logstash") {
5662
// Return fake response for Logstash APIs requests.
5763
// See: https://www.elastic.co/guide/en/elasticsearch/reference/8.8/logstash-apis.html

0 commit comments

Comments
 (0)