<?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 parse 2 columns with text format together? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-parse-2-columns-with-text-format-together/m-p/467442#M80552</link>
    <description>&lt;P&gt;Is there a space in the field name?&lt;BR /&gt;
If there is a space, please enclose it with a single quote.&lt;/P&gt;

&lt;P&gt;data□1&lt;BR /&gt;
↓&lt;BR /&gt;
'data□1'&lt;/P&gt;</description>
    <pubDate>Wed, 30 Oct 2019 14:50:56 GMT</pubDate>
    <dc:creator>HiroshiSatoh</dc:creator>
    <dc:date>2019-10-30T14:50:56Z</dc:date>
    <item>
      <title>How can I parse 2 columns with text format together?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-parse-2-columns-with-text-format-together/m-p/467439#M80549</link>
      <description>&lt;P&gt;I have 2 columns with text format (data 1 and data 2). One of the two columns is empty. I want to parse the 2 columns into a separate column together (data3).&lt;BR /&gt;&lt;BR /&gt;
&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/7852i5010BCD7E14E08B8/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;P.S &lt;EM&gt;search | eval data3 = coalesce(data1, data2)&lt;/EM&gt; it doesn't work&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 15:20:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-parse-2-columns-with-text-format-together/m-p/467439#M80549</guid>
      <dc:creator>mklhs</dc:creator>
      <dc:date>2019-10-29T15:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: How can I parse 2 columns with text format together?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-parse-2-columns-with-text-format-together/m-p/467440#M80550</link>
      <description>&lt;P&gt;Do I need to add it?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | eval data3 = if(isnull(data1), data2,data1)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Oct 2019 15:56:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-parse-2-columns-with-text-format-together/m-p/467440#M80550</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2019-10-29T15:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can I parse 2 columns with text format together?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-parse-2-columns-with-text-format-together/m-p/467441#M80551</link>
      <description>&lt;P&gt;Hello @HiroshiSatoh,&lt;/P&gt;

&lt;P&gt;the column "data3" is empty. So, the column "data1" and "data2" were not parsed together. Do you know what it might be?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 12:04:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-parse-2-columns-with-text-format-together/m-p/467441#M80551</guid>
      <dc:creator>mklhs</dc:creator>
      <dc:date>2019-10-30T12:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can I parse 2 columns with text format together?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-parse-2-columns-with-text-format-together/m-p/467442#M80552</link>
      <description>&lt;P&gt;Is there a space in the field name?&lt;BR /&gt;
If there is a space, please enclose it with a single quote.&lt;/P&gt;

&lt;P&gt;data□1&lt;BR /&gt;
↓&lt;BR /&gt;
'data□1'&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 14:50:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-parse-2-columns-with-text-format-together/m-p/467442#M80552</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2019-10-30T14:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I parse 2 columns with text format together?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-parse-2-columns-with-text-format-together/m-p/467443#M80553</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval _raw="time,\"data 1\",\"data 2\",\"data 3\"
2019-10-29 15:50:00.109+02:00,#user1#20191029155000#,
2019-10-29 15:51:00.109+02:00,,#user1#20191029155100#,
2019-10-29 15:52:00.109+02:00,#user1#20191029155200#,"
| multikv forceheader=1
| rename data_*_ as "data "*
| table time "data "*
`comment("this is sample data")`
| eval "data 3" = coalesce('data 1','data 2')
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you can describe the field name correctly, &lt;CODE&gt;coalesce&lt;/CODE&gt; works.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Nov 2019 07:53:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-parse-2-columns-with-text-format-together/m-p/467443#M80553</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2019-11-30T07:53:44Z</dc:date>
    </item>
  </channel>
</rss>

