<?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: Can I use the collect command to write metrics data to a metrics index? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-use-the-collect-command-to-write-metrics-data-to-a-metrics/m-p/522256#M88185</link>
    <description>&lt;P&gt;yeeeeeeeeeeeeeeeeeees!&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 13:05:26 GMT</pubDate>
    <dc:creator>andrewtrobec</dc:creator>
    <dc:date>2020-09-30T13:05:26Z</dc:date>
    <item>
      <title>Can I use the collect command to write metrics data to a metrics index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-use-the-collect-command-to-write-metrics-data-to-a-metrics/m-p/522219#M88182</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using Splunk Enterprise 7.3.2. and I have structured event data within an events index that I am trying to convert into metrics data so that I can store it in a metrics index.&amp;nbsp; I am basing my analysis on the following topic:&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.2/Metrics/GetMetricsInOther" target="_self"&gt;Get metrics in from other sources&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I've managed to create a search that converts my event data into the format that is required by the metrics_csv sourcetype, after which I run the collect command to push the data:&lt;BR /&gt;&lt;BR /&gt;| collect index="metrics_index" sourcetype="metrics_csv"&lt;/P&gt;&lt;P&gt;One thing to note is that when I rename my metric value field to _value, the field disappears from the statistics table.&lt;/P&gt;&lt;P&gt;Once the search has completed I am unable to access that data using mstats and mcatalog commands on the metrics index.&lt;/P&gt;&lt;P&gt;Is what I am trying to do possible?&lt;/P&gt;&lt;P&gt;To test whether the format was correct I exported the search results and indexed them by hand.&amp;nbsp; This worked.&lt;/P&gt;&lt;P&gt;Thank you and best regards,&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 10:48:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-use-the-collect-command-to-write-metrics-data-to-a-metrics/m-p/522219#M88182</guid>
      <dc:creator>andrewtrobec</dc:creator>
      <dc:date>2020-09-30T10:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use the collect command to write metrics data to a metrics index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-use-the-collect-command-to-write-metrics-data-to-a-metrics/m-p/522246#M88183</link>
      <description>&lt;P&gt;The&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.2/SearchReference/Collect" target="_self"&gt;collect&lt;/A&gt; command is used to send data to a&amp;nbsp;&lt;A href="https://docs.splunk.com/Splexicon:Summaryindex" target="_self"&gt;summary index&lt;/A&gt;, not a metrics index.&lt;/P&gt;&lt;P&gt;Have a look at&amp;nbsp;the &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.2/SearchReference/Mcollect" target="_self"&gt;mcollect&lt;/A&gt; and &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.2/SearchReference/Meventcollect" target="_self"&gt;meventcollect&lt;/A&gt; commands.&amp;nbsp; They can be used to send event data to a metrics index.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 12:43:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-use-the-collect-command-to-write-metrics-data-to-a-metrics/m-p/522246#M88183</guid>
      <dc:creator>ccl0utier</dc:creator>
      <dc:date>2020-09-30T12:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use the collect command to write metrics data to a metrics index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-use-the-collect-command-to-write-metrics-data-to-a-metrics/m-p/522256#M88185</link>
      <description>&lt;P&gt;yeeeeeeeeeeeeeeeeeees!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 13:05:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-use-the-collect-command-to-write-metrics-data-to-a-metrics/m-p/522256#M88185</guid>
      <dc:creator>andrewtrobec</dc:creator>
      <dc:date>2020-09-30T13:05:26Z</dc:date>
    </item>
  </channel>
</rss>

