Configure Splunk Edge Hub OS to connect to an OPC server
To collect metrics from hardware that uses the OPC Unified Architecture (OPC-UA) protocol, configure Splunk Edge Hub to connect to the OPC servers that you want to get data from.
OPC server data uses the edge_hub_logs index and splunk_edge_hub_opcua sourcetype
.
Prerequisites and requirements
Complete the following requirements and prerequisites before configuring Splunk Edge Hub OS to support OPC-UA.
Requirements
Your organization is using hardware that supports the OPC-UA protocol and you're using Splunk Edge Hub version or 4.1.3 or higher.
Prerequisites
Register your Splunk Edge Hub device and launch the Edge Hub Advanced Settings page.
- Register your Splunk Edge Hub device. See Register or unregister your Splunk Edge Hub.
- Create an index for OPC-UA data. See Create indexes for Splunk Edge Hub OS.
- Complete the steps at Access the Edge Hub Advanced Setting' page.
Steps
In the Edge Hub Advanced Settings page, complete the following steps:
- Navigate to the OPC-UA tab.
- Enter the OPC server name that you want to collect data from.
- Enter the server URL.
- Select the security mode:
- Select None if you're not using a certificate.
- (Optional) To use a certificate, select Sign and Encrypt.
- Select a security policy.
- In your OPC-UA server, accept the Splunk Edge Hub certificate.
- Configure the connection details. Select Anonymous or Username and password.
Anonymous doesn't require authentication. Username and password prompts you to enter your OPC-UA server credentials. - Select Next. The Edge Hub Advanced Settings page verifies the OPC-UA connection.
- Select the metric sources you want to collect data from. You can browse or search for a metric source. The Splunk Edge Hub OS sends data from selected tags that have a
Value
attribute. - Select Next.
- Configure the publishing interval for data updates. Splunk Edge Hub OS gathers data using a Data Change Subscription on the OPC server.
- Select Next to complete the configuration.
View data from the OPC server in Splunk Web
In the Search and Reporting app, run the following search to view data from the OPC server:
index="edge-hub-logs" sourcetype=splunk_edge_hub_opcua
Download your OPC configuration and upload it to another Splunk Edge Hub device
After completing a OPC configuration for external sensors, you can download a configuration file to use it with other Splunk Edge Hub devices. Update the configuration file to replace values that are applicable to other Splunk Edge Hub devices.
Downloading and uploading a configuration file means you don't have to repeat the configuration steps again for multiple Splunk Edge Hub devices.
See Download a configuration file and upload it to another Splunk Edge Hub device to download and upload a configuration file to other Splunk Edge Hub devices.
Collect and organize managed IP device information using the SNMP protocol | Configure HTTPS for the Edge Hub Advanced Settings page server |
This documentation applies to the following versions of Splunk® Edge Hub OS: 1.5.0, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.9.0, 2.0.0
Feedback submitted, thanks!