Skip to content

Commit

Permalink
Replace deprecated API call for listing an index' aliases
Browse files Browse the repository at this point in the history
Affected only ES6.x
  • Loading branch information
Fᴀʙɪᴇɴ Wᴇʀɴʟɪ committed Sep 11, 2018
1 parent e4de3ae commit 213ef2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/riemann/plugin/samplerr.clj
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@
(defn list-indices
"lists all indices from an elasticsearch cluster having given prefix"
[elastic prefix]
(map name (keys (:body (es/request elastic {:url [(str prefix "*") :_aliases] :method :get})))))
(map name (keys (:body (es/request elastic {:url [(str prefix "*") :_alias "*"] :method :get})))))

(defn- index-exists?
"returns true if index exists"
Expand Down

0 comments on commit 213ef2a

Please sign in to comment.