<?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: How to call a python script from an html view? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262063#M3275</link>
    <description>&lt;P&gt;I am new to app development. I am not able to find out a way to add default token model to my js. It will be really helpful if you can guide me.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jul 2018 17:25:09 GMT</pubDate>
    <dc:creator>nvij_splunk</dc:creator>
    <dc:date>2018-07-12T17:25:09Z</dc:date>
    <item>
      <title>How to call a python script from an html view?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262037#M3249</link>
      <description>&lt;P&gt;We have a Splunk html view.  We are trying to call a python script.  Currently the code looks like this (retyped since our Splunk server doesn't have web access, I tried to avoid typos):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;function callScript(){

   $.ajax({
                 type: "POST",
                 url: "bin/my_script.py",
                 data: {'flag': defaultTokenModel.get("form.flag"))
                 },
                 success: function() {
                     alert("success returned");
                 }
           });
    }
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This doesn't work.  The success message is returned, but the actual python script isn't called.&lt;/P&gt;

&lt;P&gt;From what I can tell, it looks like there may be a method called ajax in simplifyxml/mvc.js which is conflicting with the JQuery method, though I'm not certain that is the case.&lt;/P&gt;

&lt;P&gt;What is the proper way to make a script call like this?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2016 22:31:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262037#M3249</guid>
      <dc:creator>dsollen</dc:creator>
      <dc:date>2016-02-01T22:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a python script from an html view?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262038#M3250</link>
      <description>&lt;P&gt;This won't work as you think. Access to local folders within an app is not allowed for security and technical reasons. &lt;/P&gt;

&lt;P&gt;When you make that POST call, you are actually trying to get a Web UI relative script! &lt;CODE&gt;&lt;A href="https:/en-US/app/myapp/bin/my_script.py" target="test_blank"&gt;https:///en-US/app/myapp/bin/my_script.py&lt;/A&gt;&lt;/CODE&gt; for example. This just doesn't work.&lt;/P&gt;

&lt;P&gt;So, you cannot directly call a python script from the web ui, it is not accessible. There is a way to do this. It is a method not &lt;EM&gt;fully&lt;/EM&gt; documented, but involves creating a custom endpoint for Splunk, and then calling that endpoint. &lt;/P&gt;

&lt;P&gt;Let me start with a quick tutorial. I'll gloss over a few things, make assumptions, drink some beer. Comment with questions. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;web.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[endpoint:my_script]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So, that is the only line you need in &lt;CODE&gt;web.conf&lt;/CODE&gt;. This tells Splunk that you are creating a new web endpoint. The &lt;CODE&gt;my_script&lt;/CODE&gt; definition needs to have the same name as the python file located in &lt;CODE&gt;$APP_HOME/appserver/controllers&lt;/CODE&gt;. (Where &lt;CODE&gt;$APP_HOME&lt;/CODE&gt; is the folder of the app you are creating this in - I'd suggest a new app, not search). &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;$APP_HOME/appserver/controllers/my_script.py&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;import logging
import os
import sys

# from splunk import AuthorizationFailed as AuthorizationFailed
import splunk.appserver.mrsparkle.controllers as controllers
import splunk.appserver.mrsparkle.lib.util as util
from splunk.appserver.mrsparkle.lib.util import make_splunkhome_path
from splunk.appserver.mrsparkle.lib.decorators import expose_page

_APPNAME = 'MyAppName'

def setup_logger(level):
    """
    Setup a logger for the REST handler.
    """

    logger = logging.getLogger('splunk.appserver.%s.controllers.my_script' % _APPNAME)
    logger.propagate = False  # Prevent the log messages from being duplicated in the python.log file
    logger.setLevel(level)
    file_handler = logging.handlers.RotatingFileHandler(
        make_splunkhome_path(['var', 'log', 'splunk', 'my_script_controller.log']), maxBytes=25000000, backupCount=5)
    formatter = logging.Formatter('%(asctime)s %(levelname)s %(message)s')
    file_handler.setFormatter(formatter)
    logger.addHandler(file_handler)
    return logger


