<?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: Field Extraction - Calculated field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Field-Extraction-How-draft-the-if-condition-to-achieve/m-p/608681#M211652</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;user = coalesce(cmdid, userid, "unknown")&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 08 Aug 2022 12:15:41 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2022-08-08T12:15:41Z</dc:date>
    <item>
      <title>Help with Field Extraction - How draft the if condition to achieve following logic?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Field-Extraction-How-draft-the-if-condition-to-achieve/m-p/608676#M211650</link>
      <description>&lt;P&gt;I want to do a field extraction for my sourcetype under the Fields-&amp;gt; Calculated Fields section. Confused how to draft the if condition to achieve the following logic.&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;Condition.&lt;/U&gt;&lt;BR /&gt;Some events contain&amp;nbsp; only the userid field, for those, check if it is not null/empty, then fetch the userid field as user or fill unknown&lt;BR /&gt;Some events contain both userid and cmdid field, in this case (if the event has both these fields) cmdid is the real user field. so the logic in both cases should first compare the existence of those 2 fields and then accordingly derive.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 14:16:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Field-Extraction-How-draft-the-if-condition-to-achieve/m-p/608676#M211650</guid>
      <dc:creator>zacksoft_wf</dc:creator>
      <dc:date>2022-08-09T14:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction - Calculated field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Field-Extraction-How-draft-the-if-condition-to-achieve/m-p/608681#M211652</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;user = coalesce(cmdid, userid, "unknown")&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 08 Aug 2022 12:15:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Field-Extraction-How-draft-the-if-condition-to-achieve/m-p/608681#M211652</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-08-08T12:15:41Z</dc:date>
    </item>
  </channel>
</rss>

