# Logstash plc4x Input Plugin output to Elastic not Working

**URL:** <https://discuss.elastic.co/t/logstash-plc4x-input-plugin-output-to-elastic-not-working/231677>\
**Category:** Logstash\
**Created:** [May 8, 2020, 8:33am UTC](https://discuss.elastic.co/t/logstash-plc4x-input-plugin-output-to-elastic-not-working/231677 "2020-05-08T08:33:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![baltweck](https://avatars.discourse-cdn.com/v4/letter/b/d78d45/32.png) [@baltweck](https://discuss.elastic.co/u/baltweck)\
**Post date:** [May 8, 2020, 8:33am UTC](https://discuss.elastic.co/t/logstash-plc4x-input-plugin-output-to-elastic-not-working/231677/1 "2020-05-08T08:33:11Z")

</div>

Iam Using the apache plc4x logstash plugin, as far as i see in logstash debug output my job will be polled and the opc ua namespaces seems to be right for my plc.

I dont get a Index into Elasticsearch, OPC UA Server is running, I can query nodes with any ua browser.

here my config:

```auto
input {
        plc4x {

                sources => {
                        plc1 => "opcua:tcp://br-automation.ksnav.local:4840"
                           }
                jobs => {
                        job1 => {
                                rate => 50
                                sources => ["plc1"]
                                queries => {
                                        DriveCmd => "ns=6;s=::AsGlobalPV:IF_Stacker.Read.DriveCmd"
                                        CargoPosA => "ns=6;s=::AsGlobalPV:IF_Stacker.Read.CargoPosition.Pos_A"
                                }
                        }
                }
        }
}

filter{}

output {

  elasticsearch {
    hosts =>["localhost"]
    index => "plc4x"

  }
  stdout { codec => rubydebug }
}

```

if i change the opc query string to something invalid, i get exeptions in the debug output.

May can anyone help me? 😉

thanks

---

<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:** [June 5, 2020, 8:33am UTC](https://discuss.elastic.co/t/logstash-plc4x-input-plugin-output-to-elastic-not-working/231677/2 "2020-06-05T08:33:18Z")

</div>

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