logger = setup_logger(logging.DEBUG)


class my_script(controllers.BaseController):
    # /custom/MyAppName/my_script/my_endpoint
    @expose_page(must_login=True, methods=['GET'])
    def my_endpoint(self, **kwargs):
        # DO YOUR THINGS WITH THE KWARGS PASSED
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Whoa. WTF is that!? Python! YAY! So, now you have an endpoint enabled. Now you can call it from your HTML view.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; function callScript(){
    $.get("/custom/MyAppName/my_script/my_endpoint", 
               {'flag': defaultTokenModel.get("form.flag")) } )
                .done(function(data){
                  });
     }
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Pay attention to these strings throughout this tutorial: &lt;CODE&gt;my_script&lt;/CODE&gt;, &lt;CODE&gt;my_endpoint&lt;/CODE&gt;, &lt;CODE&gt;MyAppName&lt;/CODE&gt;. This all need to be changed to your specification, they are merely examples. Again, this should at least point you in the right direction on doing this call. If you  have questions, please follow up here, or find me on IRC (#splunk on efnet - I'm alacer) or via the Splunk Slack channel for usergroups, just ping me @alacercogitatus. &lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 15:22:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262038#M3250</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2016-02-02T15:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a python script from an html view?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262039#M3251</link>
      <description>&lt;P&gt;I do have a few questions.  since I already am using an app I assume I want to use $app_home/local/web.conf to make the change?  &lt;/P&gt;

&lt;P&gt;More importantly, I'm not certain I understand the format of the my_script.py example you gave; what is or isn't required to make my python script function as an endpoint.  the web.conf definition says that endpoints registers a default cherrypy script, but your example doesn't import cherrypy.  Is there a link that defines the format required and what the imported controller and other mrssparkle libs you used do?  (I couldn't find an API for them either, my google-fu is really failing me today)&lt;/P&gt;

&lt;P&gt;One last question, what do I need to do to ensure splunk sees my changes to the app after I do this?  would 'splunk install' with an -update work?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 17:49:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262039#M3251</guid>
      <dc:creator>dsollen</dc:creator>
      <dc:date>2016-02-02T17:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a python script from an html view?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262040#M3252</link>
      <description>&lt;P&gt;I'm pretty sure it's etc/system/local/web.conf&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 18:17:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262040#M3252</guid>
      <dc:creator>arkadyz1</dc:creator>
      <dc:date>2016-02-02T18:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a python script from an html view?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262041#M3253</link>
      <description>&lt;P&gt;This is an interesting example, doubly so for me since I've done something very similar but in a different way. Please take a look at this post:&lt;/P&gt;

&lt;P&gt;Return binary data (such as images) via REST API&lt;/P&gt;

&lt;P&gt;There, I used [expose:...] stanzas in web.conf and my additions to restmap.conf. This made my endpoint visible under /services via admin port, which is something I feel is not quite appropriate and very cumbersome. Where is your approach documented?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 18:43:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262041#M3253</guid>
      <dc:creator>arkadyz1</dc:creator>
      <dc:date>2016-02-02T18:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a python script from an html view?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262042#M3254</link>
      <description>&lt;P&gt;Yes, use the &lt;CODE&gt;$APP_HOME/local/web.conf&lt;/CODE&gt; if you didn't make the app, but use &lt;CODE&gt;$APP_HOME/default/web.conf&lt;/CODE&gt; if this is an app you created. DO NOT USE &lt;CODE&gt;etc/system/local&lt;/CODE&gt;! &lt;/P&gt;

&lt;P&gt;In the example script, just copy and paste that entire thing into the &lt;CODE&gt;controllers&lt;/CODE&gt; folder. Your &lt;CODE&gt;bin/my_script.py&lt;/CODE&gt; steps go into the section under the &lt;CODE&gt;def&lt;/CODE&gt; at &lt;CODE&gt;# DO YOUR THINGS WITH THE KWARGS PASSED&lt;/CODE&gt;. &lt;/P&gt;

