<?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: Are there specific permissions needed in order for the Machine Learning to talk to the Search app? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Are-there-specific-permissions-needed-in-order-for-the-Machine/m-p/406338#M26603</link>
    <description>&lt;P&gt;@woodcock Search is below; I was more questioning the permission aspect, not so much the syntax if that makes sense. I want to make sure if there is anything needed so I can import my ML items as a Dashboard Panel. I am really the only user and the setup is done by another team and I do not get much insight.  To get the search I went in to the ML ran my Experiment then selected show in search. I then copied and pasted it into a Search and Reporting search.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=userservice
| where Accounts&amp;lt;1250 AND Accounts &amp;gt; 750
| eval MStoS=case(Milliseconds!=0,Milliseconds/1000,Milliseconds = 0, 0)
| eval MtoS =case(Seconds!=0,Seconds/1000,Seconds = 0, 0)
| eval TotalTime = MtoS + MStoS + Seconds
| eval SPerAccount=(TotalTime/Accounts)
| bucket _time span=day
| stats sum(Accounts) AS Accounts,sum(TotalTime) AS ProcessingTime, avg(SPerAccount) AS SPerAccount, count(_raw) AS Batch by _time
| where ProcessingTime &amp;gt; 1000 AND ProcessingTime &amp;lt; 20000 | predict "ProcessingTime" as prediction algorithm=LLP5 holdback=0 future_timespan=1 period=1 upper80=upper80 lower80=lower80 | `forecastviz(1, 0, "ProcessingTime", 80)`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It runs fine in the ML search area, but fails in the Search and Reporting which makes me think there is some permission item.&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jul 2019 13:09:44 GMT</pubDate>
    <dc:creator>aohls</dc:creator>
    <dc:date>2019-07-29T13:09:44Z</dc:date>
    <item>
      <title>Are there specific permissions needed in order for the Machine Learning to talk to the Search app?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Are-there-specific-permissions-needed-in-order-for-the-Machine/m-p/406336#M26601</link>
      <description>&lt;P&gt;I have a Forecast time series that runs in the Machine Learning App correctly. &lt;BR /&gt;
What I want to do is integrate that into a dashboard so I can feed it some tokens to run for different hosts. &lt;BR /&gt;
I am re-reading through to documentation to see if something is missed, I do not have a saved model from &lt;BR /&gt;
this I see that I can use the apply function. &lt;/P&gt;

&lt;P&gt;Does any specific permission need to be changed in order for the ML to talk to the Search app?&lt;/P&gt;

&lt;P&gt;I get the following error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"Error in 'SearchParser': The search specifies a macro 'forecastviz' that cannot be found. Reasons include: the macro name is misspelled, you do not have "read" permission for the macro, or the macro has not been shared with this application. Click Settings, Advanced search, Search Macros to view macro information."
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Jul 2019 11:43:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Are-there-specific-permissions-needed-in-order-for-the-Machine/m-p/406336#M26601</guid>
      <dc:creator>aohls</dc:creator>
      <dc:date>2019-07-25T11:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Are there specific permissions needed in order for the Machine Learning to talk to the Search app?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Are-there-specific-permissions-needed-in-order-for-the-Machine/m-p/406337#M26602</link>
      <description>&lt;P&gt;We need WAAAAAAY more detail.  Show us ALL of your SPL.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 20:52:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Are-there-specific-permissions-needed-in-order-for-the-Machine/m-p/406337#M26602</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-07-26T20:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Are there specific permissions needed in order for the Machine Learning to talk to the Search app?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Are-there-specific-permissions-needed-in-order-for-the-Machine/m-p/406338#M26603</link>
      <description>&lt;P&gt;@woodcock Search is below; I was more questioning the permission aspect, not so much the syntax if that makes sense. I want to make sure if there is anything needed so I can import my ML items as a Dashboard Panel. I am really the only user and the setup is done by another team and I do not get much insight.  To get the search I went in to the ML ran my Experiment then selected show in search. I then copied and pasted it into a Search and Reporting search.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=userservice
| where Accounts&amp;lt;1250 AND Accounts &amp;gt; 750
| eval MStoS=case(Milliseconds!=0,Milliseconds/1000,Milliseconds = 0, 0)
| eval MtoS =case(Seconds!=0,Seconds/1000,Seconds = 0, 0)
| eval TotalTime = MtoS + MStoS + Seconds
| eval SPerAccount=(TotalTime/Accounts)
| bucket _time span=day
| stats sum(Accounts) AS Accounts,sum(TotalTime) AS ProcessingTime, avg(SPerAccount) AS SPerAccount, count(_raw) AS Batch by _time
| where ProcessingTime &amp;gt; 1000 AND ProcessingTime &amp;lt; 20000 | predict "ProcessingTime" as prediction algorithm=LLP5 holdback=0 future_timespan=1 period=1 upper80=upper80 lower80=lower80 | `forecastviz(1, 0, "ProcessingTime", 80)`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It runs fine in the ML search area, but fails in the Search and Reporting which makes me think there is some permission item.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 13:09:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Are-there-specific-permissions-needed-in-order-for-the-Machine/m-p/406338#M26603</guid>
      <dc:creator>aohls</dc:creator>
      <dc:date>2019-07-29T13:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Are there specific permissions needed in order for the Machine Learning to talk to the Search app?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Are-there-specific-permissions-needed-in-order-for-the-Machine/m-p/406339#M26604</link>
      <description>&lt;P&gt;@aohls try changing permission on MLTK app as per one of my older answers: &lt;A href="https://answers.splunk.com/answers/660004/outliers-viz-not-loading.html"&gt;https://answers.splunk.com/answers/660004/outliers-viz-not-loading.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 14:41:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Are-there-specific-permissions-needed-in-order-for-the-Machine/m-p/406339#M26604</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-07-29T14:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Are there specific permissions needed in order for the Machine Learning to talk to the Search app?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Are-there-specific-permissions-needed-in-order-for-the-Machine/m-p/406340#M26605</link>
      <description>&lt;P&gt;The MLTK creates a custom command &lt;CODE&gt;forecastviz&lt;/CODE&gt;.  You ought to be able to go into the &lt;CODE&gt;MLTK&lt;/CODE&gt; app, then click &lt;CODE&gt;Settings&lt;/CODE&gt; -&amp;gt; &lt;CODE&gt;Advanced search&lt;/CODE&gt; -&amp;gt; &lt;CODE&gt;Search commands&lt;/CODE&gt; (or possibly &lt;CODE&gt;macros&lt;/CODE&gt; if it is actually a macro) , search for it, find it, then click &lt;CODE&gt;Permissions&lt;/CODE&gt; and change it to &lt;CODE&gt;All Apps&lt;/CODE&gt; which is &lt;CODE&gt;Global&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 16:44:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Are-there-specific-permissions-needed-in-order-for-the-Machine/m-p/406340#M26605</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-07-29T16:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Are there specific permissions needed in order for the Machine Learning to talk to the Search app?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Are-there-specific-permissions-needed-in-order-for-the-Machine/m-p/406341#M26606</link>
      <description>&lt;P&gt;This was it. In this case it was Macros and they are only shared in the App.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 19:12:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Are-there-specific-permissions-needed-in-order-for-the-Machine/m-p/406341#M26606</guid>
      <dc:creator>aohls</dc:creator>
      <dc:date>2019-07-29T19:12:34Z</dc:date>
    </item>
  </channel>
</rss>

