How to get the information of something when you have it's "_id" field already

So I am trying to be able to access information about an object in elasticsearch, when I already have it's unique ID. Here is the current query that I have:

curl -XGET 'localhost:9200/packetbeat-2017.03.23/AVr8l8YfyH-VqZ9J_0HZ?pretty'

This is the response that I get from it:

{
  "error" : {
"root_cause" : [
  {
    "type" : "illegal_argument_exception",
    "reason" : "No endpoint or operation is available at [AVr8l8YfyH-VqZ9J_0HZ]"
  }
],
   "type" : "illegal_argument_exception",
   "reason" : "No endpoint or operation is available at [AVr8l8YfyH-VqZ9J_0HZ]"
},
   "status" : 400
}

I know that this index and this ID both exist, any ideas on how to do this?

You are missing the type here.

GET index/type/id
1 Like

Thanks!

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