Aysennoussi
Aysennoussi

Reputation: 3860

Elasticsearch list all rivers


How do I list all the rivers in Elasticsearch, I'm new to it and was adding rivers on the fly and I want to do some cleaning. The official documentation doesn't mention a way to do so..

Upvotes: 4

Views: 4707

Answers (2)

Yi Z
Yi Z

Reputation: 981

To piggyback on Nate's answer, if you throw the following line into a browser, you will get output that's actually readable (notice the "pretty" parameter was added):

http://localhost:9200/_river/_search?q=*&pretty

Upvotes: 2

Nathan Smith
Nathan Smith

Reputation: 8347

I think this will do the trick for you, as _river is an index like any other it can be queried like one. -

curl -XGET http://localhost:9200/_river/_search?q=*

Upvotes: 8

Related Questions