<?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 populate field B with field A or field B depending if null in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-populate-field-B-with-field-A-or-field-B-depending-if/m-p/610512#M212328</link>
    <description>&lt;LI-CODE lang="markup"&gt;| eval FieldB=if(like(computername, "ABC%"), "Yes", FieldC)&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 23 Aug 2022 15:14:01 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-08-23T15:14:01Z</dc:date>
    <item>
      <title>How to populate field B with field A or field B depending if null?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-populate-field-B-with-field-A-or-field-B-depending-if/m-p/610508#M212324</link>
      <description>&lt;P&gt;I can't figure out the correct syntax for the second eval statement or what else I should use instead of eval. I know the second eval statement syntax is incorrect, I am just placing it here so you can understand what I am trying to accomplish.&lt;/P&gt;
&lt;P&gt;| eval FieldA=if(like(computername, "ABC%"), "Yes", "No")&lt;BR /&gt;| eval FieldB = if FieldA="No", then FieldB = FieldC, else FieldB = FieldA&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 15:27:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-populate-field-B-with-field-A-or-field-B-depending-if/m-p/610508#M212324</guid>
      <dc:creator>jalo23</dc:creator>
      <dc:date>2022-08-23T15:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to populate field B with field A or field B depending if null</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-populate-field-B-with-field-A-or-field-B-depending-if/m-p/610512#M212328</link>
      <description>&lt;LI-CODE lang="markup"&gt;| eval FieldB=if(like(computername, "ABC%"), "Yes", FieldC)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 23 Aug 2022 15:14:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-populate-field-B-with-field-A-or-field-B-depending-if/m-p/610512#M212328</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-08-23T15:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to populate field B with field A or field B depending if null</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-populate-field-B-with-field-A-or-field-B-depending-if/m-p/610513#M212329</link>
      <description>&lt;P&gt;Thank you, I appreciate your super-fast response! works perfectly!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 15:24:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-populate-field-B-with-field-A-or-field-B-depending-if/m-p/610513#M212329</guid>
      <dc:creator>jalo23</dc:creator>
      <dc:date>2022-08-23T15:24:53Z</dc:date>
    </item>
  </channel>
</rss>

