<?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: Is the usage of multiple eval calculations in one pipe a feature or an unsupported hack? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-the-usage-of-multiple-eval-calculations-in-one-pipe-a-feature/m-p/349699#M103516</link>
    <description>&lt;P&gt;I am unaware of any performance difference but both are value.  I think the latter is generally more readable because the Right-Hand-Side tends to be long and busy and people don't expect other &lt;CODE&gt;evals&lt;/CODE&gt; to be "over there".&lt;/P&gt;</description>
    <pubDate>Mon, 19 Jun 2017 13:45:01 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2017-06-19T13:45:01Z</dc:date>
    <item>
      <title>Is the usage of multiple eval calculations in one pipe a feature or an unsupported hack?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-the-usage-of-multiple-eval-calculations-in-one-pipe-a-feature/m-p/349695#M103512</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I did not know that it is possible:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval fieldA=123, fieldB=456, fieldC=789
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I assume that this is better for search performance than &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval fieldA=123
| eval fieldB=456
| eval fieldC=789
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is the first example a feature or an unsupported hack that should not be used? I've never seen it before.&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2017 13:21:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-the-usage-of-multiple-eval-calculations-in-one-pipe-a-feature/m-p/349695#M103512</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2017-06-19T13:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Is the usage of multiple eval calculations in one pipe a feature or an unsupported hack?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-the-usage-of-multiple-eval-calculations-in-one-pipe-a-feature/m-p/349696#M103513</link>
      <description>&lt;P&gt;The first example was supported starting in version 6.4 of Splunk.&lt;/P&gt;

&lt;P&gt;I have never heard of there being a performance gain by using the first method over the second method, so I always stick to the second method for backwards compatibility and readability. &lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2017 13:24:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-the-usage-of-multiple-eval-calculations-in-one-pipe-a-feature/m-p/349696#M103513</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-06-19T13:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Is the usage of multiple eval calculations in one pipe a feature or an unsupported hack?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-the-usage-of-multiple-eval-calculations-in-one-pipe-a-feature/m-p/349697#M103514</link>
      <description>&lt;P&gt;though, if you do have a lot of evals that are doing the same thing, i believe that &lt;CODE&gt;foreach&lt;/CODE&gt; has a performance gain.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2017 13:44:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-the-usage-of-multiple-eval-calculations-in-one-pipe-a-feature/m-p/349697#M103514</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-06-19T13:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is the usage of multiple eval calculations in one pipe a feature or an unsupported hack?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-the-usage-of-multiple-eval-calculations-in-one-pipe-a-feature/m-p/349698#M103515</link>
      <description>&lt;P&gt;I am unaware of any performance difference but both are value.  I think the latter is generally more readable because the Right-Hand-Side tends to be long and busy and people don't expect other &lt;CODE&gt;evals&lt;/CODE&gt; to be "over there".&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2017 13:45:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-the-usage-of-multiple-eval-calculations-in-one-pipe-a-feature/m-p/349698#M103515</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-06-19T13:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Is the usage of multiple eval calculations in one pipe a feature or an unsupported hack?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-the-usage-of-multiple-eval-calculations-in-one-pipe-a-feature/m-p/349699#M103516</link>
      <description>&lt;P&gt;I am unaware of any performance difference but both are value.  I think the latter is generally more readable because the Right-Hand-Side tends to be long and busy and people don't expect other &lt;CODE&gt;evals&lt;/CODE&gt; to be "over there".&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2017 13:45:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-the-usage-of-multiple-eval-calculations-in-one-pipe-a-feature/m-p/349699#M103516</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-06-19T13:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Is the usage of multiple eval calculations in one pipe a feature or an unsupported hack?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-the-usage-of-multiple-eval-calculations-in-one-pipe-a-feature/m-p/349700#M103517</link>
      <description>&lt;P&gt;Readability is definitely the point why I would to stick to the second method as well. So I'm happy that there is no performance boost of the the other approach &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2017 11:37:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-the-usage-of-multiple-eval-calculations-in-one-pipe-a-feature/m-p/349700#M103517</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2017-06-20T11:37:37Z</dc:date>
    </item>
  </channel>
</rss>

