<?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 Open Telemtery metric Data as a seed for Eventgen metric Data? in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Can-I-use-Open-Telemtery-metric-Data-as-a-seed-for-Eventgen/m-p/639305#M15979</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How is your otel source type defined?&lt;/P&gt;&lt;P&gt;Using your sample data with metric_name:mx.process.errors.status changed to mx.process.errors.status, I created a source type named otel based on the log2metrics_json source type following the process documented here: &amp;lt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/Metrics/L2MSplunkWeb" target="_self"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.4/Metrics/L2MSplunkWeb&lt;/A&gt;&amp;gt;.&lt;/P&gt;&lt;P&gt;For testing, I set DATETIME_CONFIG = CURRENT.&lt;/P&gt;&lt;P&gt;The user interface defaults to _ALLNUMS_ for measures, which includes the mx.process.errors.status and pid fields. I changed this value to mx.process.errors.status. The include and exclude lists were left empty to use all remaining fields as dimensions.&lt;/P&gt;&lt;P&gt;Adding the data to a metrics index worked as expected.&lt;/P&gt;&lt;P&gt;The final configuration is below. See &amp;lt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/Admin/Transformsconf#Metrics" target="_self"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.4/Admin/Transformsconf#Metrics&lt;/A&gt;&amp;gt; for more information on customizing metric transforms.&lt;/P&gt;&lt;P&gt;# props.conf&lt;/P&gt;&lt;PRE&gt;[otel]&lt;BR /&gt;DATETIME_CONFIG = CURRENT&lt;BR /&gt;INDEXED_EXTRACTIONS = json&lt;BR /&gt;LINE_BREAKER = ([\r\n]+)&lt;BR /&gt;METRIC-SCHEMA-TRANSFORMS = metric-schema:log2metrics_default_json&lt;BR /&gt;NO_BINARY_CHECK = true&lt;BR /&gt;category = Log to Metrics&lt;BR /&gt;description = JSON-formatted data. Log-to-metrics processing converts the numeric values in json keys into metric data points.&lt;BR /&gt;disabled = false&lt;BR /&gt;pulldown_type = true&lt;BR /&gt;#TZ = &amp;lt;time zone&amp;gt;&lt;BR /&gt;&lt;BR /&gt;# transforms.conf&lt;BR /&gt;&lt;BR /&gt;[metric-schema:log2metrics_default_json]&lt;BR /&gt;METRIC-SCHEMA-MEASURES = mx.process.errors.status&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 09 Apr 2023 17:02:20 GMT</pubDate>
    <dc:creator>tscroggins</dc:creator>
    <dc:date>2023-04-09T17:02:20Z</dc:date>
    <item>
      <title>Can I use Open Telemtery metric Data as a seed for Eventgen metric Data?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Can-I-use-Open-Telemtery-metric-Data-as-a-seed-for-Eventgen/m-p/636737#M15891</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I am working on a project where we are taking in Open Telemetry Data Metric.&lt;/P&gt;
&lt;P&gt;I am looking for a way to &lt;STRONG&gt;re-import&lt;/STRONG&gt; Metric Data for testing and i have been looking at &lt;STRONG&gt;eventgen&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;I took some metric data that I have and using mpreview i exported it to a file (Below - sample.metric4).&lt;/P&gt;
&lt;P&gt;I followed this great video -&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=WNk6u04TrtU" target="_blank" rel="noopener"&gt;https://www.youtube.com/watch?v=WNk6u04TrtU&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;_raw,_time
"{""cmd"":""python3"",""component.name"":""rtpm-probe"",""metric_type"":""Gauge"",""module.names"":""MONITORING"",""mx.env"":""dell967srv.scz.murex.com:15023"",""parent.name"":""AGENT.dell1013srv.scz.murex.com"",""pid"":""789937"",""replica.name"":""rtpm-probe-ORCH2"",""server.mode"":""N/A"",""service.name"":""monitoring"",""service.type"":""agent-based"",""telemetry.sdk.language"":""python"",""telemetry.sdk.name"":""opentelemetry"",""telemetry.sdk.version"":""1.12.0rc2"",""metric_name:mx.process.errors.status"":4}",2023-03-30T14:21:24.000+0200&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then using &lt;STRONG&gt;evengen&lt;/STRONG&gt; i was able to import this data into an event index to test it worked - it did.&lt;/P&gt;
&lt;P&gt;I have been trying to&amp;nbsp; get it to work to sed it to a metric index, but no luck. I think i am close, but i just cant crack it.&lt;/P&gt;
&lt;P&gt;This is the eventgen.conf file i have been using.&lt;/P&gt;
&lt;P&gt;To note, i have tried multiple sourcetypes in relation to metrics, but i dont seem to be picking the correct one. Or the mpreview format is not ok!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[sample.metric4]
mode=sample
interval = 1m
earliest = -2m
latest = now
count=-1

