<?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 datamodel - custom command as calculated field in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/datamodel-custom-command-as-calculated-field/m-p/440605#M7123</link>
    <description>&lt;P&gt;We have built a considerable amount of logic using a combination of python and kvstore collections to categorise incoming data&lt;/P&gt;

&lt;P&gt;The custom command can be called after the root event by using &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| datamodel ... 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats ... values()
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but I'm not finding a way to call the custom command (a streaming version was also developed) as a calculated field in the datamodel so we can leverage its acceleration without a huge | tstats ... values() chain&lt;/P&gt;

&lt;P&gt;Any idea on how to do this ?&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jun 2018 16:22:37 GMT</pubDate>
    <dc:creator>splunk_zen</dc:creator>
    <dc:date>2018-06-07T16:22:37Z</dc:date>
    <item>
      <title>datamodel - custom command as calculated field</title>
      <link>https://community.splunk.com/t5/Reporting/datamodel-custom-command-as-calculated-field/m-p/440605#M7123</link>
      <description>&lt;P&gt;We have built a considerable amount of logic using a combination of python and kvstore collections to categorise incoming data&lt;/P&gt;

&lt;P&gt;The custom command can be called after the root event by using &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| datamodel ... 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats ... values()
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but I'm not finding a way to call the custom command (a streaming version was also developed) as a calculated field in the datamodel so we can leverage its acceleration without a huge | tstats ... values() chain&lt;/P&gt;

&lt;P&gt;Any idea on how to do this ?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 16:22:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/datamodel-custom-command-as-calculated-field/m-p/440605#M7123</guid>
      <dc:creator>splunk_zen</dc:creator>
      <dc:date>2018-06-07T16:22:37Z</dc:date>
    </item>
  </channel>
</rss>

