<?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: split function in calculated fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/split-function-in-calculated-fields/m-p/117735#M184005</link>
    <description>&lt;P&gt;I have also encountered the same issue.  In my case I am adding the eval below in the web UI (6.0).&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Expression:&lt;/STRONG&gt;&lt;BR /&gt;
mvcount( SPLIT(nodes, ",") )&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Returns:&lt;/STRONG&gt;&lt;BR /&gt;
Encountered the following error while trying to save: In handler 'props-eval': Bad function&lt;/P&gt;</description>
    <pubDate>Sat, 14 Dec 2013 21:01:58 GMT</pubDate>
    <dc:creator>mklunder</dc:creator>
    <dc:date>2013-12-14T21:01:58Z</dc:date>
    <item>
      <title>split function in calculated fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/split-function-in-calculated-fields/m-p/117733#M184003</link>
      <description>&lt;P&gt;When i try to save in Splunk Web calculated fields that contains &lt;STRONG&gt;split&lt;/STRONG&gt; function i have a "Encountered the following error while trying to save: In handler 'props-eval': Bad function" message. &lt;BR /&gt;
Why i can't use this function in calculated fields?&lt;BR /&gt;
There is no word about this limitation &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/definecalcfields"&gt;here&lt;/A&gt; in Splunk Documentation,&lt;BR /&gt;
Examples of Eval expression that are not working:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;split(anyfield,";")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;split("x:x",":")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But in conjunction with eval in Search these are working fine.&lt;/P&gt;

&lt;P&gt;Splunk Version............................................6.0&lt;BR /&gt;
Splunk Build............................................182037&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2013 11:04:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/split-function-in-calculated-fields/m-p/117733#M184003</guid>
      <dc:creator>AlexeyNL</dc:creator>
      <dc:date>2013-10-28T11:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: split function in calculated fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/split-function-in-calculated-fields/m-p/117734#M184004</link>
      <description>&lt;P&gt;Can you edit and put your calculated input definition?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2013 11:21:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/split-function-in-calculated-fields/m-p/117734#M184004</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2013-10-28T11:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: split function in calculated fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/split-function-in-calculated-fields/m-p/117735#M184005</link>
      <description>&lt;P&gt;I have also encountered the same issue.  In my case I am adding the eval below in the web UI (6.0).&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Expression:&lt;/STRONG&gt;&lt;BR /&gt;
mvcount( SPLIT(nodes, ",") )&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Returns:&lt;/STRONG&gt;&lt;BR /&gt;
Encountered the following error while trying to save: In handler 'props-eval': Bad function&lt;/P&gt;</description>
      <pubDate>Sat, 14 Dec 2013 21:01:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/split-function-in-calculated-fields/m-p/117735#M184005</guid>
      <dc:creator>mklunder</dc:creator>
      <dc:date>2013-12-14T21:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: split function in calculated fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/split-function-in-calculated-fields/m-p/117736#M184006</link>
      <description>&lt;P&gt;I too am having this problem when I use split is calculated fields.  Eg: split(field," ")&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2014 03:30:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/split-function-in-calculated-fields/m-p/117736#M184006</guid>
      <dc:creator>joebensimo</dc:creator>
      <dc:date>2014-03-10T03:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: split function in calculated fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/split-function-in-calculated-fields/m-p/117737#M184007</link>
      <description>&lt;P&gt;This appears to only be a limitation in the user interface.  I have successfully added (and use) calculated fields that use &lt;STRONG&gt;split&lt;/STRONG&gt; by directly adding them to a props.conf file.&lt;/P&gt;

&lt;P&gt;For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::users*ly]
EVAL-userid = split(userid," ")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Mar 2014 16:26:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/split-function-in-calculated-fields/m-p/117737#M184007</guid>
      <dc:creator>joebensimo</dc:creator>
      <dc:date>2014-03-11T16:26:34Z</dc:date>
    </item>
  </channel>
</rss>