&lt;P&gt;Don't need to import cherrypy for this example, because I'm not using anything from cherrypy. The cherrypy in the documentation is simply stating that this endpoint is exposed via the Splunk Web Server.&lt;/P&gt;

&lt;P&gt;You will need to do a full restart (on the search head) for these changes to be picked up. A simple update won't work. &lt;/P&gt;

&lt;P&gt;Here is about as close to documentation as you will get: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.2/ModuleRef/Extensiondictionary"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.2/ModuleRef/Extensiondictionary&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 18:50:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262042#M3254</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2016-02-02T18:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a python script from an html view?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262043#M3255</link>
      <description>&lt;P&gt;Yeah, don't do that.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 18:50:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262043#M3255</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2016-02-02T18:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a python script from an html view?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262044#M3256</link>
      <description>&lt;P&gt;It's not really, tbh. It's from years of Splunk App Dev and experimentation with other Apps and finding what works.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 20:55:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262044#M3256</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2016-02-02T20:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a python script from an html view?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262045#M3257</link>
      <description>&lt;P&gt;just so you know the post you mentioned isn't linked, and a quick search doesn't reveal it; making it hard to check it out &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;  My good friend google says the link is &lt;A href="https://answers.splunk.com/answers/306952/return-binary-data-such-as-images-via-rest-api-or.html"&gt;https://answers.splunk.com/answers/306952/return-binary-data-such-as-images-via-rest-api-or.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;and yes I wish there was better documentation.  I feel blind following suggestions here without full understanding of them.  but I can't find any documentation of these things even after they are explained to me, so maybe the documentation doesn't entirely exist?  &lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 15:29:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262045#M3257</guid>
      <dc:creator>dsollen</dc:creator>
      <dc:date>2016-02-03T15:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a python script from an html view?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262046#M3258</link>
      <description>&lt;P&gt;Your friend google was correct, as usual :). From alacer's reply to my comment I can see that the documentation is indeed scarce. As I got used to saying in my company (not only about Splunk), "underdocumented" is a huge understatement :). Gone are the companies like DEC which had really exhaustive User Guides and Reference Manuals...&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 15:51:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262046#M3258</guid>
      <dc:creator>arkadyz1</dc:creator>
      <dc:date>2016-02-03T15:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a python script from an html view?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262047#M3259</link>
      <description>&lt;P&gt;Just getting back to this.  I did this but it didn't quite work for me, I'm getting a 500 error when I try to post (my original example was a post not a get, I went ahead and coverted over to POSTS).  I think the problem is that I have the wrong URL to post to...&lt;/P&gt;

&lt;P&gt;Currently my URL to the HTML page is something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;hostname/splunk/en-us/app/MyAppName/html_file
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;your example says that the url  starts at custom, but I wasn't expecting custom, and I don't know what that URL is relative to.  If I want to connect directly to my rest url to verify something is happening what URL should I be using?  &lt;/P&gt;

&lt;P&gt;Sorry to ask such a basic question, this is the sort of thing I shouldn't need help with.  but I feel blind here, not sure where any documentation is to check on my own; I've been looking lol.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 19:02:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262047#M3259</guid>
      <dc:creator>dsollen</dc:creator>
      <dc:date>2016-02-03T19:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a python script from an html view?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262048#M3260</link>
      <description>&lt;P&gt;So to construct the URL, you need 3 things. 1) Name of your App 2) Name of the Endpoint 3) name of the function.&lt;/P&gt;

&lt;P&gt;Then it goes such like: &lt;CODE&gt;/custom/APPNAME/ENDPOINT/FUNCTION&lt;/CODE&gt; The &lt;CODE&gt;/custom&lt;/CODE&gt; denotes that this is a custom endpoint and is required for this to work. So if your "script" (located in &lt;CODE&gt;$APP_HOME/appserver/controllers/&lt;/CODE&gt;) is called &lt;CODE&gt;html_file.py&lt;/CODE&gt;, and the function in that file is called &lt;CODE&gt;post_this&lt;/CODE&gt; , then your URL in the HTML dashboard will be &lt;CODE&gt;/custom/MyAppName/html_file/post_this&lt;/CODE&gt;. Done.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2016 18:44:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262048#M3260</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2016-02-16T18:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a python script from an html view?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262049#M3261</link>
      <description>&lt;P&gt;Hi, &lt;BR /&gt;
