<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Debugging perfmon input? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Debugging-perfmon-input/m-p/621602#M107049</link>
    <description>&lt;P&gt;Just to let you know - after some debugging (thx j.ho!) it turns out that my windows is "multilingual" somehow (even though I'm using an english GUI) and UF gets from the system non-english counter names and can't subscribe to them when&amp;nbsp;useEnglishOnly = true. If I set it to false (and give localized object and counter names), UF is able to pull the metrics.&lt;/P&gt;&lt;P&gt;To make things even more puzzling - windows' own perfmon.msc shows the objects and counters with english names.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Nov 2022 15:47:30 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2022-11-21T15:47:30Z</dc:date>
    <item>
      <title>Debugging perfmon input?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Debugging-perfmon-input/m-p/621539#M107042</link>
      <description>&lt;P&gt;Hello there.&lt;/P&gt;
&lt;P&gt;I tried to set up perfmon inputs to capture state of my windows 10 test box.&lt;/P&gt;
&lt;P&gt;Aaaaand. It's not working. And I have no idea how I can debug it further.&lt;/P&gt;
&lt;P&gt;The inputs seem to be defined properly (I don't understand why there are two identical definitions for perfmon://CPU and perfmon://Processor but while testing I tried running with just one perfmon input enabled and the result was the same so it's definitely not the result of overlapping inputs).&lt;/P&gt;
&lt;PRE&gt;PS C:\Program Files\SplunkUniversalForwarder\bin&amp;gt; .\splunk.exe btool inputs list perfmon://CPU&lt;BR /&gt;[perfmon://CPU]&lt;BR /&gt;counters = % Processor Time; % User Time; % Privileged Time; Interrupts/sec; % DPC Time; % Interrupt Time; DPCs Queued/sec; DPC Rate; % Idle Time; % C1 Time; % C2 Time; % C3 Time; C1 Transitions/sec; C2 Transitions/sec; C3 Transitions/sec&lt;BR /&gt;disabled = 0&lt;BR /&gt;host = dziura&lt;BR /&gt;index = winmetrics&lt;BR /&gt;instances = *&lt;BR /&gt;interval = 300&lt;BR /&gt;mode = multikv&lt;BR /&gt;object = Processor&lt;BR /&gt;useEnglishOnly = true&lt;BR /&gt;PS C:\Program Files\SplunkUniversalForwarder\bin&amp;gt; .\splunk.exe btool inputs list perfmon://Process&lt;BR /&gt;[perfmon://Process]&lt;BR /&gt;counters = % Processor Time; % User Time; % Privileged Time; Virtual Bytes Peak; Virtual Bytes; Page Faults/sec; Working Set Peak; Working Set; Page File Bytes Peak; Page File Bytes; Private Bytes; Thread Count; Priority Base; Elapsed Time; ID Process; Creating Process ID; Pool Paged Bytes; Pool Nonpaged Bytes; Handle Count; IO Read Operations/sec; IO Write Operations/sec; IO Data Operations/sec; IO Other Operations/sec; IO Read Bytes/sec; IO Write Bytes/sec; IO Data Bytes/sec; IO Other Bytes/sec; Working Set - Private&lt;BR /&gt;disabled = 0&lt;BR /&gt;host = dziura&lt;BR /&gt;index = winmetrics&lt;BR /&gt;instances = *&lt;BR /&gt;interval = 300&lt;BR /&gt;mode = multikv&lt;BR /&gt;object = Process&lt;BR /&gt;useEnglishOnly = true&lt;BR /&gt;[perfmon://Processor]&lt;BR /&gt;counters = % Processor Time; % User Time; % Privileged Time; Interrupts/sec; % DPC Time; % Interrupt Time; DPCs Queued/sec; DPC Rate; % Idle Time; % C1 Time; % C2 Time; % C3 Time; C1 Transitions/sec; C2 Transitions/sec; C3 Transitions/sec&lt;BR /&gt;disabled = 0&lt;BR /&gt;host = dziura&lt;BR /&gt;index = winmetrics&lt;BR /&gt;instances = *&lt;BR /&gt;interval = 300&lt;BR /&gt;mode = multikv&lt;BR /&gt;object = Processor&lt;BR /&gt;useEnglishOnly = true&lt;/PRE&gt;
&lt;P&gt;The list inputstatus shows:&lt;/P&gt;
&lt;PRE&gt;C:\Program Files\SplunkUniversalForwarder\bin\splunk-perfmon.exe&lt;BR /&gt;exit status description = exited with code -1&lt;BR /&gt;time closed = 2022-11-21T09:27:17+0100&lt;BR /&gt;time opened = 2022-11-21T09:27:14+0100&lt;/PRE&gt;
&lt;P&gt;I raised logging level for modularinputs and execprocessor to DEBUG but still it's not helpful:&lt;/P&gt;
&lt;PRE&gt;11-21-2022 09:27:10.491 +0100 DEBUG ModularInputs [6028 MainThread] - Found scheme="perfmon".&lt;BR /&gt;11-21-2022 09:27:10.491 +0100 DEBUG ModularInputs [6028 MainThread] - Locating script for scheme="perfmon"...&lt;BR /&gt;11-21-2022 09:27:10.491 +0100 DEBUG ModularInputs [6028 MainThread] - No regular file="C:\Program Files\SplunkUniversalForwarder\etc\system\windows_x86_64\bin\perfmon.bat".&lt;BR /&gt;11-21-2022 09:27:10.492 +0100 DEBUG ModularInputs [6028 MainThread] - No regular file="C:\Program Files\SplunkUniversalForwarder\etc\system\windows_x86_64\bin\perfmon.cmd".&lt;BR /&gt;11-21-2022 09:27:10.492 +0100 DEBUG ModularInputs [6028 MainThread] - No regular file="C:\Program Files\SplunkUniversalForwarder\etc\system\windows_x86_64\bin\perfmon.py".&lt;BR /&gt;11-21-2022 09:27:10.492 +0100 DEBUG ModularInputs [6028 MainThread] - No regular file="C:\Program Files\SplunkUniversalForwarder\etc\system\windows_x86_64\bin\perfmon.js".&lt;BR /&gt;11-21-2022 09:27:10.492 +0100 DEBUG ModularInputs [6028 MainThread] - No regular file="C:\Program Files\SplunkUniversalForwarder\etc\system\windows_x86_64\bin\perfmon.exe".&lt;BR /&gt;11-21-2022 09:27:10.492 +0100 DEBUG ModularInputs [6028 MainThread] - No regular file="C:\Program Files\SplunkUniversalForwarder\etc\system\windows_x86_64\bin\perfmon.bat".&lt;BR /&gt;11-21-2022 09:27:10.492 +0100 DEBUG ModularInputs [6028 MainThread] - No regular file="C:\Program Files\SplunkUniversalForwarder\etc\system\windows_x86_64\bin\perfmon.cmd".&lt;BR /&gt;11-21-2022 09:27:10.492 +0100 DEBUG ModularInputs [6028 MainThread] - No regular file="C:\Program Files\SplunkUniversalForwarder\etc\system\windows_x86_64\bin\perfmon.py".&lt;BR /&gt;11-21-2022 09:27:10.492 +0100 DEBUG ModularInputs [6028 MainThread] - No regular file="C:\Program Files\SplunkUniversalForwarder\etc\system\windows_x86_64\bin\perfmon.js".&lt;BR /&gt;11-21-2022 09:27:10.492 +0100 DEBUG ModularInputs [6028 MainThread] - No regular file="C:\Program Files\SplunkUniversalForwarder\etc\system\windows_x86_64\bin\perfmon.exe".&lt;BR /&gt;11-21-2022 09:27:10.493 +0100 DEBUG ModularInputs [6028 MainThread] - No regular file="C:\Program Files\SplunkUniversalForwarder\etc\system\bin\perfmon.bat".&lt;BR /&gt;11-21-2022 09:27:10.493 +0100 DEBUG ModularInputs [6028 MainThread] - Found script ""C:\Program Files\SplunkUniversalForwarder\etc\system\bin\perfmon.cmd"" to handle scheme "perfmon".&lt;BR /&gt;11-21-2022 09:27:10.614 +0100 DEBUG ModularInputs [6028 MainThread] - Introspecting scheme=perfmon: exited: status=done, exit=0&lt;BR /&gt;11-21-2022 09:27:10.614 +0100 DEBUG ModularInputs [6028 MainThread] - XML scheme path "\scheme\script": "script" -&amp;gt; "splunk-perfmon.path"&lt;BR /&gt;11-21-2022 09:27:10.614 +0100 DEBUG ModularInputs [6028 MainThread] - XML endpoint path "\scheme\endpoint\id": "id" -&amp;gt; "win-perfmon"&lt;BR /&gt;11-21-2022 09:27:10.614 +0100 DEBUG ModularInputs [6028 MainThread] - Setting up values from introspection for scheme "perfmon".&lt;BR /&gt;11-21-2022 09:27:10.614 +0100 DEBUG ModularInputs [6028 MainThread] - Locating script for scheme="perfmon"...&lt;BR /&gt;11-21-2022 09:27:10.614 +0100 DEBUG ModularInputs [6028 MainThread] - No regular file="C:\Program Files\SplunkUniversalForwarder\etc\system\windows_x86_64\bin\splunk-perfmon.path".&lt;BR /&gt;11-21-2022 09:27:10.614 +0100 DEBUG ModularInputs [6028 MainThread] - No regular file="C:\Program Files\SplunkUniversalForwarder\etc\system\windows_x86_64\bin\splunk-perfmon.path.exe".&lt;BR /&gt;11-21-2022 09:27:10.614 +0100 DEBUG ModularInputs [6028 MainThread] - No regular file="C:\Program Files\SplunkUniversalForwarder\etc\system\windows_x86_64\bin\splunk-perfmon.path".&lt;BR /&gt;11-21-2022 09:27:10.614 +0100 DEBUG ModularInputs [6028 MainThread] - No regular file="C:\Program Files\SplunkUniversalForwarder\etc\system\windows_x86_64\bin\splunk-perfmon.path.exe".&lt;BR /&gt;11-21-2022 09:27:10.615 +0100 DEBUG ModularInputs [6028 MainThread] - No regular file="C:\Program Files\SplunkUniversalForwarder\etc\system\bin\splunk-perfmon.path".&lt;BR /&gt;11-21-2022 09:27:10.615 +0100 DEBUG ModularInputs [6028 MainThread] - No regular file="C:\Program Files\SplunkUniversalForwarder\etc\system\bin\splunk-perfmon.path.exe".&lt;BR /&gt;11-21-2022 09:27:10.615 +0100 DEBUG ModularInputs [6028 MainThread] - No regular file="C:\Program Files\SplunkUniversalForwarder\etc\system\bin\splunk-perfmon.path".&lt;BR /&gt;11-21-2022 09:27:10.615 +0100 DEBUG ModularInputs [6028 MainThread] - No regular file="C:\Program Files\SplunkUniversalForwarder\etc\system\bin\splunk-perfmon.path.exe".&lt;BR /&gt;11-21-2022 09:27:10.615 +0100 DEBUG ModularInputs [6028 MainThread] - Found script ""C:\Program Files\SplunkUniversalForwarder\bin\scripts\splunk-perfmon.path"" to handle scheme "perfmon".&lt;BR /&gt;11-21-2022 09:27:10.615 +0100 DEBUG ModularInputs [6028 MainThread] - For scheme "perfmon" found script "splunk-perfmon.path" at path ""C:\Program Files\SplunkUniversalForwarder\bin\scripts\splunk-perfmon.path""&lt;BR /&gt;11-21-2022 09:27:10.615 +0100 DEBUG ModularInputs [6028 MainThread] - Setting "id" to "win-perfmon".&lt;BR /&gt;11-21-2022 09:27:11.098 +0100 DEBUG ExecProcessor [12380 ExecProcessor] - In configure(), looking at stanza: [script://C:\Program Files\SplunkUniversalForwarder\bin\splunk-perfmon.exe] -&amp;gt; {host -&amp;gt; dziura, source -&amp;gt; perfmon, sourcetype -&amp;gt; perfmon}&lt;BR /&gt;11-21-2022 09:27:11.098 +0100 DEBUG ExecProcessor [12380 ExecProcessor] - Stanza='script://C:\Program Files\SplunkUniversalForwarder\bin\splunk-perfmon.exe' isModInput=true isIntrospectionInput=false&lt;BR /&gt;11-21-2022 09:27:11.098 +0100 DEBUG ExecProcessor [12380 ExecProcessor] - getInterpreterPathFor(): scriptPath=C:\Program Files\SplunkUniversalForwarder\bin\splunk-perfmon.exe pyVersStr=&lt;BR /&gt;11-21-2022 09:27:11.098 +0100 DEBUG ExecProcessor [12380 ExecProcessor] - After normalization script is ""C:\Program Files\SplunkUniversalForwarder\bin\splunk-perfmon.exe""&lt;BR /&gt;11-21-2022 09:27:11.098 +0100 DEBUG ExecProcessor [12380 ExecProcessor] - stanza=script://C:\Program Files\SplunkUniversalForwarder\bin\splunk-perfmon.exe interval=18446744073709551.615&lt;BR /&gt;11-21-2022 09:27:11.098 +0100 DEBUG ExecProcessor [12380 ExecProcessor] - Creating an ExecedCommand, cmd='"C:\Program Files\SplunkUniversalForwarder\bin\splunk-perfmon.exe"', args={"C:\Program Files\SplunkUniversalForwarder\bin\splunk-perfmon.exe"}, runViaShell=false&lt;BR /&gt;11-21-2022 09:27:11.098 +0100 DEBUG ExecProcessor [12380 ExecProcessor] - ExecProcessorSharedState::addToRunQueue() path='"C:\Program Files\SplunkUniversalForwarder\bin\splunk-perfmon.exe"' restartTimerIfNeeded=0&lt;BR /&gt;11-21-2022 09:27:11.098 +0100 DEBUG ExecProcessor [12380 ExecProcessor] - adding ""C:\Program Files\SplunkUniversalForwarder\bin\splunk-perfmon.exe"" to runqueue&lt;BR /&gt;11-21-2022 09:27:11.098 +0100 DEBUG ExecProcessor [12380 ExecProcessor] - cmd='"C:\Program Files\SplunkUniversalForwarder\bin\splunk-perfmon.exe"' Added to run queue&lt;BR /&gt;11-21-2022 09:27:11.098 +0100 DEBUG ExecProcessor [12380 ExecProcessor] - Creating InputStatusHandler for group="modular input commands" key="C:\Program Files\SplunkUniversalForwarder\bin\splunk-perfmon.exe"&lt;BR /&gt;11-21-2022 09:27:11.098 +0100 DEBUG ExecProcessor [12380 ExecProcessor] - Done configuring ExecedCommand: command='"C:\Program Files\SplunkUniversalForwarder\bin\splunk-perfmon.exe"' runViaShell=0 tickStarted=0 running=0 state=WAITING_ON_RUNQUEUE interval=18446744073709551.615&lt;BR /&gt;11-21-2022 09:27:14.883 +0100 DEBUG ExecProcessor [12380 ExecProcessor] - Running: "C:\Program Files\SplunkUniversalForwarder\bin\splunk-perfmon.exe" on PipelineSet 0&lt;BR /&gt;11-21-2022 09:27:14.883 +0100 DEBUG ExecProcessor [12380 ExecProcessor] - PipelineSet 0: Created new ExecedCommandPipe for ""C:\Program Files\SplunkUniversalForwarder\bin\splunk-perfmon.exe"", uniqueId=5&lt;BR /&gt;11-21-2022 09:27:16.532 +0100 DEBUG ExecProcessor [12380 ExecProcessor] - PipelineSet 0: Got EOF from ""C:\Program Files\SplunkUniversalForwarder\bin\splunk-perfmon.exe"", uniqueId=5&lt;BR /&gt;11-21-2022 09:27:17.048 +0100 DEBUG ExecProcessor [12380 ExecProcessor] - PipelineSet 0: Ran script: "C:\Program Files\SplunkUniversalForwarder\bin\splunk-perfmon.exe", took 2.172 seconds to run, 0 bytes read 0 events read, status=done, exit=4294967295&lt;BR /&gt;11-21-2022 09:27:17.048 +0100 DEBUG ExecProcessor [12380 ExecProcessor] - PipelineSet 0: Destroying ExecedCommandPipe for ""C:\Program Files\SplunkUniversalForwarder\bin\splunk-perfmon.exe"" id=5&lt;BR /&gt;11-21-2022 09:27:17.048 +0100 DEBUG ExecProcessor [12380 ExecProcessor] - cmd='"C:\Program Files\SplunkUniversalForwarder\bin\splunk-perfmon.exe"' Not added to run queue&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;The only relevant entry here is the line with "exit=4294967295" which corresponds to the inputstatus message that the process exited with -1. But I still don't know why.&lt;/P&gt;
&lt;P&gt;I accept that the reason may be completely on the windows side but I would like to be able to diagnose why.&lt;/P&gt;
&lt;P&gt;Oh, and yes - I did try the lodctr.exe /r - nothing changes.&lt;/P&gt;
&lt;P&gt;The UF is running as LOCAL SYSTEM so it should not have permission issues.&lt;/P&gt;
&lt;P&gt;Also I can run perfmon.msc and it's showing the counters properly.&lt;/P&gt;
&lt;P&gt;Any more debug ideas? I'm stuck.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 12:09:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Debugging-perfmon-input/m-p/621539#M107042</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-11-21T12:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging perfmon input?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Debugging-perfmon-input/m-p/621602#M107049</link>
      <description>&lt;P&gt;Just to let you know - after some debugging (thx j.ho!) it turns out that my windows is "multilingual" somehow (even though I'm using an english GUI) and UF gets from the system non-english counter names and can't subscribe to them when&amp;nbsp;useEnglishOnly = true. If I set it to false (and give localized object and counter names), UF is able to pull the metrics.&lt;/P&gt;&lt;P&gt;To make things even more puzzling - windows' own perfmon.msc shows the objects and counters with english names.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 15:47:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Debugging-perfmon-input/m-p/621602#M107049</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-11-21T15:47:30Z</dc:date>
    </item>
  </channel>
</rss>

