<?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 combine two fields, but add quotations marks around one of the fields prior to combining? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-two-fields-but-add-quotations-marks-around-one-of/m-p/179494#M186820</link>
    <description>&lt;P&gt;This works for me:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval combstr=A+" "+"\""+B+"\""
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 26 Jun 2015 15:04:20 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2015-06-26T15:04:20Z</dc:date>
    <item>
      <title>How to combine two fields, but add quotations marks around one of the fields prior to combining?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-two-fields-but-add-quotations-marks-around-one-of/m-p/179493#M186819</link>
      <description>&lt;P&gt;Hello folks,&lt;/P&gt;

&lt;P&gt;I am trying to combine two fields by string; however, I need to put quotation marks around one of the fields prior to combining.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;A            B
coc19        /afs/po101        
coc20        D:
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want the output to look like:&lt;/P&gt;

&lt;P&gt;COMBINED STRING&lt;BR /&gt;
coc19 "/afs/po101"&lt;BR /&gt;
coc20 "D:"&lt;/P&gt;

&lt;P&gt;What should I do to &lt;CODE&gt;eval combstr = A +" "+B&lt;/CODE&gt; to add quotation marks?&lt;/P&gt;

&lt;P&gt;I would appreciate your input&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2015 14:56:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-two-fields-but-add-quotations-marks-around-one-of/m-p/179493#M186819</guid>
      <dc:creator>minkyuk</dc:creator>
      <dc:date>2015-06-26T14:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine two fields, but add quotations marks around one of the fields prior to combining?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-two-fields-but-add-quotations-marks-around-one-of/m-p/179494#M186820</link>
      <description>&lt;P&gt;This works for me:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval combstr=A+" "+"\""+B+"\""
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Jun 2015 15:04:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-two-fields-but-add-quotations-marks-around-one-of/m-p/179494#M186820</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-06-26T15:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine two fields, but add quotations marks around one of the fields prior to combining?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-two-fields-but-add-quotations-marks-around-one-of/m-p/179495#M186821</link>
      <description>&lt;P&gt;Thank you sir&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2015 15:23:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-two-fields-but-add-quotations-marks-around-one-of/m-p/179495#M186821</guid>
      <dc:creator>minkyuk</dc:creator>
      <dc:date>2015-06-26T15:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine two fields, but add quotations marks around one of the fields prior to combining?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-two-fields-but-add-quotations-marks-around-one-of/m-p/179496#M186822</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
Try this search code &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ......|eval COMBINED_STRING=A." "."\"".B."\""
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Jun 2015 15:42:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-two-fields-but-add-quotations-marks-around-one-of/m-p/179496#M186822</guid>
      <dc:creator>chimell</dc:creator>
      <dc:date>2015-06-26T15:42:26Z</dc:date>
    </item>
  </channel>
</rss>

