<?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: Add-on Builder and Metric Indexes in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Add-on-Builder-and-Metric-Indexes-Why-aren-t-events-showing-up/m-p/616182#M77759</link>
    <description>&lt;P&gt;This is through the add-on builder.&amp;nbsp; When I send the metric through to a normal index, it looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davidoff96_0-1665066001007.png" style="width: 617px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/21925iA50C58AFB0796430/image-dimensions/617x192?v=v2" width="617" height="192" role="button" title="davidoff96_0-1665066001007.png" alt="davidoff96_0-1665066001007.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And my code for generating it looks like this:&lt;BR /&gt;&lt;BR /&gt;data = {&lt;BR /&gt;'metric_name:tests_performed:testing': 4&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;event = helper.new_event(source=helper.get_input_type(), index='test-metrics', sourcetype=helper.get_sourcetype(), data=json.dumps(data))&lt;BR /&gt;ew.write_event(event)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where index test-metrics is an index I have set up with the metrics type&lt;/P&gt;</description>
    <pubDate>Thu, 06 Oct 2022 14:21:28 GMT</pubDate>
    <dc:creator>davidoff96</dc:creator>
    <dc:date>2022-10-06T14:21:28Z</dc:date>
    <item>
      <title>Add-on Builder and Metric Indexes- Why aren't events showing up?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Add-on-Builder-and-Metric-Indexes-Why-aren-t-events-showing-up/m-p/616056#M77754</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have to manipulate some data from an api, and send those events to splunk. One set of the api has to go to a normal index, but a subset of the data has to go to a metrics index, which is defined as an input in the add-on configuration.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, when I try to send events to the metrics, I don't get anything showing up there. I have tried the following:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Prepending "metric_name:" to the field name for the metric&lt;/LI&gt;
&lt;LI&gt;Making a new add-on to only send data to metrics (very simple create an event and send it)&lt;/LI&gt;
&lt;LI&gt;In that same add-on, create the event, and send it to the index defined in the config, and defined my metrics index in that config&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;None of these worked. Is there a special way to send these to metrics indexes?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 14:28:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Add-on-Builder-and-Metric-Indexes-Why-aren-t-events-showing-up/m-p/616056#M77754</guid>
      <dc:creator>davidoff96</dc:creator>
      <dc:date>2022-10-06T14:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Add-on Builder and Metric Indexes</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Add-on-Builder-and-Metric-Indexes-Why-aren-t-events-showing-up/m-p/616075#M77755</link>
      <description>&lt;P&gt;How are you ingesting the metrics? If you're using HEC, make sure you format it correctly and send it to the correct rest api endpoint url.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/9.0.2208/Metrics/GetMetricsInOther" target="_blank"&gt;https://docs.splunk.com/Documentation/SplunkCloud/9.0.2208/Metrics/GetMetricsInOther&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 01:42:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Add-on-Builder-and-Metric-Indexes-Why-aren-t-events-showing-up/m-p/616075#M77755</guid>
      <dc:creator>johnhuang</dc:creator>
      <dc:date>2022-10-06T01:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Add-on Builder and Metric Indexes</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Add-on-Builder-and-Metric-Indexes-Why-aren-t-events-showing-up/m-p/616182#M77759</link>
      <description>&lt;P&gt;This is through the add-on builder.&amp;nbsp; When I send the metric through to a normal index, it looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davidoff96_0-1665066001007.png" style="width: 617px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/21925iA50C58AFB0796430/image-dimensions/617x192?v=v2" width="617" height="192" role="button" title="davidoff96_0-1665066001007.png" alt="davidoff96_0-1665066001007.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And my code for generating it looks like this:&lt;BR /&gt;&lt;BR /&gt;data = {&lt;BR /&gt;'metric_name:tests_performed:testing': 4&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;event = helper.new_event(source=helper.get_input_type(), index='test-metrics', sourcetype=helper.get_sourcetype(), data=json.dumps(data))&lt;BR /&gt;ew.write_event(event)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where index test-metrics is an index I have set up with the metrics type&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 14:21:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Add-on-Builder-and-Metric-Indexes-Why-aren-t-events-showing-up/m-p/616182#M77759</guid>
      <dc:creator>davidoff96</dc:creator>
      <dc:date>2022-10-06T14:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Add-on Builder and Metric Indexes- Why aren't events showing up?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Add-on-Builder-and-Metric-Indexes-Why-aren-t-events-showing-up/m-p/616231#M77763</link>
      <description>&lt;P&gt;Alright - the issue was that the sourcetype for the metrics events had to have "INDEXED_EXTRACTIONS=json" in the props.conf. Once I had changed that, I was able to see those values in the metrics index.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 21:35:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Add-on-Builder-and-Metric-Indexes-Why-aren-t-events-showing-up/m-p/616231#M77763</guid>
      <dc:creator>davidoff96</dc:creator>
      <dc:date>2022-10-06T21:35:11Z</dc:date>
    </item>
  </channel>
</rss>

