<?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: Set up log-to-metrics from Universal Forwarder to Splunk Enterprise in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Set-up-log-to-metrics-from-Universal-Forwarder-to-Splunk/m-p/499280#M85110</link>
    <description>&lt;P&gt;Did you resolve this issue? I have a same problem... &lt;/P&gt;</description>
    <pubDate>Thu, 23 Jan 2020 07:45:54 GMT</pubDate>
    <dc:creator>brandy81</dc:creator>
    <dc:date>2020-01-23T07:45:54Z</dc:date>
    <item>
      <title>Set up log-to-metrics from Universal Forwarder to Splunk Enterprise</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Set-up-log-to-metrics-from-Universal-Forwarder-to-Splunk/m-p/499279#M85109</link>
      <description>&lt;P&gt;I've followed the docs for setting up log-to-metrics but I haven't been able to get it to work as intended.&lt;/P&gt;

&lt;P&gt;I have a CSV file being monitored by a universal forwarder that then gets sent to Splunk enterprise. I want every value in the CSV (except for the date and time) to be saved as a metric in splunk, with a metric_name matching the field name and a _value from the CSV file. According to the documentation on &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.2/Metrics/L2MConfiguration"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.2/Metrics/L2MConfiguration&lt;/A&gt;, for structured data like a CSV, the configuration files should be located on the forwarder, which is what I have done.&lt;/P&gt;

&lt;P&gt;Here is what I have in SplunkForwarder/etc/apps/search/local/props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[csv-logtometrics]
FIELD_DELIMITER=,
FIELD_NAMES=Date,Time,Field1,Field2,Field3
INDEXED_EXTRACTIONS = csv
METRIC-SCHEMA-TRANSFORMS = metric-schema:csv-logtometrics
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In SplunkForwarder/etc/apps/search/local/transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[metric-schema:csv-logtometrics]
METRIC-SCHEMA-MEASURES=_ALLNUMS_
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And in SplunkForwarder/etc/apps/search/local/inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///path/to/stats.csv]
sourcetype = csv-logtometrics
disabled = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;With this config, when I search in splunk I can get results for metric_name and _value, but they are only for the first csv column (Field1 in this case). How do I get values for the other csv columns to show up as metrics as well? My understanding was that using _ALLNUMS_ should cause each individual field in the csv to be read as a metric, but it appears that it is only applying to the first field.&lt;/P&gt;

&lt;P&gt;I also haven't figured out how to get these searchable results into a metrics index, rather than just being searchable like a normal event log. I tried creating a matching metrics sourcetype on the splunk enterprise end, but that didn't seem to work. I get no results when running &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| mcatalog values(metric_name)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Oct 2019 18:53:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Set-up-log-to-metrics-from-Universal-Forwarder-to-Splunk/m-p/499279#M85109</guid>
      <dc:creator>hrecker</dc:creator>
      <dc:date>2019-10-08T18:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set up log-to-metrics from Universal Forwarder to Splunk Enterprise</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Set-up-log-to-metrics-from-Universal-Forwarder-to-Splunk/m-p/499280#M85110</link>
      <description>&lt;P&gt;Did you resolve this issue? I have a same problem... &lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 07:45:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Set-up-log-to-metrics-from-Universal-Forwarder-to-Splunk/m-p/499280#M85110</guid>
      <dc:creator>brandy81</dc:creator>
      <dc:date>2020-01-23T07:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set up log-to-metrics from Universal Forwarder to Splunk Enterprise</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Set-up-log-to-metrics-from-Universal-Forwarder-to-Splunk/m-p/499281#M85111</link>
      <description>&lt;P&gt;No, I never found a way to make this work.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 14:52:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Set-up-log-to-metrics-from-Universal-Forwarder-to-Splunk/m-p/499281#M85111</guid>
      <dc:creator>hrecker</dc:creator>
      <dc:date>2020-01-23T14:52:08Z</dc:date>
    </item>
  </channel>
</rss>

