<?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: Possible to get information about user executing a custom command in Splunk from within the Python script? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Possible-to-get-information-about-user-executing-a-custom/m-p/249020#M74349</link>
    <description>&lt;P&gt;A related discsiison at &lt;A href="https://answers.splunk.com/answers/39504/permission-to-run-custom-command.html"&gt;Permission to run custom command&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Maybe running it via the &lt;CODE&gt;script&lt;/CODE&gt; command can help... at &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.4.3/SearchReference/Script"&gt;script&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Aug 2016 00:04:25 GMT</pubDate>
    <dc:creator>ddrillic</dc:creator>
    <dc:date>2016-08-29T00:04:25Z</dc:date>
    <item>
      <title>Possible to get information about user executing a custom command in Splunk from within the Python script?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Possible-to-get-information-about-user-executing-a-custom/m-p/249019#M74348</link>
      <description>&lt;P&gt;I have a custom script that I've defined as a command in commands.conf. I've tried adding passauth and enableheader, but I'm not seeing anything pertaining to the username of the Splunk user executing the command in Splunk in os.environ. Is there something I need to import and call to reveal this information?&lt;/P&gt;

&lt;P&gt;[test]&lt;BR /&gt;
type = python&lt;BR /&gt;
filename = test.py&lt;BR /&gt;
local = true&lt;BR /&gt;
passauth = true&lt;BR /&gt;
enableheader = true&lt;/P&gt;</description>
      <pubDate>Sat, 27 Aug 2016 22:41:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Possible-to-get-information-about-user-executing-a-custom/m-p/249019#M74348</guid>
      <dc:creator>rharrisssi</dc:creator>
      <dc:date>2016-08-27T22:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to get information about user executing a custom command in Splunk from within the Python script?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Possible-to-get-information-about-user-executing-a-custom/m-p/249020#M74349</link>
      <description>&lt;P&gt;A related discsiison at &lt;A href="https://answers.splunk.com/answers/39504/permission-to-run-custom-command.html"&gt;Permission to run custom command&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Maybe running it via the &lt;CODE&gt;script&lt;/CODE&gt; command can help... at &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.4.3/SearchReference/Script"&gt;script&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 00:04:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Possible-to-get-information-about-user-executing-a-custom/m-p/249020#M74349</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2016-08-29T00:04:25Z</dc:date>
    </item>
  </channel>
</rss>