outputMode = metric_httpevent

index = bcg_eventgen_metrics
host = bcg_eventgen
source = bcgames
sourcetype=otel&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the error I am getting&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;The metric event is not properly structured, source=bcgames, sourcetype=metrics_csv, host=bcg_eventgen, index=bcg_eventgen_metrics. Metric event data without a metric name and properly formated numerical values are invalid and cannot be indexed. Ensure the input metric data is not malformed, have one or more keys of the form "metric_name:&amp;lt;metric&amp;gt;" (e.g..."metric_name:cpu.idle") with corresponding floating point values.
3/30/2023, 5:20:02 PM&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I change the eventgen.conf to send to an event index i can see the data. I just cant figure out how to get it to go to metric data. Perhaps by outputmode is not correct.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="robertlynch2020_0-1680190700869.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24638iAD847B4C02AC0403/image-size/medium?v=v2&amp;amp;px=400" role="button" title="robertlynch2020_0-1680190700869.png" alt="robertlynch2020_0-1680190700869.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks in advance for any help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 16:04:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Can-I-use-Open-Telemtery-metric-Data-as-a-seed-for-Eventgen/m-p/636737#M15891</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2023-04-10T16:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can i use Open Telemtery metric Data as a seed for Eventgen metric Data?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Can-I-use-Open-Telemtery-metric-Data-as-a-seed-for-Eventgen/m-p/639305#M15979</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How is your otel source type defined?&lt;/P&gt;&lt;P&gt;Using your sample data with metric_name:mx.process.errors.status changed to mx.process.errors.status, I created a source type named otel based on the log2metrics_json source type following the process documented here: &amp;lt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/Metrics/L2MSplunkWeb" target="_self"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.4/Metrics/L2MSplunkWeb&lt;/A&gt;&amp;gt;.&lt;/P&gt;&lt;P&gt;For testing, I set DATETIME_CONFIG = CURRENT.&lt;/P&gt;&lt;P&gt;The user interface defaults to _ALLNUMS_ for measures, which includes the mx.process.errors.status and pid fields. I changed this value to mx.process.errors.status. The include and exclude lists were left empty to use all remaining fields as dimensions.&lt;/P&gt;&lt;P&gt;Adding the data to a metrics index worked as expected.&lt;/P&gt;&lt;P&gt;The final configuration is below. See &amp;lt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/Admin/Transformsconf#Metrics" target="_self"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.4/Admin/Transformsconf#Metrics&lt;/A&gt;&amp;gt; for more information on customizing metric transforms.&lt;/P&gt;&lt;P&gt;# props.conf&lt;/P&gt;&lt;PRE&gt;[otel]&lt;BR /&gt;DATETIME_CONFIG = CURRENT&lt;BR /&gt;INDEXED_EXTRACTIONS = json&lt;BR /&gt;LINE_BREAKER = ([\r\n]+)&lt;BR /&gt;METRIC-SCHEMA-TRANSFORMS = metric-schema:log2metrics_default_json&lt;BR /&gt;NO_BINARY_CHECK = true&lt;BR /&gt;category = Log to Metrics&lt;BR /&gt;description = JSON-formatted data. Log-to-metrics processing converts the numeric values in json keys into metric data points.&lt;BR /&gt;disabled = false&lt;BR /&gt;pulldown_type = true&lt;BR /&gt;#TZ = &amp;lt;time zone&amp;gt;&lt;BR /&gt;&lt;BR /&gt;# transforms.conf&lt;BR /&gt;&lt;BR /&gt;[metric-schema:log2metrics_default_json]&lt;BR /&gt;METRIC-SCHEMA-MEASURES = mx.process.errors.status&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Apr 2023 17:02:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Can-I-use-Open-Telemtery-metric-Data-as-a-seed-for-Eventgen/m-p/639305#M15979</guid>
      <dc:creator>tscroggins</dc:creator>
      <dc:date>2023-04-09T17:02:20Z</dc:date>
    </item>
  </channel>
</rss>

