PostMan query vs Kibana Query

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": []
}
}

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?

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

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