<?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: Getting commas into a multivalue number field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Getting-commas-into-a-multivalue-number-field/m-p/604618#M210295</link>
    <description>&lt;P&gt;Great post, &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/132293"&gt;@sjbriggs&lt;/a&gt;!&amp;nbsp; Would you mind editing this into a question-and-answer format and then accept the answer?&amp;nbsp; That would make it clearer to future readers that this is a solution rather than an unsolved question.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jul 2022 16:39:44 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2022-07-06T16:39:44Z</dc:date>
    <item>
      <title>Getting commas into a multivalue number field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-commas-into-a-multivalue-number-field/m-p/604615#M210294</link>
      <description>&lt;P&gt;I'm posting this in case someone else has the problem I struggled with.&lt;/P&gt;&lt;P&gt;I had was calculating a list of upload and download totals per webdomain per company location into a list.&amp;nbsp; The format of the table was such that I ended up with the company location, followed by a multivalued list of the web domains, and a multivalued list of the bytes totals.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The bytes totals being 7 to 8 digit numbers are easier to read with commas but the usual formatting solution:&lt;/P&gt;&lt;P&gt;eval Download=tostring(Download, "commas")&lt;BR /&gt;eval Upload=tostring(Upload, "commas")&lt;/P&gt;&lt;P&gt;Had mixed results depending on where in the query I placed it.&amp;nbsp; After the initial transformation command, it messed up my sorting since now it was a string.&amp;nbsp; At the end, it summed the multi-value field and then put the commas in so that didn't help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 14:57:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-commas-into-a-multivalue-number-field/m-p/604615#M210294</guid>
      <dc:creator>sjbriggs</dc:creator>
      <dc:date>2022-07-07T14:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Getting commas into a multivalue number field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-commas-into-a-multivalue-number-field/m-p/604618#M210295</link>
      <description>&lt;P&gt;Great post, &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/132293"&gt;@sjbriggs&lt;/a&gt;!&amp;nbsp; Would you mind editing this into a question-and-answer format and then accept the answer?&amp;nbsp; That would make it clearer to future readers that this is a solution rather than an unsolved question.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 16:39:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-commas-into-a-multivalue-number-field/m-p/604618#M210295</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-07-06T16:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Getting commas into a multivalue number field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-commas-into-a-multivalue-number-field/m-p/604625#M210297</link>
      <description>&lt;P&gt;Finally, I found that mvmap was my solution since I could apply the 'tostring' function on each item after the the final transformation command at the end of my query.&amp;nbsp; No issues with sorting or format of my table at that point.&lt;/P&gt;&lt;P&gt;eval Download=mvmap(Download,tostring(Download, "commas"))&lt;BR /&gt;eval Upload=mvmap(Upload,tostring(Upload, "commas"))&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 16:48:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-commas-into-a-multivalue-number-field/m-p/604625#M210297</guid>
      <dc:creator>sjbriggs</dc:creator>
      <dc:date>2022-07-06T16:48:36Z</dc:date>
    </item>
  </channel>
</rss>

