<?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: Why are we only able to extract the first value of a comma separated list for a given field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-are-we-only-able-to-extract-the-first-value-of-a-comma/m-p/432333#M123534</link>
    <description>&lt;P&gt;You will have to create your own sourcetype-based field extraction on your search head like this:&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yourSourcetypeHere]
REPORT-CustomKVPs = CustomKVPs
KV_MODE = none
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[Custom_KVPs]
REGEX = ([^\s=]+)\s*=\s*([^\s=]+)
FORMAT = $1::$2
REPEAT_MATCH = true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 17 Jun 2019 19:48:47 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-06-17T19:48:47Z</dc:date>
    <item>
      <title>Why are we only able to extract the first value of a comma separated list for a given field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-we-only-able-to-extract-the-first-value-of-a-comma/m-p/432328#M123529</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;(In Splunk) I am only able to extract the first value of a comma-separated list for a given field in which the file has results- &lt;BR /&gt;
only 1 result or group of results with comma separated.&lt;BR /&gt;
How do I retrieve all values when I call the file to the table.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 16:42:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-we-only-able-to-extract-the-first-value-of-a-comma/m-p/432328#M123529</guid>
      <dc:creator>varunawasthi9</dc:creator>
      <dc:date>2019-06-17T16:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Why are we only able to extract the first value of a comma separated list for a given field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-we-only-able-to-extract-the-first-value-of-a-comma/m-p/432329#M123530</link>
      <description>&lt;P&gt;Please try again and have somebody proofread your post.  Your problem is unclear.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 17:06:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-we-only-able-to-extract-the-first-value-of-a-comma/m-p/432329#M123530</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-06-17T17:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why are we only able to extract the first value of a comma separated list for a given field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-we-only-able-to-extract-the-first-value-of-a-comma/m-p/432330#M123531</link>
      <description>&lt;P&gt;Perhaps you are trying to splunk a field which is a CSV into multiple values; if so, try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | makemv delim="," YourFieldCSV
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval YourNewField = splunk(YourFieldCSV, ",")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Jun 2019 17:08:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-we-only-able-to-extract-the-first-value-of-a-comma/m-p/432330#M123531</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-06-17T17:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why are we only able to extract the first value of a comma separated list for a given field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-we-only-able-to-extract-the-first-value-of-a-comma/m-p/432331#M123532</link>
      <description>&lt;P&gt;no not in csv,  it a set of data in which a particular filed in events is like that &lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 18:51:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-we-only-able-to-extract-the-first-value-of-a-comma/m-p/432331#M123532</guid>
      <dc:creator>varunawasthi9</dc:creator>
      <dc:date>2019-06-17T18:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Why are we only able to extract the first value of a comma separated list for a given field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-we-only-able-to-extract-the-first-value-of-a-comma/m-p/432332#M123533</link>
      <description>&lt;P&gt;eg:&lt;/P&gt;

&lt;P&gt;filedaccount = 123456,456789,789789&lt;/P&gt;

&lt;P&gt;in same filedaccount= 123456&lt;/P&gt;

&lt;P&gt;so when i search or get in table only i get is&lt;BR /&gt;
1 123456&lt;BR /&gt;
2 123456&lt;/P&gt;

&lt;P&gt;I want like it gets me complete data &lt;BR /&gt;
1 123456,456789,789789&lt;BR /&gt;
2 123456&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 19:30:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-we-only-able-to-extract-the-first-value-of-a-comma/m-p/432332#M123533</guid>
      <dc:creator>varunawasthi9</dc:creator>
      <dc:date>2019-06-17T19:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Why are we only able to extract the first value of a comma separated list for a given field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-we-only-able-to-extract-the-first-value-of-a-comma/m-p/432333#M123534</link>
      <description>&lt;P&gt;You will have to create your own sourcetype-based field extraction on your search head like this:&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yourSourcetypeHere]
REPORT-CustomKVPs = CustomKVPs
KV_MODE = none
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[Custom_KVPs]
REGEX = ([^\s=]+)\s*=\s*([^\s=]+)
FORMAT = $1::$2
REPEAT_MATCH = true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Jun 2019 19:48:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-we-only-able-to-extract-the-first-value-of-a-comma/m-p/432333#M123534</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-06-17T19:48:47Z</dc:date>
    </item>
  </channel>
</rss>

