IllegalArgumentException error

Hello,

We have simple code and we would like to validate that log entry was properly indexed.

We ran the command: curl 'localhost:9200/_search' into the JSON interface. However, we get the following error:

{
"error": "ElasticsearchIllegalArgumentException[No feature for name [_search']]",
"status": 400
}

Has anyone ever encountered the same error? Any idea on what could be the issue?

I appreciate your assistance.

Try curl localhost:9200/_search

Hi David,

Thanks for your suggestion. If I remove the quotation mark like you suggested: localhost:9200/_search

I ran this command in the JSON interface and got a different error message:

{
"error": "IndexMissingException[[localhost:9200] missing]",
"status": 404
}

Regards,

So you don't use CURL?

May be you are using SENSE?

Well, then only enter _search

Hi David,

Sorry I made a typo. I am using the curl command: curl localhost:9200/_search

I ran this command in the JSON interface and got a different error message:

{
"error": "IndexMissingException[[localhost:9200] missing]",
"status": 404
}

I am not sure if I am using Sense. I am using JSON interface through my web browser. Would you have another suggestion as to how I would run my command in order to check if my log entry was parsed correctly?

Thanks for your assistance.

What is this JSON interface?