<?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 Filter csv logs before indexing in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Filter-csv-logs-before-indexing/m-p/298343#M56452</link>
    <description>&lt;P&gt;I want exclude fields bar and baz with all their values before indexing.&lt;/P&gt;

&lt;P&gt;I have CSV log:&lt;BR /&gt;
foo,bar,baz &lt;BR /&gt;
abc,123,456 &lt;BR /&gt;
abcd,234,567 &lt;BR /&gt;
abcd,456,567 &lt;BR /&gt;
bcd,345,678&lt;/P&gt;

&lt;P&gt;How I can do it?&lt;/P&gt;

&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Wed, 17 May 2017 13:24:21 GMT</pubDate>
    <dc:creator>krylov</dc:creator>
    <dc:date>2017-05-17T13:24:21Z</dc:date>
    <item>
      <title>Filter csv logs before indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-csv-logs-before-indexing/m-p/298343#M56452</link>
      <description>&lt;P&gt;I want exclude fields bar and baz with all their values before indexing.&lt;/P&gt;

&lt;P&gt;I have CSV log:&lt;BR /&gt;
foo,bar,baz &lt;BR /&gt;
abc,123,456 &lt;BR /&gt;
abcd,234,567 &lt;BR /&gt;
abcd,456,567 &lt;BR /&gt;
bcd,345,678&lt;/P&gt;

&lt;P&gt;How I can do it?&lt;/P&gt;

&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 13:24:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-csv-logs-before-indexing/m-p/298343#M56452</guid>
      <dc:creator>krylov</dc:creator>
      <dc:date>2017-05-17T13:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Filter csv logs before indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-csv-logs-before-indexing/m-p/298344#M56453</link>
      <description>&lt;P&gt;Try this method:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/109253/how-to-filter-or-extract-fields-before-indexing-time.html"&gt;https://answers.splunk.com/answers/109253/how-to-filter-or-extract-fields-before-indexing-time.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I have tested this with a CSV file and it works.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;SAMPLE DATA&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;field1,field2,field3,field4
a1,a2,a3,a4
b1,b2,b3,b4
c1,c2,c3,c4
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[excludefields_ex]
TRANSFORMS-somefields = somefields
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[somefields]
DEST_KEY = _raw
REGEX = (\S+),(\S+),(\S+),(\S+)
FORMAT =  $1 $3
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 May 2017 14:02:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-csv-logs-before-indexing/m-p/298344#M56453</guid>
      <dc:creator>kmorris_splunk</dc:creator>
      <dc:date>2017-05-17T14:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Filter csv logs before indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-csv-logs-before-indexing/m-p/298345#M56454</link>
      <description>&lt;P&gt;Thanks you! It really works&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 10:21:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-csv-logs-before-indexing/m-p/298345#M56454</guid>
      <dc:creator>krylov</dc:creator>
      <dc:date>2017-05-18T10:21:53Z</dc:date>
    </item>
  </channel>
</rss>

