Skip to content

Commit

Permalink
Create registry key for collector service events (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreyc-splunk authored Mar 24, 2021
1 parent fd232a1 commit f2d0c18
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<File Id="ExecutableFile" Name="otelcol.exe" KeyPath="yes" Source="$(var.Otelcol)"/>
<!-- Install the collector service with the config file in ProgramData -->
<ServiceInstall
Id="Sevice"
Id="Service"
Name="splunk-otel-collector"
DisplayName="Splunk OpenTelemetry Collector"
Description="Splunk OpenTelemetry Collector"
Expand All @@ -36,6 +36,9 @@
Stop="both"
Remove="uninstall"
Wait="yes" />
<RegistryKey Root="HKLM" Key="SYSTEM\CurrentControlSet\Services\EventLog\Application\splunk-otel-collector">
<RegistryValue Type="expandable" Name="EventMessageFile" Value="%SystemRoot%\System32\EventCreate.exe"/>
</RegistryKey>
</Component>
</Directory>
</Directory>
Expand Down

0 comments on commit f2d0c18

Please sign in to comment.