<?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: Error in 'eval' command: The 'first' function is unsupported or undefined. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Error-in-eval-command-The-first-function-is-unsupported-or/m-p/83961#M21393</link>
    <description>&lt;P&gt;Thank you Kristian!!&lt;/P&gt;

&lt;P&gt;I got it... but what I need is "RXbytes" data is getting generated in every 60 secs. I need to store the data for an interval of 5 mins that is 1 generated in one minute...then I need use that data...Is there any array kind of concept in SPlunk?&lt;/P&gt;</description>
    <pubDate>Thu, 10 Jan 2013 18:06:54 GMT</pubDate>
    <dc:creator>Splunk_U</dc:creator>
    <dc:date>2013-01-10T18:06:54Z</dc:date>
    <item>
      <title>Error in 'eval' command: The 'first' function is unsupported or undefined.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-in-eval-command-The-first-function-is-unsupported-or/m-p/83959#M21391</link>
      <description>&lt;P&gt;I have written the below search string:&lt;/P&gt;

&lt;P&gt;index=os source=interfaces&lt;BR /&gt;
        | multikv fields RXbytes, TXbytes&lt;BR /&gt;
        | eval firstRXBytes=first(RXbytes)&lt;BR /&gt;
        | eval lastRXBytes=last(RXbytes)&lt;BR /&gt;
        | eval Received_Bytes=round((last(RXbytes)-first(RXbytes))/300), 2)&lt;BR /&gt;
        | stats values(Received_Bytes) as RXBytes/sec by host&lt;/P&gt;

&lt;P&gt;But is it providing me an error "Error in 'eval' command: The 'first' function is unsupported or undefined."&lt;/P&gt;

&lt;P&gt;Help!!!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:04:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-in-eval-command-The-first-function-is-unsupported-or/m-p/83959#M21391</guid>
      <dc:creator>Splunk_U</dc:creator>
      <dc:date>2020-09-28T13:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'eval' command: The 'first' function is unsupported or undefined.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-in-eval-command-The-first-function-is-unsupported-or/m-p/83960#M21392</link>
      <description>&lt;P&gt;&lt;CODE&gt;first()&lt;/CODE&gt; is not a function to &lt;CODE&gt;eval&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.1/SearchReference/CommonEvalFunctions"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.1/SearchReference/CommonEvalFunctions&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;it is, however, to &lt;CODE&gt;stats&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/CommonStatsFunctions"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/CommonStatsFunctions&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;/Kristian&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 16:34:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-in-eval-command-The-first-function-is-unsupported-or/m-p/83960#M21392</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-01-10T16:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'eval' command: The 'first' function is unsupported or undefined.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-in-eval-command-The-first-function-is-unsupported-or/m-p/83961#M21393</link>
      <description>&lt;P&gt;Thank you Kristian!!&lt;/P&gt;

&lt;P&gt;I got it... but what I need is "RXbytes" data is getting generated in every 60 secs. I need to store the data for an interval of 5 mins that is 1 generated in one minute...then I need use that data...Is there any array kind of concept in SPlunk?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 18:06:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-in-eval-command-The-first-function-is-unsupported-or/m-p/83961#M21393</guid>
      <dc:creator>Splunk_U</dc:creator>
      <dc:date>2013-01-10T18:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'eval' command: The 'first' function is unsupported or undefined.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-in-eval-command-The-first-function-is-unsupported-or/m-p/83962#M21394</link>
      <description>&lt;P&gt;I need to know how can I retrieve the elements present in a list...&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 18:28:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-in-eval-command-The-first-function-is-unsupported-or/m-p/83962#M21394</guid>
      <dc:creator>Splunk_U</dc:creator>
      <dc:date>2013-01-10T18:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'eval' command: The 'first' function is unsupported or undefined.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-in-eval-command-The-first-function-is-unsupported-or/m-p/83963#M21395</link>
      <description>&lt;P&gt;Use &lt;CODE&gt;eval&lt;/CODE&gt;'s &lt;CODE&gt;mvindex&lt;/CODE&gt; function for that.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 19:05:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-in-eval-command-The-first-function-is-unsupported-or/m-p/83963#M21395</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-01-10T19:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'eval' command: The 'first' function is unsupported or undefined.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-in-eval-command-The-first-function-is-unsupported-or/m-p/83964#M21396</link>
      <description>&lt;P&gt;Also be aware that "first" does not mean "oldest" or "earliest", it means "first encountered while working backwards through the events" which means it is the same as "newest" or "latest".  This is VERY confusing and I think Splunk should either oldest/newest or earliest/latest to the functions so that people who care about clarity (most of us) can abandon the use of first/last and use something less likely to cause confusion.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Dec 2014 15:02:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-in-eval-command-The-first-function-is-unsupported-or/m-p/83964#M21396</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2014-12-30T15:02:41Z</dc:date>
    </item>
  </channel>
</rss>

