# Read data from OPC-UA Server

**URL:** <https://discuss.elastic.co/t/read-data-from-opc-ua-server/77619>\
**Category:** Logstash\
**Created:** [March 7, 2017, 9:04am UTC](https://discuss.elastic.co/t/read-data-from-opc-ua-server/77619 "2017-03-07T09:04:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sasauz](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@sasauz](https://discuss.elastic.co/u/sasauz)\
**Post date:** [March 7, 2017, 9:04am UTC](https://discuss.elastic.co/t/read-data-from-opc-ua-server/77619/1 "2017-03-07T09:04:54Z")

</div>

Hello everyone,

I'm trying to read data from an OPC-UA Server. OPC-UA communicates via TCP and my hope was that it would work with the standard TCP-plugin, but it doesn't

```
input {
    tcp {
       host => "localhost"
       port => 48030
       codec => line
       mode => "client"
    }
}
output {
    stdout{
        codec=>rubydebug
    }
}

```

Any idea how I can read data from OPC-UA Server?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [March 9, 2017, 12:34pm UTC](https://discuss.elastic.co/t/read-data-from-opc-ua-server/77619/2 "2017-03-09T12:34:21Z")

</div>

I don't know OPC UA, but I'd assume that it doesn't send data to anyone that connects but expects to receive commands. The tcp input doesn't support that. You'll probably have to write a custom input plugin for this.

---

<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:** [April 6, 2017, 12:34pm UTC](https://discuss.elastic.co/t/read-data-from-opc-ua-server/77619/3 "2017-04-06T12:34:39Z")

</div>

Closed on April 6, 2017, 12:34pm UTC

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