# Issue with implement proxy in elasticsearch/kibana

**URL:** https://discuss.elastic.co/t/issue-with-implement-proxy-in-elasticsearch-kibana/315452
**Category:** Elasticsearch
**Created:** [September 29, 2022, 12:41pm UTC](https://discuss.elastic.co/t/issue-with-implement-proxy-in-elasticsearch-kibana/315452 "2022-09-29T12:41:23Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![lgriger](https://avatars.discourse-cdn.com/v4/letter/l/8c91f0/32.png) [@lgriger](https://discuss.elastic.co/u/lgriger)
#### Post date: [September 29, 2022, 12:41pm UTC](https://discuss.elastic.co/t/issue-with-implement-proxy-in-elasticsearch-kibana/315452/1 "2022-09-29T12:41:23Z")

</div>

elasticsearch config  
xpack.http.proxy.host: http://  
xpack.http.proxy.port: 8080  
xpack.http.proxy.scheme:http

kibana config  
xpack.fleet.registryProxyUrl: http://\<user:password@url\>  
xpack.actions.proxyUrl: http://\<user:password@url\>  
xpack.actions.proxyHeaders:  
Proxy-Authorization: "Basic "

watcher config:

```auto
{
  "trigger": {
    "schedule": {
      "interval": "1m"
    }
  },
  "input": {
    "search": {
      "request": {
        "search_type": "query_then_fetch",
        "indices": [
          "*"
        ],
        "rest_total_hits_as_int": true,
        "body": {
          "size": 0,
          "query": {
            "match_all": {}
          }
        }
      }
    }
  },
  "condition": {
    "compare": {
      "ctx.payload.hits.total": {
        "gte": 10
      }
    }
  },
  "actions": {
    "my_action_test_proxy": {
      "webhook": {
        "scheme": "https",
        "host": "monlytest.eu",
        "port": 443,
        "method": "post",
        "path": "/monly-backend/v1/status",
        "params": {},
        "headers": {
          "Content-Type": "text/html"
        }
      }
    }
  }
}

```

watcher output:  
"condition": { "type": "compare", "status": "success", "met": true, "compare": { "resolved\_values": { "ctx.payload.hits.total": 1004 } } }, "actions": [{ "id": "my\_action\_test\_proxy", "type": "webhook", "status": "failure", "error": { "root\_cause": [ { "type": "unknown\_host\_exception", "reason": ": Name or service not known" }], "type": "unknown\_host\_exception", "reason": ": Name or service not known" } } ] }, "messages": }

---

<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 27, 2022, 12:42pm UTC](https://discuss.elastic.co/t/issue-with-implement-proxy-in-elasticsearch-kibana/315452/2 "2022-10-27T12:42:18Z")

</div>

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