I am trying to connect to an OPC-UA Server, but without success. When I try to connect via (string) Hostname, I get an 'cannot find suitable endpoint' error:
PS C:\machinebeat\colvistec> .\machinebeat.exe -e -c machinebeat.yml -d "*"
2019-12-16T08:54:49.539+0100 INFO instance/beat.go:606 Home path: [C:\machinebeat\colvistec] Config path: [C:\machinebeat\colvistec] Data path: [C:\machinebeat\colvistec\data] Logs path: [C:\machinebeat\colvistec\logs]
2019-12-16T08:54:49.542+0100 DEBUG [beat] instance/beat.go:658 Beat metadata path: C:\machinebeat\colvistec\data\meta.json
2019-12-16T08:54:49.544+0100 INFO instance/beat.go:614 Beat ID: 4db98739-3d2b-4be2-bc75-0449e2469e59
2019-12-16T08:54:49.819+0100 DEBUG [filters] add_cloud_metadata/add_cloud_metadata.go:164 add_cloud_metadata: starting to fetch metadata, timeout=3s
2019-12-16T08:54:49.911+0100 DEBUG [filters] add_cloud_metadata/add_cloud_metadata.go:196 add_cloud_metadata: received disposition for qcloud after 85.1225ms. result=[provider:qcloud, error=failed requesting qcloud metadata: Get http://metadata.tencentyun.com/meta-data/placement/zone: dial tcp: lookup metadata.tencentyun.com: no such host, metadata={}]
2019-12-16T08:54:49.993+0100 DEBUG [filters] add_cloud_metadata/add_cloud_metadata.go:196 add_cloud_metadata: received disposition for ecs after 166.8587ms. result=[provider:ecs, error=failed with http status code 401, metadata={}]
2019-12-16T08:54:52.833+0100 DEBUG [filters] add_cloud_metadata/add_cloud_metadata.go:196 add_cloud_metadata: received disposition for digitalocean after 3.0063162s. result=[provider:digitalocean, error=failed requesting digitalocean metadata: Get http://169.254.169.254/metadata/v1.json: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers), metadata={}]
2019-12-16T08:54:52.834+0100 DEBUG [filters] add_cloud_metadata/add_cloud_metadata.go:203 add_cloud_metadata: timed-out waiting for all responses
2019-12-16T08:54:52.834+0100 DEBUG [filters] add_cloud_metadata/add_cloud_metadata.go:167 add_cloud_metadata: fetchMetadata ran for 3.0073111s
2019-12-16T08:54:52.834+0100 INFO add_cloud_metadata/add_cloud_metadata.go:347 add_cloud_metadata: hosting provider type not detected.
2019-12-16T08:54:52.835+0100 DEBUG [processors] processors/processor.go:101 Generated new processors: add_host_metadata=[netinfo.enabled=[false], cache.ttl=[5m0s]], add_cloud_metadata=null
2019-12-16T08:54:52.838+0100 DEBUG [seccomp] seccomp/seccomp.go:96 Syscall filtering is only supported on Linux
2019-12-16T08:54:52.839+0100 INFO [beat] instance/beat.go:902 Beat info {"system_info": {"beat": {"path": {"config": "C:\\machinebeat\\colvistec", "data": "C:\\machinebeat\\colvistec\\data", "home": "C:\\machinebeat\\colvistec", "logs": "C:\\machinebeat\\colvistec\\logs"}, "type": "machinebeat", "uuid": "4db98739-3d2b-4be2-bc75-0449e2469e59"}}}
2019-12-16T08:54:52.844+0100 INFO [beat] instance/beat.go:911 Build info {"system_info": {"build": {"commit": "unknown", "libbeat": "8.0.0", "time": "1754-08-30T22:43:41.128Z", "version": "8.0.0"}}}
2019-12-16T08:54:52.907+0100 INFO [beat] instance/beat.go:914 Go runtime info {"system_info": {"go": {"os":"windows","arch":"amd64","max_procs":2,"version":"go1.12.4"}}}
2019-12-16T08:54:52.914+0100 INFO [beat] instance/beat.go:918 Host info {"system_info": {"host": {"architecture":"x86_64","boot_time":"2019-04-01T08:47:25.03+02:00","name":"myBeat","ip":["fe80::b878:f783:db9:a3df/64","172.30.1.115/16","::1/128","127.0.0.1/8","fe80::5efe:ac1e:173/128"],"kernel_version":"6.3.9600.19153 (winblue_ltsb.180908-0600)","mac":["00:50:56:91:07:1c","00:00:00:00:00:00:00:e0"],"os":{"family":"windows","platform":"windows","name":"Windows Server 2012 R2 Datacenter","version":"6.3","major":3,"minor":0,"patch":0,"build":"9600.19155"},"timezone":"CET","timezone_offset_sec":3600,"id":"3a43f2c3-68d2-47b0-bd20-bbc5831cf6c0"}}}
2019-12-16T08:54:52.919+0100 INFO [beat] instance/beat.go:947 Process info {"system_info": {"process": {"cwd": "C:\\machinebeat\\colvistec", "exe": "C:\\machinebeat\\colvistec\\machinebeat.exe", "name": "machinebeat.exe", "pid": 79688, "ppid": 22244, "start_time": "2019-12-16T08:54:47.800+0100"}}}
2019-12-16T08:54:52.920+0100 INFO instance/beat.go:292 Setup Beat: machinebeat; Version: 8.0.0
2019-12-16T08:54:52.921+0100 DEBUG [beat] instance/beat.go:318 Initializing output plugins
2019-12-16T08:54:52.922+0100 INFO [index-management] idxmgmt/std.go:178 Set output.elasticsearch.index to 'machinebeat-8.0.0' as ILM is enabled.
2019-12-16T08:54:52.923+0100 INFO elasticsearch/client.go:170 Elasticsearch url: http://svrehelk01.rehau.org:9200
2019-12-16T08:54:52.927+0100 DEBUG [publisher] pipeline/consumer.go:137 start pipeline event consumer
2019-12-16T08:54:52.928+0100 INFO [publisher] pipeline/module.go:97 Beat name: myBeat
2019-12-16T08:54:52.929+0100 DEBUG [modules] beater/metricbeat.go:121 Available modules and metricsets: Register [ModuleFactory:[beat, docker, elasticsearch, kibana, logstash, mongodb, mysql, postgresql, system, uwsgi, windows], MetricSetFactory:[aerospike/namespace, apache/status, beat/state, beat/stats, ceph/cluster_disk, ceph/cluster_health, ceph/cluster_status, ceph/monitor_health, ceph/osd_df, ceph/osd_tree, ceph/pool_disk, consul/agent, couchbase/bucket, couchbase/cluster, couchbase/node, couchdb/server, docker/container, docker/cpu, docker/diskio, docker/event, docker/healthcheck, docker/image, docker/info, docker/memory, docker/network, dropwizard/collector, elasticsearch/ccr, elasticsearch/cluster_stats, elasticsearch/index, elasticsearch/index_recovery, elasticsearch/index_summary, elasticsearch/ml_job, elasticsearch/node, elasticsearch/node_stats, elasticsearch/pending_tasks, elasticsearch/shard, envoyproxy/server, etcd/leader, etcd/metrics, etcd/self, etcd/store, golang/expvar, golang/heap, graphite/server, haproxy/info, haproxy/stat, http/json, http/server, jolokia/jmx, kafka/consumergroup, kafka/partition, kibana/stats, kibana/status, kubernetes/apiserver, kubernetes/container, kubernetes/controllermanager, kubernetes/event, kubernetes/node, kubernetes/pod, kubernetes/proxy, kubernetes/scheduler, kubernetes/state_container, kubernetes/state_deployment, kubernetes/state_node, kubernetes/state_pod, kubernetes/state_replicaset, kubernetes/state_statefulset, kubernetes/system, kubernetes/volume, kvm/dommemstat, logstash/node, logstash/node_stats, memcached/stats, mongodb/collstats, mongodb/dbstats, mongodb/metrics, mongodb/replstatus, mongodb/status, mqtt/topic, munin/node, mysql/galera_status, mysql/status, nats/connections, nats/routes, nats/stats, nats/subscriptions, nginx/stubstatus, opcua/nodevalue, php_fpm/pool, php_fpm/process, postgresql/activity, postgresql/bgwriter, postgresql/database, postgresql/statement, prometheus/collector, rabbitmq/connection, rabbitmq/exchange, rabbitmq/node, rabbitmq/queue, redis/info, redis/key, redis/keyspace, system/core, system/cpu, system/diskio, system/filesystem, system/fsstat, system/memory, system/network, system/process, system/process_summary, system/raid, system/socket_summary, system/uptime, traefik/health, uwsgi/status, vsphere/datastore, vsphere/host, vsphere/virtualmachine, windows/perfmon, windows/service, zookeeper/connection, zookeeper/mntr, zookeeper/server]]
2019-12-16T08:54:52.936+0100 INFO [monitoring] log/log.go:118 Starting metrics logging every 30s
2019-12-16T08:54:52.936+0100 INFO instance/beat.go:421 machinebeat start running.
2019-12-16T08:54:52.936+0100 DEBUG [service] service/service_windows.go:72 Windows is interactive: true
2019-12-16T08:54:52.938+0100 DEBUG [cfgfile] cfgfile/reload.go:133 Checking module configs from: C:\machinebeat\colvistec/modules.d/colvistec.yml
2019-12-16T08:54:52.941+0100 DEBUG [cfgfile] cfgfile/cfgfile.go:175 Load config from file: C:\machinebeat\colvistec/modules.d/colvistec.yml
2019-12-16T08:54:52.943+0100 DEBUG [cfgfile] cfgfile/reload.go:147 Number of module configs found: 1
2019-12-16T08:54:52.944+0100 WARN [cfgwarn] nodevalue/nodevalue.go:71 BETA: The OPCUA metricset is beta.
2019-12-16T08:54:52.947+0100 INFO nodevalue/client.go:41 [OPCUA] Get all endpoints from opc.tcp://Colvistec-PC:59595
2019-12-16T08:54:56.226+0100 ERROR nodevalue/nodevalue.go:119 Tried to connect to OPC UA server 1 time(s). Without success.
2019-12-16T08:54:56.270+0100 INFO [monitoring] log/log.go:153 Total non-zero metrics {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":234,"time":{"ms":234}},"total":{"ticks":296,"time":{"ms":296},"value":296},"user":{"ticks":62,"time":{"ms":62}}},"handles":{"open":266},"info":{"ephemeral_id":"3fbd4a42-90b0-46ec-88d4-db62914d11e9","uptime":{"ms":7768}},"memstats":{"gc_next":4194304,"memory_alloc":3230760,"memory_total":4780720,"rss":27131904},"runtime":{"goroutines":16}},"libbeat":{"config":{"module":{"running":0}},"output":{"type":"elasticsearch"},"pipeline":{"clients":0,"events":{"active":0}}},"system":{"cpu":{"cores":2}}}}}
2019-12-16T08:54:56.273+0100 INFO [monitoring] log/log.go:154 Uptime: 7.8114225s
2019-12-16T08:54:56.273+0100 INFO [monitoring] log/log.go:131 Stopping metrics logging.
2019-12-16T08:54:56.274+0100 INFO instance/beat.go:431 machinebeat stopped.
2019-12-16T08:54:56.275+0100 ERROR instance/beat.go:877 Exiting: 1 error: [OPCUA] Failed to find suitable endpoint
Exiting: 1 error: [OPCUA] Failed to find suitable endpoint
PS C:\machinebeat\MyMachine> .\machinebeat.exe -e -c machinebeat.yml -d "*"
2019-12-16T08:55:10.389+0100 INFO instance/beat.go:606 Home path: [C:\machinebeat\MyMachine] Config path: [C:\machinebeat\MyMachine] Data path: [C:\machinebeat\MyMachine\data] Logs path: [C:\machinebeat\MyMachine\logs]
2019-12-16T08:55:10.392+0100 DEBUG [beat] instance/beat.go:658 Beat metadata path: C:\machinebeat\MyMachine\data\meta.json
2019-12-16T08:55:10.394+0100 INFO instance/beat.go:614 Beat ID: 4db98739-3d2b-4be2-bc75-0449e2469e59
2019-12-16T08:55:10.412+0100 DEBUG [filters] add_cloud_metadata/add_cloud_metadata.go:164 add_cloud_metada
ta: starting to fetch metadata, timeout=3s
2019-12-16T08:55:10.420+0100 DEBUG [filters] add_cloud_metadata/add_cloud_metadata.go:196 add_cloud_metadata: received disposition for qcloud after 7.3431ms. result=[provider:qcloud, error=failed requesting qcloud metadata: Get http://metadata.tencentyun.com/meta-data/instance-id: dial tcp: lookup metadata.tencentyun.com: no such host, metadata={}]
2019-12-16T08:55:10.499+0100 DEBUG [filters] add_cloud_metadata/add_cloud_metadata.go:196 add_cloud_metadata: received disposition for ecs after 85.9353ms. result=[provider:ecs, error=failed with http status code 401, metadata={}]
2019-12-16T08:55:13.416+0100 DEBUG [filters] add_cloud_metadata/add_cloud_metadata.go:203 add_cloud_metadata: timed-out waiting for all responses
2019-12-16T08:55:13.418+0100 DEBUG [filters] add_cloud_metadata/add_cloud_metadata.go:167 add_cloud_metadata: fetchMetadata ran for 3.004532s
2019-12-16T08:55:13.418+0100 INFO add_cloud_metadata/add_cloud_metadata.go:347 add_cloud_metadata: hosting provider type not detected.
2019-12-16T08:55:13.418+0100 DEBUG [processors] processors/processor.go:101 Generated new processors: add_host_metadata=[netinfo.enabled=[false], cache.ttl=[5m0s]], add_cloud_metadata=null
2019-12-16T08:55:13.420+0100 DEBUG [seccomp] seccomp/seccomp.go:96 Syscall filtering is only supported on Linux2019-12-16T08:55:13.422+0100 INFO [beat] instance/beat.go:902 Beat info {"system_info": {"beat": {"path": {"config": "C:\\machinebeat\\MyMachine", "data": "C:\\machinebeat\\MyMachine\\data", "home": "C:\\machinebeat\\MyMachine", "logs": "C:\\machinebeat\\MyMachine\\logs"}, "type": "machinebeat", "uuid": "4db98739-3d2b-4be2-bc75-0449e2469e59"}}}
2019-12-16T08:55:13.425+0100 INFO [beat] instance/beat.go:911 Build info {"system_info": {"build": {"commit": "unknown", "libbeat": "8.0.0", "time": "1754-08-30T22:43:41.128Z", "version": "8.0.0"}}}
2019-12-16T08:55:13.427+0100 INFO [beat] instance/beat.go:914 Go runtime info {"system_info": {"go": {"os":"windows","arch":"amd64","max_procs":2,"version":"go1.12.4"}}}
2019-12-16T08:55:13.442+0100 INFO [beat] instance/beat.go:918 Host info {"system_info": {"host": {"architecture":"x86_64","boot_time":"2019-04-01T08:47:25.02+02:00","name":"myBeat","ip":[","fe80::5efe:ac1e:173/128"],"kernel_version":"6.3.9600.19153 (winblue_ltsb.180908-0600)","mac":["00:50:56:91:07:1c","00:00:00:00:00:00:00:e0"],"os":{"family":"windows","platform":"windows","name":"Windows Server 2012 R2 Datacenter","version":"6.3","major":3,"minor":0,"patch":0,"build":"9600.19155"},"timezone":"CET","timezone_offset_sec":3600,"id":"3a43f2c3-68d2-47b0-bd20-bbc5831cf6c0"}}}
2019-12-16T08:55:13.446+0100 INFO [beat] instance/beat.go:947 Process info {"system_info": {"process": {"cwd": "C:\\machinebeat\\MyMachine", "exe": "C:\\machinebeat\\MyMachine\\machinebeat.exe", "name": "machinebeat.exe", "pid": 67832, "ppid": 22244, "start_time": "2019-12-16T08:55:09.458+0100"}}}
2019-12-16T08:55:13.450+0100 INFO instance/beat.go:292 Setup Beat: machinebeat; Version: 8.0.0
2019-12-16T08:55:13.451+0100 DEBUG [beat] instance/beat.go:318 Initializing output plugins
2019-12-16T08:55:13.453+0100 INFO [index-management] idxmgmt/std.go:178 Set output.elasticsearch.index to 'machinebeat-8.0.0' as ILM is enabled.
2019-12-16T08:55:13.457+0100 INFO elasticsearch/client.go:170 Elasticsearch url: http://myElasticStack:9200
2019-12-16T08:55:13.458+0100 DEBUG [publisher] pipeline/consumer.go:137 start pipeline event consumer
2019-12-16T08:55:13.458+0100 INFO [publisher] pipeline/module.go:97 Beat name: myBeat
2019-12-16T08:55:13.460+0100 DEBUG [modules] beater/metricbeat.go:121 Available modules and metricsets: Register [ModuleFactory:[beat, docker, elasticsearch, kibana, logstash, mongodb, mysql, postgresql, system, uwsgi, windows], MetricSetFactory:[aerospike/namespace, apache/status, beat/state, beat/stats, ceph/cluster_disk, ceph/cluster_health, ceph/cluster_status, ceph/monitor_health, ceph/osd_df, ceph/osd_tree, ceph/pool_disk, consul/agent, couchbase/bucket, couchbase/cluster, couchbase/node, couchdb/server, docker/container, docker/cpu, docker/diskio, docker/event, docker/healthcheck, docker/image, docker/info, docker/memory, docker/network, dropwizard/collector, elasticsearch/ccr, elasticsearch/cluster_stats, elasticsearch/index, elasticsearch/index_recovery, elasticsearch/index_summary, elasticsearch/ml_job, elasticsearch/node, elasticsearch/node_stats, elasticsearch/pending_tasks, elasticsearch/shard, envoyproxy/server, etcd/leader, etcd/metrics, etcd/self, etcd/store, golang/expvar, golang/heap, graphite/server, haproxy/info, haproxy/stat, http/json, http/server, jolokia/jmx, kafka/consumergroup, kafka/partition, kibana/stats, kibana/status, kubernetes/apiserver, kubernetes/container, kubernetes/controllermanager, kubernetes/event, kubernetes/node, kubernetes/pod, kubernetes/proxy, kubernetes/scheduler, kubernetes/state_container, kubernetes/state_deployment, kubernetes/state_node, kubernetes/state_pod, kubernetes/state_replicaset, kubernetes/state_statefulset, kubernetes/system, kubernetes/volume, kvm/dommemstat, logstash/node, logstash/node_stats, memcached/stats, mongodb/collstats, mongodb/dbstats, mongodb/metrics, mongodb/replstatus, mongodb/status, mqtt/topic, munin/node, mysql/galera_status, mysql/status, nats/connections, nats/routes, nats/stats, nats/subscriptions, nginx/stubstatus, opcua/nodevalue, php_fpm/pool, php_fpm/process, postgresql/activity, postgresql/bgwriter, postgresql/database, postgresql/statement, prometheus/collector, rabbitmq/connection, rabbitmq/exchange, rabbitmq/node, rabbitmq/queue, redis/info, redis/key, redis/keyspace, system/core, system/cpu, system/diskio, system/filesystem, system/fsstat, system/memory, system/network, system/process, system/process_summary, system/raid, system/socket_summary, system/uptime, traefik/health, uwsgi/status, vsphere/datastore, vsphere/host, vsphere/virtualmachine, windows/perfmon, windows/service, zookeeper/connection, zookeeper/mntr, zookeeper/server]]
2019-12-16T08:55:13.470+0100 INFO instance/beat.go:421 machinebeat start running.
2019-12-16T08:55:13.470+0100 INFO [monitoring] log/log.go:118 Starting metrics logging every 30s
2019-12-16T08:55:13.470+0100 DEBUG [service] service/service_windows.go:72 Windows is interactive: true
2019-12-16T08:55:13.472+0100 DEBUG [cfgfile] cfgfile/reload.go:133 Checking module configs from: C:\machinebeat\MyMachine/modules.d/MyMachine.yml
2019-12-16T08:55:13.479+0100 DEBUG [cfgfile] cfgfile/cfgfile.go:175 Load config from file: C:\machinebeat\MyMachine/modules.d/MyMachine.yml
2019-12-16T08:55:13.482+0100 DEBUG [cfgfile] cfgfile/reload.go:147 Number of module configs found: 1
2019-12-16T08:55:13.483+0100 WARN [cfgwarn] nodevalue/nodevalue.go:71 BETA: The OPCUA metricset is beta.
2019-12-16T08:55:13.484+0100 INFO nodevalue/client.go:41 [OPCUA] Get all endpoints from opc.tcp://1.2.3.4:59595
2019-12-16T08:55:13.512+0100 INFO nodevalue/client.go:52 [OPCUA] Policy URI: http://opcfoundation.org/UA/SecurityPolicy#None with security mode MessageSecurityModeNone
2019-12-16T08:55:13.514+0100 INFO nodevalue/client.go:63 User:
2019-12-16T08:55:13.515+0100 INFO nodevalue/client.go:68 [OPCUA] Set to anonymous login
2019-12-16T08:55:16.783+0100 ERROR nodevalue/nodevalue.go:119 Tried to connect to OPC UA server 1 time(s). Without success.
2019-12-16T08:55:16.786+0100 INFO [monitoring] log/log.go:153 Total non-zero metrics {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":62,"time":{"ms":62}},"total":{"ticks":155,"time":{"ms":155},"value":155},"user":{"ticks":93,"time":{"ms":93}}},"handles":{"open":265},"info":{"ephemeral_id":"07ded5b5-b36b-4fef-ae73-4d598c546602","uptime":{"ms":7297}},"memstats":{"gc_next":4769760,"memory_alloc":2479048,"memory_total":5119048,"rss":27840512},"runtime":{"goroutines":16}},"libbeat":{"config":{"module":{"running":0}},"output":{"type":"elasticsearch"},"pipeline":{"clients":0,"events":{"active":0}}},"system":{"cpu":{"cores":2}}}}}
2019-12-16T08:55:16.788+0100 INFO [monitoring] log/log.go:154 Uptime: 7.301856s
2019-12-16T08:55:16.788+0100 INFO [monitoring] log/log.go:131 Stopping metrics logging.
2019-12-16T08:55:16.789+0100 INFO instance/beat.go:431 machinebeat stopped.
2019-12-16T08:55:16.791+0100 ERROR instance/beat.go:877 Exiting: 1 error: could not resolve address MyMachine-PC:59595
Exiting: 1 error: could not resolve address MyMachine-PC:59595
and the node settings with IDs and labels.
Via UaExpert the connection is successful. Is this an issue or a config problem?