<?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: How to collect perfmon data on .NET counters? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-collect-perfmon-data-on-NET-counters/m-p/161903#M32865</link>
    <description>&lt;P&gt;This is what I used to ingest the data &lt;/P&gt;

&lt;P&gt;[perfmon://.NET CLR Memory]&lt;BR /&gt;
counters = % Time in GC&lt;BR /&gt;
disabled = 0 &lt;BR /&gt;
instances = *&lt;BR /&gt;
interval = 10&lt;BR /&gt;
object=.NET CLR Memory&lt;BR /&gt;
useEnglishOnly=true,This is what I Used to gather the data into splunk. &lt;/P&gt;

&lt;P&gt;[perfmon://.NET CLR Memory]&lt;BR /&gt;
counters = % Time in GC&lt;BR /&gt;
disabled = 0 &lt;BR /&gt;
instances = *&lt;BR /&gt;
interval = 5&lt;BR /&gt;
object=.NET CLR Memory&lt;BR /&gt;
useEnglishOnly=true,This is what I used to gather the content for splunk &lt;/P&gt;

&lt;P&gt;[perfmon://.NET CLR Memory]&lt;BR /&gt;
counters = % Time in GC&lt;BR /&gt;
disabled = 0 &lt;BR /&gt;
instances = *&lt;BR /&gt;
interval = 5&lt;BR /&gt;
object=.NET CLR Memory&lt;BR /&gt;
useEnglishOnly=true&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jun 2018 21:55:11 GMT</pubDate>
    <dc:creator>Goldbeed</dc:creator>
    <dc:date>2018-06-27T21:55:11Z</dc:date>
    <item>
      <title>How to collect perfmon data on .NET counters?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-collect-perfmon-data-on-NET-counters/m-p/161900#M32862</link>
      <description>&lt;P&gt;I am attempting to collect perfmon counters to track garbage collection in a .NET application.    I can create the counter locally in the Windows perfmon GUI,  so I believe the data ought to be exposed to the Splunk perfmon modular input.   However, the inputs.conf stanza I've created does not work, and returns no errors.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[perfmon://NETGarbageCollection]
counters = NumberGen2Collections
disabled = false
instances = *
interval = 60
object = Win32_PerfFormattedData_NETFramework_NETCLRMemory
index = test
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have also tried running a WMI query directly from the splunk-wmi.exe helper executable  (a technique I've used successfully before)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;PS C:\Program Files\SplunkUniversalForwarder\bin&amp;gt; &amp;amp; .\splunk-wmi.exe -wql "SELECT * FROM Win32_PerfFormattedData_NETFram
ework_NETCLRMemory"

Clean shutdown completed.

PS C:\Program Files\SplunkUniversalForwarder\bin&amp;gt; &amp;amp; .\splunk-wmi.exe -wql "SELECT NumberGen2Collections FROM Win32_PerfF
ormattedData_NETFramework_NETCLRMemory"

Clean shutdown completed.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My developers are hoping to use the counter information to debug a problem in our production software,  and so there is considerable interest in getting this working.     &lt;/P&gt;

&lt;P&gt;I am collecting perfmon on  a Universal Forwarder which is otherwise working as expected.  Indexer and forwarder are both running Splunk 6.0.3,  OS is Windows server 2012,  .NET is 4.5.   I've been taking my perfmon counter names and object paths from &lt;A href="http://wutils.com/wmi/root/CIMV2/CIM_StatisticalInformation/Win32_Perf/Win32_PerfFormattedData/Win32_PerfFormattedData_NETFramework_NETCLRMemory.html"&gt;this reference&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2014 23:22:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-collect-perfmon-data-on-NET-counters/m-p/161900#M32862</guid>
      <dc:creator>anewell</dc:creator>
      <dc:date>2014-10-13T23:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to collect perfmon data on .NET counters?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-collect-perfmon-data-on-NET-counters/m-p/161901#M32863</link>
      <description>&lt;P&gt;The markup for my Reference link isn't rendering properly.  Link:        &lt;A href="http://wutils.com/wmi/root/CIMV2/CIM_StatisticalInformation/Win32_Perf/Win32_PerfFormattedData/Win32_PerfFormattedData_NETFramework_NETCLRMemory.html"&gt;http://wutils.com/wmi/root/CIMV2/CIM_StatisticalInformation/Win32_Perf/Win32_PerfFormattedData/Win32_PerfFormattedData_NETFramework_NETCLRMemory.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2014 23:27:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-collect-perfmon-data-on-NET-counters/m-p/161901#M32863</guid>
      <dc:creator>anewell</dc:creator>
      <dc:date>2014-10-13T23:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to collect perfmon data on .NET counters?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-collect-perfmon-data-on-NET-counters/m-p/161902#M32864</link>
      <description>&lt;P&gt;Found a workaround,  in the form of a scripted input run on the forwarder.  (The regex is to select IIS-related counters, which happen to be what I'm after)&lt;/P&gt;

&lt;P&gt;The script outputs a table of each IIS process and it's "# Gen 2 Collections"  perfmon counter:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#! powershell
$gc2 = get-counter -Counter "\.NET CLR Memory(w3wp*)\# Gen 2 Collections"
[regex]$regex = 'w3wp(\#\d)?'
$arrCounterPath = $gc2.CounterSamples | %{ $regex.match($_.Path) } | %{$_.value}
$output = @{}
for ($i=0; $i -lt $gc2.CounterSamples.count; $i++) {
        $output.add($arrCounterPath[$i], $gc2.CounterSamples[$i].CookedValue)
    }

#  tabular output is fine for splunk; run through "multikv" search command.
write-output $output
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Oct 2014 22:37:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-collect-perfmon-data-on-NET-counters/m-p/161902#M32864</guid>
      <dc:creator>anewell</dc:creator>
      <dc:date>2014-10-23T22:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to collect perfmon data on .NET counters?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-collect-perfmon-data-on-NET-counters/m-p/161903#M32865</link>
      <description>&lt;P&gt;This is what I used to ingest the data &lt;/P&gt;

&lt;P&gt;[perfmon://.NET CLR Memory]&lt;BR /&gt;
counters = % Time in GC&lt;BR /&gt;
disabled = 0 &lt;BR /&gt;
instances = *&lt;BR /&gt;
interval = 10&lt;BR /&gt;
object=.NET CLR Memory&lt;BR /&gt;
useEnglishOnly=true,This is what I Used to gather the data into splunk. &lt;/P&gt;

&lt;P&gt;[perfmon://.NET CLR Memory]&lt;BR /&gt;
counters = % Time in GC&lt;BR /&gt;
disabled = 0 &lt;BR /&gt;
instances = *&lt;BR /&gt;
interval = 5&lt;BR /&gt;
object=.NET CLR Memory&lt;BR /&gt;
useEnglishOnly=true,This is what I used to gather the content for splunk &lt;/P&gt;

&lt;P&gt;[perfmon://.NET CLR Memory]&lt;BR /&gt;
counters = % Time in GC&lt;BR /&gt;
disabled = 0 &lt;BR /&gt;
instances = *&lt;BR /&gt;
interval = 5&lt;BR /&gt;
object=.NET CLR Memory&lt;BR /&gt;
useEnglishOnly=true&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 21:55:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-collect-perfmon-data-on-NET-counters/m-p/161903#M32865</guid>
      <dc:creator>Goldbeed</dc:creator>
      <dc:date>2018-06-27T21:55:11Z</dc:date>
    </item>
  </channel>
</rss>

