<?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: Splunk - How to convert Logs to Metrics (SQL Add on)? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-How-to-convert-Logs-to-Metrics-SQL-Add-on/m-p/703041#M116277</link>
    <description>&lt;P&gt;&lt;STRIKE&gt;Hey&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/232274"&gt;@ssj3abid&lt;/a&gt;&amp;nbsp;, were you able to figure this out? I'm having the same issues.&lt;/STRIKE&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Oct 2024 19:53:50 GMT</pubDate>
    <dc:creator>twellinghurst</dc:creator>
    <dc:date>2024-10-29T19:53:50Z</dc:date>
    <item>
      <title>Splunk - How to convert Logs to Metrics (SQL Add on)?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-How-to-convert-Logs-to-Metrics-SQL-Add-on/m-p/611811#M105920</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to get SQL Performance monitoring logs into our environment for one of our ITSI use cases&lt;/P&gt;
&lt;P&gt;The event successfully comes into our event index however I would like to convert these performance monitoring sql logs into metrics as it will work much better with ITSI&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am struggling to convert the logs into metrics and am using the following documentation to help me do so -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.1/Data/Extractfieldsfromfileswithstructureddata" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.1/Data/Extractfieldsfromfileswithstructureddata&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are my props and transforms conf files for 1 of the sql perfmon inputs&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&amp;nbsp;&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;[Perfmon:sqlserverhost:physicaldisk]
TRANSFORMS-field_value = field_extraction
TRANSFORMS-sqlphysicaldiskmetrics = eval_sqlphysicaldiskcounter
METRIC-SCHEMA-TRANSFORMS = metric-schema:extract_sqlphysicaldisk&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&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;[eval_sqlphysicaldiskcounter]
INGEST_EVAL = metric_name=counter

[metric-schema:extract_sqlphysicaldisk]
METRIC-SCHEMA-MEASURES = _ALLNUMS_&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;My SQL index where i would like these logs to go into does not have the "datatype=metrics" setting as i thought this should convert the events into metrics regardless, also i changed this setting so that the datatype = metrics but this removed all the data entirely and no data was populated into the sql index&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can still see the event data populating in the SQL index but it cannot be searched using the metrics commands (mstats, mcatalog etc)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Note - There are 8 counter field values which i would like to convert individually into metrics hence why i set the metric_name = counter. I did not break it down individually into separate settings under the transforms.conf due to there being spaces in the field values&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ssj3abid_0-1662148412184.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/21296iF0D1B343EBB2DD43/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ssj3abid_0-1662148412184.png" alt="ssj3abid_0-1662148412184.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any idea why this is failing and how i can fix this? Any help would be greatly appreciated!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any questions please ask!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2022 22:29:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-How-to-convert-Logs-to-Metrics-SQL-Add-on/m-p/611811#M105920</guid>
      <dc:creator>ssj3abid</dc:creator>
      <dc:date>2022-09-04T22:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk - How to convert Logs to Metrics (SQL Add on)?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-How-to-convert-Logs-to-Metrics-SQL-Add-on/m-p/703041#M116277</link>
      <description>&lt;P&gt;&lt;STRIKE&gt;Hey&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/232274"&gt;@ssj3abid&lt;/a&gt;&amp;nbsp;, were you able to figure this out? I'm having the same issues.&lt;/STRIKE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 19:53:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-How-to-convert-Logs-to-Metrics-SQL-Add-on/m-p/703041#M116277</guid>
      <dc:creator>twellinghurst</dc:creator>
      <dc:date>2024-10-29T19:53:50Z</dc:date>
    </item>
  </channel>
</rss>

