<?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: How to get total comma separated values in splunk? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-total-comma-separated-values-in-splunk/m-p/406158#M72046</link>
    <description>&lt;P&gt;can you share one sample event of your raw data?&lt;BR /&gt;
Also try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="" var=* 
| head 1 
| table val 
| rex field=val mode=sed "s/val\=//g"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;let me know if this helps!&lt;/P&gt;</description>
    <pubDate>Tue, 22 May 2018 09:14:19 GMT</pubDate>
    <dc:creator>mayurr98</dc:creator>
    <dc:date>2018-05-22T09:14:19Z</dc:date>
    <item>
      <title>How to get total comma separated values in splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-total-comma-separated-values-in-splunk/m-p/406155#M72043</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I am getting event like this &lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/4985iF386FD6C54B34D98/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Im trying to get total values with the comma separated but I am not getting them.&lt;/P&gt;

&lt;P&gt;I have written this basic query: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="****"  var=***| head 1 | table val
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But it is not working, please help me out.&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 07:26:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-total-comma-separated-values-in-splunk/m-p/406155#M72043</guid>
      <dc:creator>ajayabburi508</dc:creator>
      <dc:date>2018-05-22T07:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to get total comma separated values in splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-total-comma-separated-values-in-splunk/m-p/406156#M72044</link>
      <description>&lt;P&gt;For the example event you showed us - what would be your desired result? &lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 07:44:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-total-comma-separated-values-in-splunk/m-p/406156#M72044</guid>
      <dc:creator>xpac</dc:creator>
      <dc:date>2018-05-22T07:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to get total comma separated values in splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-total-comma-separated-values-in-splunk/m-p/406157#M72045</link>
      <description>&lt;P&gt;i want out put like this &lt;/P&gt;

&lt;P&gt;val&lt;BR /&gt;
972,972,972,972,972,972,972,972..............................&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 07:48:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-total-comma-separated-values-in-splunk/m-p/406157#M72045</guid>
      <dc:creator>ajayabburi508</dc:creator>
      <dc:date>2018-05-22T07:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to get total comma separated values in splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-total-comma-separated-values-in-splunk/m-p/406158#M72046</link>
      <description>&lt;P&gt;can you share one sample event of your raw data?&lt;BR /&gt;
Also try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="" var=* 
| head 1 
| table val 
| rex field=val mode=sed "s/val\=//g"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;let me know if this helps!&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 09:14:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-total-comma-separated-values-in-splunk/m-p/406158#M72046</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-05-22T09:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to get total comma separated values in splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-total-comma-separated-values-in-splunk/m-p/406159#M72047</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index="****"  var=***| head 1|eval new=_raw | eval neew=split(new,"var=***,val=")| table neew | makemv delim="," neew|mvexpand neew |streamstats count | where count!=1 | fields - count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 May 2018 11:05:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-total-comma-separated-values-in-splunk/m-p/406159#M72047</guid>
      <dc:creator>ajayabburi508</dc:creator>
      <dc:date>2018-05-22T11:05:16Z</dc:date>
    </item>
  </channel>
</rss>

