# IllegalArgumentException error

**URL:** <https://discuss.elastic.co/t/illegalargumentexception-error/33024>\
**Category:** Elasticsearch\
**Created:** [October 26, 2015, 8:30pm UTC](https://discuss.elastic.co/t/illegalargumentexception-error/33024 "2015-10-26T20:30:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Didier](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@Didier](https://discuss.elastic.co/u/Didier)\
**Post date:** [October 26, 2015, 8:30pm UTC](https://discuss.elastic.co/t/illegalargumentexception-error/33024/1 "2015-10-26T20:30:30Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 26, 2015, 8:46pm UTC](https://discuss.elastic.co/t/illegalargumentexception-error/33024/2 "2015-10-26T20:46:05Z")

</div>

Try curl localhost:9200/\_search

---

<div class="post-metadata">

**Author:** ![Didier](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@Didier](https://discuss.elastic.co/u/Didier)\
**Post date:** [October 27, 2015, 2:27pm UTC](https://discuss.elastic.co/t/illegalargumentexception-error/33024/3 "2015-10-27T14:27:07Z")

</div>

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,

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 27, 2015, 2:39pm UTC](https://discuss.elastic.co/t/illegalargumentexception-error/33024/4 "2015-10-27T14:39:09Z")

</div>

So you don't use CURL?

May be you are using SENSE?

Well, then only enter `_search`

---

<div class="post-metadata">

**Author:** ![Didier](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@Didier](https://discuss.elastic.co/u/Didier)\
**Post date:** [October 27, 2015, 2:53pm UTC](https://discuss.elastic.co/t/illegalargumentexception-error/33024/5 "2015-10-27T14:53:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 27, 2015, 3:39pm UTC](https://discuss.elastic.co/t/illegalargumentexception-error/33024/6 "2015-10-27T15:39:19Z")

</div>

What is this JSON interface?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 11:42pm UTC](https://discuss.elastic.co/t/illegalargumentexception-error/33024/7 "2017-07-05T23:42:24Z")

</div>


