# Logstash to Azure IoT hub via http/https

**URL:** <https://discuss.elastic.co/t/logstash-to-azure-iot-hub-via-http-https/184648>\
**Category:** Logstash\
**Created:** [June 6, 2019, 6:43pm UTC](https://discuss.elastic.co/t/logstash-to-azure-iot-hub-via-http-https/184648 "2019-06-06T18:43:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kishorerv93](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kishorerv93/32/47194_2.png) [@kishorerv93](https://discuss.elastic.co/u/kishorerv93)\
**Post date:** [June 6, 2019, 6:43pm UTC](https://discuss.elastic.co/t/logstash-to-azure-iot-hub-via-http-https/184648/1 "2019-06-06T18:43:56Z")

</div>

Any one using IoT hub as an output in logstash. I know that there is a plugin `logstash-output-iothub` plugin to leverage logstash to ship to IoT hub.

```auto
output {
  iothub {
    connection_string => "{set your iot hub connection string}"
  }
}

```

This by default connect to 8883 port.

8883 is blocked in our firewalls, and i wanted to use port 443.

How to leverage this communication using https ?

Can i use something like this ?

```auto
output {
  iothub {
    connection_string => "{https://set your iot hub connection string}"
  }
}

```

---

<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:** [July 4, 2019, 6:44pm UTC](https://discuss.elastic.co/t/logstash-to-azure-iot-hub-via-http-https/184648/2 "2019-07-04T18:44:05Z")

</div>

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