Using the ElasticSeach API json error

Hello, I am trying to use the elastic Search API to just get a quick JSON object out of ElasticSearch.

using the VScode extension listed below

using query
GET _search
"query": {
"match_all": {}

and getting the following response back

<h1>Critical error while processing request: /_search/_search</h1>


I feel like I am missing something simple here, but I am a noob. Any words of wisdom would be greatly appreciated.

I also get the following error
Expected a JSON object, array or literal.

Not sure what this tool is or works.
What about using Kibana dev console instead?

Wish i could but the json file i want out of ElasticSeach will be quite large and i want to push it to an S3 bucket.

What is the use case?

Making a Threat Intelligence feed for people to use to prevent Cyber Attacks.

So you want to serve data using elasticsearch or you want to extract all data to somewhere else?

extra data based on a search.

So doing an API call to elasticsearch and getting back the JSON values

Use the scroll API. It has been designed to extract a huge quantity of records.

Thanks :slight_smile:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.