<?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: props.conf in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-exclude-5th-column-from-a-CSV-file-using-props-conf-and/m-p/598244#M12586</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244498"&gt;@super_saiyan&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;are you speaking of exclusion from indexing (at index time) or from result displaying (at search time)?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Wed, 18 May 2022 06:59:41 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-05-18T06:59:41Z</dc:date>
    <item>
      <title>How do I exclude 5th column from a CSV file using props.conf and tranforms.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-exclude-5th-column-from-a-CSV-file-using-props-conf-and/m-p/598240#M12585</link>
      <description>&lt;P&gt;Can someone please guide me how do i exclude 5th column from a CSV file using props.conf and tranform.conf&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's assume i have 100 column in my csv file.&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 16:26:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-exclude-5th-column-from-a-CSV-file-using-props-conf-and/m-p/598240#M12585</guid>
      <dc:creator>super_saiyan</dc:creator>
      <dc:date>2022-05-18T16:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-exclude-5th-column-from-a-CSV-file-using-props-conf-and/m-p/598244#M12586</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244498"&gt;@super_saiyan&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;are you speaking of exclusion from indexing (at index time) or from result displaying (at search time)?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 06:59:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-exclude-5th-column-from-a-CSV-file-using-props-conf-and/m-p/598244#M12586</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-05-18T06:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-exclude-5th-column-from-a-CSV-file-using-props-conf-and/m-p/598247#M12587</link>
      <description>&lt;P&gt;If you want to filter the column from indexing, you need to simply use a SEDCMD within your props.conf and that's it. The tricky part might be working out the proper regex considering that csv files can usually have quoted strings including commas and quoted quotes which makes acoounting for all possibilities... annoying.&lt;/P&gt;&lt;P&gt;For a start, _not_ taking into account all those cases, just assuming that you have simple values between commas, you need something like that in props.conf stanza for your source/sourcetype/host:&lt;/P&gt;&lt;PRE&gt;SEDCMD-cutcolumn = s/^(([^,]*,){4})[^,]*,/\1/&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Might not work properly with less than 6 solumns present in the input&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 07:11:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-exclude-5th-column-from-a-CSV-file-using-props-conf-and/m-p/598247#M12587</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-05-18T07:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-exclude-5th-column-from-a-CSV-file-using-props-conf-and/m-p/598274#M12590</link>
      <description>&lt;P&gt;Thanks for the quick response&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;yes, I'm referring to the&amp;nbsp;&lt;SPAN&gt;exclusion from indexing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;could you please help&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 09:21:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-exclude-5th-column-from-a-CSV-file-using-props-conf-and/m-p/598274#M12590</guid>
      <dc:creator>super_saiyan</dc:creator>
      <dc:date>2022-05-18T09:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-exclude-5th-column-from-a-CSV-file-using-props-conf-and/m-p/598276#M12591</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244498"&gt;@super_saiyan&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;as hinted by&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;, you have to use the SEDCMD command or use props and transforms associated to the sourcetype you're using.&lt;/P&gt;&lt;P&gt;In few words, you have to find the regex to identify the column to exclude, e.g. if you have 100 columns divided by comma ",", you could use a regex like this:&lt;/P&gt;&lt;P&gt;in props.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[your_sourcetype]
TRANSFORMS-delete_column_80 = delete_column_80&lt;/LI-CODE&gt;&lt;P&gt;in transforms.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[delete_column_80]
REGEX = ^(([^,]+,){80})[^,]+,(([^,]+,){19})
FORMAT = $1$2
DEST_KEY = _raw&lt;/LI-CODE&gt;&lt;P&gt;For more infos see at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.6/Data/Anonymizedata" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.6/Data/Anonymizedata&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 09:33:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-exclude-5th-column-from-a-CSV-file-using-props-conf-and/m-p/598276#M12591</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-05-18T09:33:49Z</dc:date>
    </item>
  </channel>
</rss>