I tried the above but in my python, i have the error below:&lt;/P&gt;

&lt;P&gt;ImportError: No module named cherrypy&lt;/P&gt;

&lt;P&gt;isn't this cherrypy packaged with splunk as default? or do i need to install it?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2016 06:15:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262049#M3261</guid>
      <dc:creator>earakam</dc:creator>
      <dc:date>2016-03-23T06:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a python script from an html view?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262050#M3262</link>
      <description>&lt;P&gt;System installed python will not have that module, and I think that is what you tried to do. Use Splunk's python instead: &lt;CODE&gt;$SPLUNK_HOME/bin/splunk cmd python myscript.py&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2016 11:22:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262050#M3262</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2016-03-23T11:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a python script from an html view?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262051#M3263</link>
      <description>&lt;P&gt;Hi alacercogitatus!&lt;/P&gt;

&lt;P&gt;I really appreciate your quick response. Thank you.&lt;BR /&gt;
I will try that! but which folder should myscript.py be in to do that?&lt;BR /&gt;
I'm wondering cause i  am trying ajax, aswell, to call python script but I don't know what kind of 'URL' i should write for that.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2016 00:00:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262051#M3263</guid>
      <dc:creator>earakam</dc:creator>
      <dc:date>2016-03-24T00:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a python script from an html view?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262052#M3264</link>
      <description>&lt;P&gt;@alacercogitatus: Thanks for posting this. I was actually looking for this.&lt;/P&gt;

&lt;P&gt;I tried the way you mentioned above, but seems to be something went wrong, I am seeing 404 error in my browser console and my HTML view shows nothing.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://localhost:8000/en-US/custom/MyAppName/my_script/my_endpoint?_=1462458361563"&gt;http://localhost:8000/en-US/custom/MyAppName/my_script/my_endpoint?_=1462458361563&lt;/A&gt; Failed to load resource: the server responded with a status of 404 (Not Found).&lt;/P&gt;

&lt;P&gt;Can you help me to resolve this?&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 14:40:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262052#M3264</guid>
      <dc:creator>kasu_praveen</dc:creator>
      <dc:date>2016-05-05T14:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a python script from an html view?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262053#M3265</link>
      <description>&lt;P&gt;Did you restart ? Once you make the changes to create the endpoint, you have to restart.&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 14:52:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262053#M3265</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2016-05-05T14:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a python script from an html view?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262054#M3266</link>
      <description>&lt;P&gt;I did restarted, but no luck.&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 14:53:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262054#M3266</guid>
      <dc:creator>kasu_praveen</dc:creator>
      <dc:date>2016-05-05T14:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a python script from an html view?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262055#M3267</link>
      <description>&lt;P&gt;Check that the Python is compiling, (&lt;CODE&gt;$SPLUNK_HOME/bin/splunk cmd python ./my_script.py&lt;/CODE&gt;) and then check the internal splunk logs for errors and warnings.&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 14:55:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262055#M3267</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2016-05-05T14:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a python script from an html view?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262056#M3268</link>
      <description>&lt;P&gt;Seems to be python compiling is issue, I am very new to python, have to see how this compiling stuff works. &lt;BR /&gt;
Also, do I need to compile each time when I modified python code? will that won't work, If I hit HTML view directly in browser? &lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 15:11:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-call-a-python-script-from-an-html-view/m-p/262056#M3268</guid>
      <dc:creator>kasu_praveen</dc:creator>
      <dc:date>2016-05-05T15:11:16Z</dc:date>
    </item>
  </channel>
</rss>

