<?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 How to extract a string in a CSV where the field position can have multiple different values? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-in-a-CSV-where-the-field-position-can/m-p/339424#M100661</link>
    <description>&lt;P&gt;Hello -&lt;/P&gt;

&lt;P&gt;I'm trying to extract a field from a CSV. The problem is the 9th position can have several different values. I need the field for the "700 Auth_Method_success" value. When I set up the field, I'm getting the "70..." alone with all the other possible values.  &lt;/P&gt;

&lt;P&gt;EXAMPLE&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;246436066,Application,SSH Tectia Server,INFORMATION,abc.def.ghi.com,9/13/2017 9:28:55 AM,0,None,"700 Auth_method_success, Username: custdm10/ECS-40ZV,
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks.&lt;/P&gt;

&lt;P&gt;Carl&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 15:47:15 GMT</pubDate>
    <dc:creator>johnca00</dc:creator>
    <dc:date>2020-09-29T15:47:15Z</dc:date>
    <item>
      <title>How to extract a string in a CSV where the field position can have multiple different values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-in-a-CSV-where-the-field-position-can/m-p/339424#M100661</link>
      <description>&lt;P&gt;Hello -&lt;/P&gt;

&lt;P&gt;I'm trying to extract a field from a CSV. The problem is the 9th position can have several different values. I need the field for the "700 Auth_Method_success" value. When I set up the field, I'm getting the "70..." alone with all the other possible values.  &lt;/P&gt;

&lt;P&gt;EXAMPLE&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;246436066,Application,SSH Tectia Server,INFORMATION,abc.def.ghi.com,9/13/2017 9:28:55 AM,0,None,"700 Auth_method_success, Username: custdm10/ECS-40ZV,
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks.&lt;/P&gt;

&lt;P&gt;Carl&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:47:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-in-a-CSV-where-the-field-position-can/m-p/339424#M100661</guid>
      <dc:creator>johnca00</dc:creator>
      <dc:date>2020-09-29T15:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a string in a CSV where the field position can have multiple different values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-in-a-CSV-where-the-field-position-can/m-p/339425#M100662</link>
      <description>&lt;P&gt;@johnca00, you need to add more details for your question and example.&lt;/P&gt;

&lt;P&gt;Do you have issue with field name or field value at 9th position?&lt;BR /&gt;
What are some of the different samples for 9th position?&lt;BR /&gt;
Does it start with double quotes and does not have an ending double quote?&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;"700 Auth_method_success,&lt;/CODE&gt;&lt;BR /&gt;
Please also explain what you mean by &lt;CODE&gt;I'm getting the "70..." alone with all the other possible values&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 02:13:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-in-a-CSV-where-the-field-position-can/m-p/339425#M100662</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-09-15T02:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a string in a CSV where the field position can have multiple different values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-in-a-CSV-where-the-field-position-can/m-p/339426#M100663</link>
      <description>&lt;P&gt;Hello - &lt;/P&gt;

&lt;P&gt;Sorry for the typo. During the extract I see just the '700 Auth...."  When I add the field to my search I'm see all the possible values. &lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 10:14:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-in-a-CSV-where-the-field-position-can/m-p/339426#M100663</guid>
      <dc:creator>johnca00</dc:creator>
      <dc:date>2017-09-15T10:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a string in a CSV where the field position can have multiple different values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-in-a-CSV-where-the-field-position-can/m-p/339427#M100664</link>
      <description>&lt;P&gt;Sorry for the typo. During the field extract I'm seeing only the '700 auth....'.  When I put the field into a search it's returning all possible values, not just the '700 auth...' &lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 10:30:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-in-a-CSV-where-the-field-position-can/m-p/339427#M100664</guid>
      <dc:creator>johnca00</dc:creator>
      <dc:date>2017-09-15T10:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a string in a CSV where the field position can have multiple different values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-in-a-CSV-where-the-field-position-can/m-p/339428#M100665</link>
      <description>&lt;P&gt;how are you extracting the field?&lt;BR /&gt;
Why can't you just use a , as delimiter since all fields are separated by commas in your sample. You can then rename field9 as whatever you want during extraction. I think you might have tried using regex extraction from the web and selected just '700 auth' field as a sample. This will only return this specific value only.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 17:27:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-in-a-CSV-where-the-field-position-can/m-p/339428#M100665</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2017-09-15T17:27:21Z</dc:date>
    </item>
  </channel>
</rss>

