# Elasticsearch Search REST API is not running

**URL:** <https://discuss.elastic.co/t/elasticsearch-search-rest-api-is-not-running/148387>\
**Category:** Elasticsearch\
**Created:** [September 12, 2018, 10:26pm UTC](https://discuss.elastic.co/t/elasticsearch-search-rest-api-is-not-running/148387 "2018-09-12T22:26:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shankarps](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shankarps/32/78663_2.png) [@shankarps](https://discuss.elastic.co/u/shankarps)\
**Post date:** [September 12, 2018, 10:26pm UTC](https://discuss.elastic.co/t/elasticsearch-search-rest-api-is-not-running/148387/1 "2018-09-12T22:26:11Z")

</div>

I have the free version of ELK installation running in a single server. I can search using Kibana at [http://my-server:5601/app/kibana](http://my-server:5601/app/kibana).

I can also access the REST API to see the list of indexes (curl request to [http://my-server:9200/\_cat/indices?v](http://my-server:9200/_cat/indices?v) works) . I can access the REST APIs for reindexing. (POST to [http://my-server:9200/\_reindex](http://my-server:9200/_reindex) works)

But the search API does not work. When I access the Search API [http://my-server:9200/\_search](http://my-server:9200/_search) by GET or POST I just get an error that the end point is not accessible.

Can anyone please tell me what the error here is? Is it possible that I need to enable a configuration to get the search API running? Thanks for reading.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 12, 2018, 10:58pm UTC](https://discuss.elastic.co/t/elasticsearch-search-rest-api-is-not-running/148387/2 "2018-09-12T22:58:49Z")

</div>

> [@shankarps](#):
>
> But the search API does not work. When I access the Search API [http://my-server:9200/\_search](http://my-server:9200/_search) by GET or POST I just get an error that the end point is not accessible.

Please post the request and the entire response.

---

<div class="post-metadata">

**Author:** ![shankarps](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shankarps/32/78663_2.png) [@shankarps](https://discuss.elastic.co/u/shankarps)\
**Post date:** [September 13, 2018, 1:16am UTC](https://discuss.elastic.co/t/elasticsearch-search-rest-api-is-not-running/148387/3 "2018-09-13T01:16:20Z")

</div>

I found the issue. It was a firewall problem. I was able to run this curl command on the server itself, and it gave me results.

```
curl --header "Content-Type:application/json" -XPOST "http://localhost:9200/_search" -d'
{
    "query": {
        "match_phrase": {
            "uriParams": "customCallback"
        }
    }
}'
```

---

<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:** [October 11, 2018, 1:21am UTC](https://discuss.elastic.co/t/elasticsearch-search-rest-api-is-not-running/148387/4 "2018-10-11T01:21:19Z")

</div>

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