<?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 Forwarder Field Extractions from Source in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-Field-Extractions-from-Source/m-p/381162#M68762</link>
    <description>&lt;P&gt;@ifeldshteyn &lt;/P&gt;

&lt;P&gt;Field extraction using Splunk can be done only at parsing phase not on input phase expect for some types like CSV, JSON etc.&lt;/P&gt;

&lt;P&gt;So either HF in between UF and Indexer which can do the work. OR do the direct extraction on Indexer.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Feb 2019 07:02:13 GMT</pubDate>
    <dc:creator>vishaltaneja070</dc:creator>
    <dc:date>2019-02-11T07:02:13Z</dc:date>
    <item>
      <title>Splunk Forwarder Field Extractions from Source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-Field-Extractions-from-Source/m-p/381157#M68757</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I think I know the answer but just want to confirm it. I have a Universal Forwarder and want to extract a field from source and send it to the indexer.  It's a regular log (not a CSV, PSV etc...) so I guess I cannot (?) use INDEXED_EXTRACTIONS. &lt;/P&gt;

&lt;P&gt;&lt;EM&gt;inputs.conf&lt;/EM&gt;&lt;BR /&gt;
&lt;STRONG&gt;[monitor://C:\test\testname.log]&lt;BR /&gt;
sourcetype = mytest&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;props.conf&lt;/EM&gt;&lt;BR /&gt;
&lt;STRONG&gt;[mytest]&lt;BR /&gt;
EXTRACT-mytest= C:\test2\(?.+).log in source&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;If I add this settings to a non-forwarder splunk instance it works perfectly. I am able to extract mytest (&lt;STRONG&gt;testname&lt;/STRONG&gt; in this example) variable from the source. If I copy the same settings to my universal forwarder it won't work, the data is forwarder but the field is not extracted. Do I have to convert it to a heavy forwarder? Or add these extractions to our indexers?&lt;/P&gt;

&lt;P&gt;Was reading this --&amp;gt; &lt;A href="https://answers.splunk.com/answers/155234/field-extractions-dont-work-for-forwarded-input-from-universal-forwarder.html?utm_source=typeahead&amp;amp;utm_medium=newquestion&amp;amp;utm_campaign=no_votes_sort_relev"&gt;https://answers.splunk.com/answers/155234/field-extractions-dont-work-for-forwarded-input-from-universal-forwarder.html?utm_source=typeahead&amp;amp;utm_medium=newquestion&amp;amp;utm_campaign=no_votes_sort_relev&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Based on the above, just making sure that Universal Forwarders are not able to extract fields from source unless they are certain file types like CSV, TSV etc... And if it is possible, can someone pass along an example with props ?&lt;/P&gt;

&lt;P&gt;Thanks! &lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2018 18:16:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-Field-Extractions-from-Source/m-p/381157#M68757</guid>
      <dc:creator>ifeldshteyn</dc:creator>
      <dc:date>2018-12-26T18:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Forwarder Field Extractions from Source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-Field-Extractions-from-Source/m-p/381158#M68758</link>
      <description>&lt;P&gt;Inputs.conf goes on your forwarders.  props.conf goes on the indexers.&lt;BR /&gt;&lt;BR /&gt;
See &lt;A href="https://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings%3F"&gt;https://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings%3F&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2018 18:55:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-Field-Extractions-from-Source/m-p/381158#M68758</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-12-26T18:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Forwarder Field Extractions from Source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-Field-Extractions-from-Source/m-p/381159#M68759</link>
      <description>&lt;P&gt;Are you sure that's correct? I am currently using INDEXED_EXTRACTIONS stanza on CSV files defined in props.conf on a Universal Forwarder. It's able to extract csv column names and assign them the values in each row. &lt;/P&gt;

&lt;P&gt;Example below..&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;inputs.conf&lt;/EM&gt;&lt;BR /&gt;
&lt;STRONG&gt;[monitor:///var/log/csvdata]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
sourcetype = csvdata&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;props.conf&lt;/EM&gt;&lt;BR /&gt;
&lt;STRONG&gt;[csvdata]&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
REPORT-csvdata= csvdata_extracts&lt;BR /&gt;
INDEXED_EXTRACTIONS = CSV&lt;BR /&gt;
HEADER_FIELD_LINE_NUMBER=1&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;transforms.conf&lt;/EM&gt;&lt;BR /&gt;
&lt;STRONG&gt;[csvdata_extracts]&lt;BR /&gt;
DELIM = ","&lt;BR /&gt;
FIELDS = RunDate,FilerName,UserName,events_sub_Count&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:32:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-Field-Extractions-from-Source/m-p/381159#M68759</guid>
      <dc:creator>ifeldshteyn</dc:creator>
      <dc:date>2020-09-29T22:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Forwarder Field Extractions from Source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-Field-Extractions-from-Source/m-p/381160#M68760</link>
      <description>&lt;P&gt;Yes, I'm sure.  Newer UFs can do some parsing, but the general rule is to put props.conf on the indexer.  You may also need to put it on your search heads if it contains search-time properties (like REPORT-*).&lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2018 21:28:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-Field-Extractions-from-Source/m-p/381160#M68760</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-12-26T21:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Forwarder Field Extractions from Source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-Field-Extractions-from-Source/m-p/381161#M68761</link>
      <description>&lt;P&gt;Every &lt;CODE&gt;inputs.conf&lt;/CODE&gt; file goes on the &lt;CODE&gt;Forwarder&lt;/CODE&gt; (the place that contains/pulls-in the data).  Whenever you are using &lt;CODE&gt;EXTRACT-&lt;/CODE&gt; in &lt;CODE&gt;props.conf&lt;/CODE&gt;, that needs to go on your &lt;CODE&gt;Search Head&lt;/CODE&gt; (not &lt;CODE&gt;Indexers&lt;/CODE&gt; as some have said).&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 06:30:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-Field-Extractions-from-Source/m-p/381161#M68761</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-02-11T06:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Forwarder Field Extractions from Source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-Field-Extractions-from-Source/m-p/381162#M68762</link>
      <description>&lt;P&gt;@ifeldshteyn &lt;/P&gt;

&lt;P&gt;Field extraction using Splunk can be done only at parsing phase not on input phase expect for some types like CSV, JSON etc.&lt;/P&gt;

&lt;P&gt;So either HF in between UF and Indexer which can do the work. OR do the direct extraction on Indexer.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 07:02:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-Field-Extractions-from-Source/m-p/381162#M68762</guid>
      <dc:creator>vishaltaneja070</dc:creator>
      <dc:date>2019-02-11T07:02:13Z</dc:date>
    </item>
  </channel>
</rss>

