<?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 Assistance on mcollect command for perfmon in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Assistance-on-mcollect-command-for-perfmon/m-p/477334#M81939</link>
    <description>&lt;P&gt;I am trying to pull windows_TA perfmon data to a metric index to give our users sample data so they can create metric dashboards for their data before we move all the data to metric.  I know I am close with the search, but missing something.  I am only trying to get one type of event to work.  I am doing spool=false so I can see the data, but when I remove this command I do not see the data in the metrics workspace.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Here is the basic search&lt;/STRONG&gt;:  index=perfmon host=test01*  sourcetype="PerfmonMk:System"&lt;BR /&gt;
&lt;STRONG&gt;Here is the event data&lt;/STRONG&gt;&lt;BR /&gt;
Processor_Queue_Length = 0&lt;BR /&gt;
System_Up_Time = 1639423.1988073&lt;BR /&gt;
host = test01&lt;BR /&gt;
source = PerfmonMk:System&lt;BR /&gt;
sourcetype = PerfmonMk:System&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Here is my mcollect search&lt;/STRONG&gt;&lt;BR /&gt;
index=perfmon host=test01*  sourcetype="PerfmonMk:System" &lt;BR /&gt;
| rename _time as metric_timestamp, System_Up_Time as _value&lt;BR /&gt;
| eval metric_name="System_Up_Time" &lt;BR /&gt;
| table metric_timestamp, metric_name, _value, host&lt;BR /&gt;
| mcollect index=perfmon_metric  spool=false  file=db-$timestamp$_metrics.csv host&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Here is what I see in the spool var/run/splunk/metrics.csv file:&lt;/STRONG&gt;&lt;BR /&gt;
The top line is generated automatically&lt;/P&gt;

&lt;P&gt;metric_timestamp,metric_name,_value,host&lt;BR /&gt;
1578588112.000,System_Up_Time,1642783.1900182,test01&lt;/P&gt;

&lt;P&gt;Any assistance would be appreciated.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 03:33:29 GMT</pubDate>
    <dc:creator>dsbruce</dc:creator>
    <dc:date>2020-09-30T03:33:29Z</dc:date>
    <item>
      <title>Assistance on mcollect command for perfmon</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Assistance-on-mcollect-command-for-perfmon/m-p/477334#M81939</link>
      <description>&lt;P&gt;I am trying to pull windows_TA perfmon data to a metric index to give our users sample data so they can create metric dashboards for their data before we move all the data to metric.  I know I am close with the search, but missing something.  I am only trying to get one type of event to work.  I am doing spool=false so I can see the data, but when I remove this command I do not see the data in the metrics workspace.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Here is the basic search&lt;/STRONG&gt;:  index=perfmon host=test01*  sourcetype="PerfmonMk:System"&lt;BR /&gt;
&lt;STRONG&gt;Here is the event data&lt;/STRONG&gt;&lt;BR /&gt;
Processor_Queue_Length = 0&lt;BR /&gt;
System_Up_Time = 1639423.1988073&lt;BR /&gt;
host = test01&lt;BR /&gt;
source = PerfmonMk:System&lt;BR /&gt;
sourcetype = PerfmonMk:System&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Here is my mcollect search&lt;/STRONG&gt;&lt;BR /&gt;
index=perfmon host=test01*  sourcetype="PerfmonMk:System" &lt;BR /&gt;
| rename _time as metric_timestamp, System_Up_Time as _value&lt;BR /&gt;
| eval metric_name="System_Up_Time" &lt;BR /&gt;
| table metric_timestamp, metric_name, _value, host&lt;BR /&gt;
| mcollect index=perfmon_metric  spool=false  file=db-$timestamp$_metrics.csv host&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Here is what I see in the spool var/run/splunk/metrics.csv file:&lt;/STRONG&gt;&lt;BR /&gt;
The top line is generated automatically&lt;/P&gt;

&lt;P&gt;metric_timestamp,metric_name,_value,host&lt;BR /&gt;
1578588112.000,System_Up_Time,1642783.1900182,test01&lt;/P&gt;

&lt;P&gt;Any assistance would be appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:33:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Assistance-on-mcollect-command-for-perfmon/m-p/477334#M81939</guid>
      <dc:creator>dsbruce</dc:creator>
      <dc:date>2020-09-30T03:33:29Z</dc:date>
    </item>
  </channel>
</rss>

