<?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 can I add quotes and comma to a multivalued field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-add-quotes-and-comma-to-a-multivalued-field/m-p/623795#M216863</link>
    <description>&lt;P&gt;This works! thankyou&lt;/P&gt;</description>
    <pubDate>Fri, 09 Dec 2022 06:17:36 GMT</pubDate>
    <dc:creator>Woodpecker</dc:creator>
    <dc:date>2022-12-09T06:17:36Z</dc:date>
    <item>
      <title>How can I add quotes and comma to a multivalued field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-add-quotes-and-comma-to-a-multivalued-field/m-p/623713#M216821</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;I have a multivalued field with values as&lt;BR /&gt;A&lt;BR /&gt;B&lt;BR /&gt;C&lt;BR /&gt;I want it to be replaced as 'A','B','C' . I tried to do it with eval mvjoin, but the first and last values misses the quote like this&lt;BR /&gt;A','B','C&lt;BR /&gt;&lt;BR /&gt;SPL used is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=* sourcetype=* host=abc NAME IN ("*A*","*B*","*C*") |stats values(NAME) as NAME by host
| eval NAME = mvjoin(NAME,"','")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated, thankyou&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 12:41:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-add-quotes-and-comma-to-a-multivalued-field/m-p/623713#M216821</guid>
      <dc:creator>Woodpecker</dc:creator>
      <dc:date>2022-12-08T12:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add quotes and comma to a multivalued field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-add-quotes-and-comma-to-a-multivalued-field/m-p/623720#M216828</link>
      <description>&lt;P&gt;You're almost there&lt;/P&gt;&lt;P&gt;Modify the last eval with&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval NAME = "'".mvjoin(NAME,"','")."'"&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 08 Dec 2022 13:13:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-add-quotes-and-comma-to-a-multivalued-field/m-p/623720#M216828</guid>
      <dc:creator>StefanoA</dc:creator>
      <dc:date>2022-12-08T13:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add quotes and comma to a multivalued field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-add-quotes-and-comma-to-a-multivalued-field/m-p/623721#M216829</link>
      <description>&lt;LI-CODE lang="markup"&gt;| eval NAME="'".mvjoin(NAME,"','")."'"&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 08 Dec 2022 13:14:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-add-quotes-and-comma-to-a-multivalued-field/m-p/623721#M216829</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-12-08T13:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add quotes and comma to a multivalued field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-add-quotes-and-comma-to-a-multivalued-field/m-p/623795#M216863</link>
      <description>&lt;P&gt;This works! thankyou&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 06:17:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-add-quotes-and-comma-to-a-multivalued-field/m-p/623795#M216863</guid>
      <dc:creator>Woodpecker</dc:creator>
      <dc:date>2022-12-09T06:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add quotes and comma to a multivalued field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-add-quotes-and-comma-to-a-multivalued-field/m-p/623797#M216865</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Is it possible to get values like this: (ie., double quotes instead of single quotes)&lt;BR /&gt;&lt;BR /&gt;"A","B","C"&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 06:29:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-add-quotes-and-comma-to-a-multivalued-field/m-p/623797#M216865</guid>
      <dc:creator>Woodpecker</dc:creator>
      <dc:date>2022-12-09T06:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add quotes and comma to a multivalued field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-add-quotes-and-comma-to-a-multivalued-field/m-p/623800#M216867</link>
      <description>&lt;P&gt;This works for me&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval NAME = "\"".mvjoin(NAME,"\",\"")."\""&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 09 Dec 2022 06:40:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-add-quotes-and-comma-to-a-multivalued-field/m-p/623800#M216867</guid>
      <dc:creator>Woodpecker</dc:creator>
      <dc:date>2022-12-09T06:40:01Z</dc:date>
    </item>
  </channel>
</rss>

