<?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: Field extraction in cab in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-in-cab/m-p/32740#M6865</link>
    <description>&lt;P&gt;not all user-agent strings contain commas.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Aug 2013 08:23:57 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2013-08-13T08:23:57Z</dc:date>
    <item>
      <title>Field extraction in cab</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-in-cab/m-p/32737#M6862</link>
      <description>&lt;P&gt;I have a csv file with following format:&lt;/P&gt;

&lt;P&gt;105723,1614:79660877,United States,Mozilla/5.0 (Windows NT 6.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36,,2013-08-06 07:09:49.100000000,92253497&lt;/P&gt;

&lt;P&gt;I have done the field extraction on this file delimiting on a comma(,). The problem I am facing is that one of the fields has a comma embedded in it because of which the entries are coming under different column names. Also, this type of log format is not the same in all rows of the csv file. How can I eliminate either (abcd ,efgh), i.e., whole value including the parenthesis or can I ignore the comma between the parenthesis.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2013 07:13:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-in-cab/m-p/32737#M6862</guid>
      <dc:creator>lohit</dc:creator>
      <dc:date>2013-08-13T07:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction in cab</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-in-cab/m-p/32738#M6863</link>
      <description>&lt;P&gt;One way to do it would be to use SEDCMD in props.conf, by which you could remove anything within parentheses, if there is a comma there. &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Not able to test it at the moment, but something like this ought to work as a starting point;&lt;/P&gt;

&lt;P&gt;props.conf (on your indexer, &lt;A href="http://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings"&gt;or wherever the parsing phase takes place&lt;/A&gt;)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your_sourcetype]
SEDCMD-drop_bad_comma = s/\s\([^\),]+,[^\)]+\)\s/ /g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;K&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2013 08:17:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-in-cab/m-p/32738#M6863</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-08-13T08:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction in cab</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-in-cab/m-p/32739#M6864</link>
      <description>&lt;P&gt;Also, this type of log format is not the same in all rows&lt;/P&gt;

&lt;P&gt;Not sure what you mean here.  Do you mean the (abcd,efgh) is not always in the same column?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2013 08:19:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-in-cab/m-p/32739#M6864</guid>
      <dc:creator>davecroto</dc:creator>
      <dc:date>2013-08-13T08:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction in cab</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-in-cab/m-p/32740#M6865</link>
      <description>&lt;P&gt;not all user-agent strings contain commas.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2013 08:23:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-in-cab/m-p/32740#M6865</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-08-13T08:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction in cab</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-in-cab/m-p/32741#M6866</link>
      <description>&lt;P&gt;@davecroto,kristian&lt;/P&gt;

&lt;P&gt;I wanted to say that not in all rows(abcd,efgh) is coming. Sure entries are coming but in some fields delimeted by (;) like (abcd;efgh). I know it is a bad file genrated but this is all i have.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2013 09:12:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-in-cab/m-p/32741#M6866</guid>
      <dc:creator>lohit</dc:creator>
      <dc:date>2013-08-13T09:12:58Z</dc:date>
    </item>
  </channel>
</rss>

