<?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 Error occured during do run &amp;quot;Custom search command example&amp;quot; in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Error-occured-during-do-run-quot-Custom-search-command-example/m-p/300275#M161104</link>
    <description>&lt;P&gt;I do exercise  example about "Custom search command" step by step ,&lt;/P&gt;

&lt;P&gt;but the following error occurred. What's the problem?&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;bin/splunk search "linecount&amp;gt;1 | shape | top shape"&lt;BR /&gt;
FATAL: Error in 'shape' command: You must provide a field argument****&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;example line:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.1/Search/Customsearchcommandshape"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.1/Search/Customsearchcommandshape&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;and this example is Version 1 using the intersplunk.py SDL, is there the "Version 2" example ?&lt;/P&gt;</description>
    <pubDate>Thu, 18 May 2017 07:23:25 GMT</pubDate>
    <dc:creator>jkjeong</dc:creator>
    <dc:date>2017-05-18T07:23:25Z</dc:date>
    <item>
      <title>Error occured during do run "Custom search command example"</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-occured-during-do-run-quot-Custom-search-command-example/m-p/300275#M161104</link>
      <description>&lt;P&gt;I do exercise  example about "Custom search command" step by step ,&lt;/P&gt;

&lt;P&gt;but the following error occurred. What's the problem?&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;bin/splunk search "linecount&amp;gt;1 | shape | top shape"&lt;BR /&gt;
FATAL: Error in 'shape' command: You must provide a field argument****&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;example line:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.1/Search/Customsearchcommandshape"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.1/Search/Customsearchcommandshape&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;and this example is Version 1 using the intersplunk.py SDL, is there the "Version 2" example ?&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 07:23:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-occured-during-do-run-quot-Custom-search-command-example/m-p/300275#M161104</guid>
      <dc:creator>jkjeong</dc:creator>
      <dc:date>2017-05-18T07:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error occured during do run "Custom search command example"</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-occured-during-do-run-quot-Custom-search-command-example/m-p/300276#M161105</link>
      <description>&lt;P&gt;Replace the first "shape" with "script shape". ,&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 19:51:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-occured-during-do-run-quot-Custom-search-command-example/m-p/300276#M161105</guid>
      <dc:creator>irsysintegratio</dc:creator>
      <dc:date>2017-09-08T19:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error occured during do run "Custom search command example"</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-occured-during-do-run-quot-Custom-search-command-example/m-p/535021#M161106</link>
      <description>&lt;P&gt;I encountered the very same error. I was following this guide: &lt;A href="https://www.splunk.com/en_us/blog/tips-and-tricks/write-your-own-search-language.html" target="_blank"&gt;https://www.splunk.com/en_us/blog/tips-and-tricks/write-your-own-search-language.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;What I noticed was that this guide is from 2008. Newer version of Splunk already have a built-in "shape" command. This one is defined in etc/system/default/searchbnf.conf:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[shape-command]
syntax = shape &amp;lt;field&amp;gt; (maxvalues=&amp;lt;int&amp;gt;)? (maxresolution=&amp;lt;int&amp;gt;)?
shortdesc = Produces a symbolic 'shape' attribute describing the shape of a numeric multivalued field.&lt;/LI-CODE&gt;&lt;P&gt;Apparently, the built-in shape command takes precedence over your custom shape command when running a search.&lt;/P&gt;&lt;P&gt;So I suggest rename your "shape" command to "shape2" or something else.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 07:52:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-occured-during-do-run-quot-Custom-search-command-example/m-p/535021#M161106</guid>
      <dc:creator>whrg</dc:creator>
      <dc:date>2021-01-07T07:52:22Z</dc:date>
    </item>
  </channel>
</rss>

