# PostMan query vs Kibana Query

**URL:** <https://discuss.elastic.co/t/postman-query-vs-kibana-query/128613>\
**Category:** Elasticsearch\
**Created:** [April 19, 2018, 1:27am UTC](https://discuss.elastic.co/t/postman-query-vs-kibana-query/128613 "2018-04-19T01:27:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![naveenchitluri](https://avatars.discourse-cdn.com/v4/letter/n/ee7513/32.png) [@naveenchitluri](https://discuss.elastic.co/u/naveenchitluri)\
**Post date:** [April 19, 2018, 1:27am UTC](https://discuss.elastic.co/t/postman-query-vs-kibana-query/128613/1 "2018-04-19T01:27:49Z")

</div>

Hi  
I am trying to call RESTful service by sending "POST" request to the following URL using postman...please see the request and response below.  
The response has no results returned...but when I try same query in Kibana, it returns with results.

No idea whats going on? What am I missing.

URL : http://:9200//\_search  
Method: POST

` **Request:** `

{  
"query": {  
"bool": {  
"must": [  
{  
"query\_string": {  
"query": "logmsg: "ZDMNS9T240"",  
"analyze\_wildcard": true  
}  
}, {  
"range": {  
"@timestamp": {  
"gte": 1523988363773,  
"lte": 1524002763773,  
"format": "epoch\_millis"  
}  
}  
}  
]  
}  
}  
}

**`Response:`**  
{  
"took": 0,  
"timed\_out": false,  
"\_shards": {  
"total": 0,  
"successful": 0,  
"failed": 0  
},  
"hits": {  
"total": 0,  
"max\_score": 0,  
"hits": []  
}  
}

---

<div class="post-metadata">

**Author:** ![forloop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/forloop/32/9021_2.png) [@forloop](https://discuss.elastic.co/u/forloop)\
**Post date:** [April 19, 2018, 8:07am UTC](https://discuss.elastic.co/t/postman-query-vs-kibana-query/128613/2 "2018-04-19T08:07:45Z")

</div>

> [@naveenchitluri](#):
>
> http://:9200//\_search

The URI has a port but no host. Is this a copy-paste error?

Have you tried copying the exact query from Kibana and putting into Postman?

---

<div class="post-metadata">

**Author:** ![naveenchitluri](https://avatars.discourse-cdn.com/v4/letter/n/ee7513/32.png) [@naveenchitluri](https://discuss.elastic.co/u/naveenchitluri)\
**Post date:** [April 20, 2018, 3:51am UTC](https://discuss.elastic.co/t/postman-query-vs-kibana-query/128613/3 "2018-04-20T03:51:36Z")

</div>

This was resolved.  
There was typo in the URL..used in my code.

---

<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:** [May 18, 2018, 3:52am UTC](https://discuss.elastic.co/t/postman-query-vs-kibana-query/128613/4 "2018-05-18T03:52:08Z")

</div>

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