Hi
I'm trying to use curl to pull data from my indices however the Dev Tools console in Kibana does not provide the correct hostname when I use the "Copy as cURL" option.
I can set up a search in Kibana Dev Tools like so:
POST ens-status-*/_search
{
"query": {
"bool": {
"should": [
{
"match_phrase": {
"customerId": "TESCO"
}
}
],
"minimum_should_match": 1,
"filter": {
"range": {
"@timestamp": {
"from": "now-30m",
"to": "now"
}
}
}
}
}
}
And this works absolutely fine and provides the data I need. However, when I then select the spanner (wrench) symbol and choose the Copy as cURL option, it provides me a curl command as follows, which seems to reference a container host, rather than a real host that resolves correctly:
curl -XPOST "http://73b15f5b7bb104552a4beeb41bd3a9bb5ec.containerhost:9244/ens-status-*/_search" -H 'Content-Type: application/json' -d'
{
"query": {
"bool": {
"should": [
{
"match_phrase": {
"customerId": "TESCO"
}
}
],
"minimum_should_match": 1,
"filter": {
"range": {
"@timestamp": {
"from": "now-30m",
"to": "now"
}
}
}
}
}
}'
Any ideas why this is the case?
Thanks in advance
Ian Jarvis