<?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: Universal Forwarder inputs.conf perfmon stanza : Why counters with &amp;quot;-&amp;quot; in their name are not selectable? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-inputs-conf-perfmon-stanza-Why-counters-with/m-p/471217#M81003</link>
    <description>&lt;P&gt;how do you set / pick your counters?&lt;BR /&gt;
how do you determine the counter name?&lt;/P&gt;

&lt;P&gt;this works for me just fine:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[perfmon://CPU]
counters = % Processor Time;% User Time;Interrupts/sec;% Idle Time
object = Processor
instances = 
disabled = 0
interval = 30
useEnglishOnly = true
index = perfmon

[perfmon://System]
counters = Processor Queue Length; Threads
object = System
instances = *
disabled = 0
interval = 30
useEnglishOnly = true
index = perfmon

[perfmon://LogicalDisk]
counters = % Free Space; Disk Transfers/sec; Disk Reads/sec; Disk Writes/sec
object = LogicalDisk
instances = *
disabled = 0
interval = 30
useEnglishOnly = true
index = perfmon
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 01 Nov 2019 00:42:56 GMT</pubDate>
    <dc:creator>adonio</dc:creator>
    <dc:date>2019-11-01T00:42:56Z</dc:date>
    <item>
      <title>Universal Forwarder inputs.conf perfmon stanza : Why counters with "-" in their name are not selectable?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-inputs-conf-perfmon-stanza-Why-counters-with/m-p/471216#M81002</link>
      <description>&lt;H2&gt;Initial case (working) :&lt;/H2&gt;

&lt;P&gt;In an UF add to an inputs.conf (depending of if your using an app, creating local conf or default one, etc.)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[perfmon://&amp;lt; any performance monitoring input&amp;gt;]
counters = *
&amp;lt; others parameters tested and correctly set&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;=&amp;gt; All counters are forwarded.&lt;/P&gt;

&lt;HR /&gt;

&lt;H2&gt;&lt;STRONG&gt;&lt;EM&gt;Objective&lt;/EM&gt;&lt;/STRONG&gt; : I want to select a list of counters to limit my Splunk license usage, and to forward &amp;amp; index only the required ones.&lt;/H2&gt;

&lt;H2&gt;Failed cases :&lt;/H2&gt;

&lt;P&gt;Counters selection fails when counters name contains "-" , worse : &lt;STRONG&gt;&lt;EM&gt;no counters are forwarded and/or indexed&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;=&amp;gt; No counters is forwarded.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;counters = * #Host Queue - Instance State Msg Refs - Length;Host Queue - Length;Host Queue - Number of Instances;Host Queue - Suspended Msgs - Length

OR

counters = Host Queue - Instance State Msg Refs - Length;Host Queue - Length;Host Queue - Number of Instances;Host Queue - Suspended Msgs - Length

OR

counters = Host Queue \- Instance State Msg Refs \- Length;Host Queue \- Length;Host Queue \- Number of Instances;Host Queue \- Suspended Msgs \- Length

OR

counters = "Host Queue \- Instance State Msg Refs \- Length";"Host Queue \- Length";"Host Queue \- Number of Instances";"Host Queue \- Suspended Msgs \- Length"

OR

counters = "Host Queue - Instance State Msg Refs - Length";"Host Queue - Length";"Host Queue - Number of Instances";"Host Queue - Suspended Msgs - Length"

OR

counters = \"Host Queue \- Instance State Msg Refs \- Length\";\"Host Queue \- Length\";\"Host Queue \- Number of Instances\";\"Host Queue \- Suspended Msgs \- Length\"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;H2&gt;EDIT : Add examples&lt;/H2&gt;

&lt;P&gt;If the names of the listened app counters I want were&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"Host Queue Instance State Msg Refs Length;Host Queue Length;Host Queue Number of Instances;Host Queue Suspended Msgs Length"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;instead of&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"Host Queue - Instance State Msg Refs - Length;Host Queue - Length;Host Queue - Number of Instances;Host Queue - Suspended Msgs - Length"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The listed counters will be forwarded without any issue.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 15:33:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-inputs-conf-perfmon-stanza-Why-counters-with/m-p/471216#M81002</guid>
      <dc:creator>jbcharvetmatric</dc:creator>
      <dc:date>2019-10-29T15:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Universal Forwarder inputs.conf perfmon stanza : Why counters with "-" in their name are not selectable?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-inputs-conf-perfmon-stanza-Why-counters-with/m-p/471217#M81003</link>
      <description>&lt;P&gt;how do you set / pick your counters?&lt;BR /&gt;
how do you determine the counter name?&lt;/P&gt;

&lt;P&gt;this works for me just fine:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[perfmon://CPU]
counters = % Processor Time;% User Time;Interrupts/sec;% Idle Time
object = Processor
instances = 
disabled = 0
interval = 30
useEnglishOnly = true
index = perfmon

[perfmon://System]
counters = Processor Queue Length; Threads
object = System
instances = *
disabled = 0
interval = 30
useEnglishOnly = true
index = perfmon

[perfmon://LogicalDisk]
counters = % Free Space; Disk Transfers/sec; Disk Reads/sec; Disk Writes/sec
object = LogicalDisk
instances = *
disabled = 0
interval = 30
useEnglishOnly = true
index = perfmon
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Nov 2019 00:42:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-inputs-conf-perfmon-stanza-Why-counters-with/m-p/471217#M81003</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2019-11-01T00:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Universal Forwarder inputs.conf perfmon stanza : Why counters with "-" in their name are not selectable?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-inputs-conf-perfmon-stanza-Why-counters-with/m-p/471218#M81004</link>
      <description>&lt;P&gt;Thanks for the answer!&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;how do you set / pick your counters?&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;I've tried to select them as listed in "Failed cases" : with ";" to separate them. and tryed to play with "/" escape char to solve the issue with "-" char in counters names.&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;how do you determine the counter name?&lt;/EM&gt; :&lt;/P&gt;

&lt;P&gt;There names are provided by the tool I'm listening. I have manually double-check the counters names with the windows performance monitor (performance monitor/add counter/select the app I'm listening with the UF) and the tool documentation.&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;this works for me just fine:&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;It works because there is no "-" in the counter name.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;Example 1 : if the name of the system counter " Processor Queue Length" were " Processor - Queue - Length" and you were trying to select it in counters list, you'll have the same issue than me &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Example 2 : if the names of the listened app counters I want were&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;"Host Queue Instance State Msg Refs Length;Host Queue Length;Host Queue Number of Instances;Host Queue Suspended Msgs Length"&lt;/P&gt;

&lt;P&gt;instead of&lt;/P&gt;

&lt;P&gt;"Host Queue - Instance State Msg Refs - Length;Host Queue - Length;Host Queue - Number of Instances;Host Queue - Suspended Msgs - Length"&lt;/P&gt;

&lt;P&gt;My case will be working fine!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 13:50:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-inputs-conf-perfmon-stanza-Why-counters-with/m-p/471218#M81004</guid>
      <dc:creator>jbcharvetmatric</dc:creator>
      <dc:date>2019-11-01T13:50:41Z</dc:date>
    </item>
  </channel>
</rss>

