Docs » Collect infrastructure metrics and logs » Collect Windows data

Collect Windows data 🔗

The Splunk OpenTelemetry Connector for Windows is a package that provides integrated collection/forwarding for all data types for Windows. You can deploy this connector in support of gathering data for Splunk Infrastructure Monitoring, Splunk APM, or Splunk Log Observer use cases.

This component may be packaged in several formats/installers as appropriate for the deployment scheme (for example, EXE and MSI).

Supported versions 🔗

The following Windows versions are supported and require PowerShell 3.0 or higher:

  • Windows Server 2012 64-bit

  • Windows Server 2016 64-bit

  • Windows Server 2019 64-bit

  • Windows 10 Home

  • Windows 10 Pro

Getting started 🔗

An installation script is available for deploying and configuring the OpenTelemetry Connector and TD Agent (Fluentd). By default, the Splunk OpenTelemetry Connector listens on for log events forwarded from Fluentd. See Configure the collector for information on changing the default Fluentd configuration.

In administrator mode, run the following PowerShell command on your host. Replace the following variables for your environment:

  • SPLUNK_REALM: Which realm to send the data to. For example, us0

  • SPLUNK_ACCESS_TOKEN: Access token to authenticate requests

& {Set-ExecutionPolicy Bypass -Scope Process -Force; $script = ((New-Object System.Net.WebClient).DownloadString('')); $params = @{access_token = "SPLUNK_ACCESS_TOKEN"; realm = "SPLUNK_REALM"}; Invoke-Command -ScriptBlock ([scriptblock]::Create(". {$script} $(&{$args} @params)"))}

You can view the source for more details and available configuration options.

In addition to using the installation script, you can also collect Windows metrics using Metrics.NET.SignalFx or StatsD.NET:

  • Metrics.NET.SignalFx reports metrics for the Metrics.NET framework to Splunk Infrastructure Monitoring. Use this library to instrument applications with custom metrics (timers, histograms, counters, and so on) that can be reported in various ways and can provide insights on what is happening inside a running application. The package is available by using NuGet, which is the package manager for.NET. See Metrics.NET.SignalFx in GitHub to configure this reporter.

  • Statsd.NET is a high-performance stats collection service based on etsy’s statsd service and written in Statsd.NET listens for stats messages on a UDP listener. Use this plugin to send metrics and dimensions to Infrastructure Monitoring. See in GitHub to configure this plugin.