<?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: What is the difference between the Eval and the FIELDALIAS commands? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-difference-between-the-Eval-and-the-FIELDALIAS/m-p/457007#M166768</link>
    <description>&lt;P&gt;@shayhibah please see the answer I placed on your other answers ask found here:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/657473/fieldalias-override-another-fieldalias.html?childToView=762283#answer-762283"&gt;https://answers.splunk.com/answers/657473/fieldalias-override-another-fieldalias.html?childToView=762283#answer-762283&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps give some clarity to you for the FIELDALIAS function and its limitations!&lt;/P&gt;</description>
    <pubDate>Thu, 01 Aug 2019 23:08:55 GMT</pubDate>
    <dc:creator>lwest_splunk</dc:creator>
    <dc:date>2019-08-01T23:08:55Z</dc:date>
    <item>
      <title>What is the difference between the Eval and the FIELDALIAS commands?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-difference-between-the-Eval-and-the-FIELDALIAS/m-p/457003#M166764</link>
      <description>&lt;P&gt;I am wondering what is the difference between eval &amp;amp; fieldalias commands?&lt;/P&gt;

&lt;P&gt;For example:&lt;BR /&gt;
EVAL-app = if(isnull(service),app,service)&lt;BR /&gt;
FIELDALIAS-log = service AS app&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;In the first case, if service is null, app stay as is.&lt;BR /&gt;
In the second case, if service is null, app is null.&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Can someone explain it please?&lt;/STRONG&gt;&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2018 05:12:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-difference-between-the-Eval-and-the-FIELDALIAS/m-p/457003#M166764</guid>
      <dc:creator>shayhibah</dc:creator>
      <dc:date>2018-11-01T05:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between the Eval and the FIELDALIAS commands?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-difference-between-the-Eval-and-the-FIELDALIAS/m-p/457004#M166765</link>
      <description>&lt;P&gt;@shayhibah&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Search-time operation sequence&lt;/STRONG&gt; will help you to understand this. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.2.0/Knowledge/Searchtimeoperationssequence"&gt;http://docs.splunk.com/Documentation/Splunk/7.2.0/Knowledge/Searchtimeoperationssequence&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2018 05:49:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-difference-between-the-Eval-and-the-FIELDALIAS/m-p/457004#M166765</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-11-01T05:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between the Eval and the FIELDALIAS commands?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-difference-between-the-Eval-and-the-FIELDALIAS/m-p/457005#M166766</link>
      <description>&lt;P&gt;I read this page and it gave me some more information but I still cannot understand why the output of FILEDALIAS is null in some cases.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2018 06:52:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-difference-between-the-Eval-and-the-FIELDALIAS/m-p/457005#M166766</guid>
      <dc:creator>shayhibah</dc:creator>
      <dc:date>2018-11-01T06:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between the Eval and the FIELDALIAS commands?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-difference-between-the-Eval-and-the-FIELDALIAS/m-p/457006#M166767</link>
      <description>&lt;P&gt;@shayhibah&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;1)&lt;/STRONG&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EVAL-app = if(isnull(service),app,service)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In this case, we are deciding &lt;CODE&gt;app&lt;/CODE&gt; field on the &lt;STRONG&gt;basis of the&lt;/STRONG&gt; &lt;CODE&gt;service&lt;/CODE&gt;. If &lt;CODE&gt;service&lt;/CODE&gt; is not available then &lt;CODE&gt;app&lt;/CODE&gt; will be the &lt;STRONG&gt;same value available&lt;/STRONG&gt; in the event. which can be &lt;STRONG&gt;null&lt;/STRONG&gt; (if &lt;CODE&gt;app&lt;/CODE&gt; not found in the event) or &lt;STRONG&gt;not null&lt;/STRONG&gt; (if &lt;CODE&gt;app&lt;/CODE&gt; found in the event).  So if &lt;CODE&gt;service&lt;/CODE&gt; field is available then &lt;CODE&gt;service&lt;/CODE&gt; will be assigned to the &lt;CODE&gt;app&lt;/CODE&gt; field.  if &lt;CODE&gt;service&lt;/CODE&gt; field is &lt;STRONG&gt;not available&lt;/STRONG&gt; then &lt;CODE&gt;app&lt;/CODE&gt; will be assigned to &lt;CODE&gt;app&lt;/CODE&gt; (if the event has &lt;CODE&gt;app&lt;/CODE&gt; field ). if &lt;CODE&gt;app&lt;/CODE&gt; field is &lt;STRONG&gt;not available&lt;/STRONG&gt; then &lt;CODE&gt;app&lt;/CODE&gt; will be &lt;STRONG&gt;null&lt;/STRONG&gt;.  &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;FIELDALIAS-log = service AS app
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In this case, we are deciding &lt;CODE&gt;app&lt;/CODE&gt; field on the basis of the &lt;CODE&gt;service&lt;/CODE&gt; field &lt;STRONG&gt;regardless of field&lt;/STRONG&gt; available or not. So if &lt;CODE&gt;service&lt;/CODE&gt; field is available then &lt;CODE&gt;service&lt;/CODE&gt; will be assigned to the &lt;CODE&gt;app&lt;/CODE&gt;. if &lt;CODE&gt;service&lt;/CODE&gt; field is not available then &lt;CODE&gt;app&lt;/CODE&gt; will be &lt;STRONG&gt;null&lt;/STRONG&gt;.  &lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2018 08:05:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-difference-between-the-Eval-and-the-FIELDALIAS/m-p/457006#M166767</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-11-01T08:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between the Eval and the FIELDALIAS commands?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-difference-between-the-Eval-and-the-FIELDALIAS/m-p/457007#M166768</link>
      <description>&lt;P&gt;@shayhibah please see the answer I placed on your other answers ask found here:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/657473/fieldalias-override-another-fieldalias.html?childToView=762283#answer-762283"&gt;https://answers.splunk.com/answers/657473/fieldalias-override-another-fieldalias.html?childToView=762283#answer-762283&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps give some clarity to you for the FIELDALIAS function and its limitations!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 23:08:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-difference-between-the-Eval-and-the-FIELDALIAS/m-p/457007#M166768</guid>
      <dc:creator>lwest_splunk</dc:creator>
      <dc:date>2019-08-01T23:08:55Z</dc:date>
    </item>
  </channel>
</rss>

