<?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: Get auth token in alert script in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Get-auth-token-in-alert-script/m-p/189389#M3194</link>
    <description>&lt;P&gt;It work the same as it does for scheduled or modular inputs.  I have actual walk through and link to already made code in my git repo.  &lt;A href="http://www.georgestarcher.com/2014/02/16/splunk-alert-scripts-automating-control/"&gt;http://www.georgestarcher.com/2014/02/16/splunk-alert-scripts-automating-control/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 16 Mar 2014 14:42:36 GMT</pubDate>
    <dc:creator>starcher</dc:creator>
    <dc:date>2014-03-16T14:42:36Z</dc:date>
    <item>
      <title>Get auth token in alert script</title>
      <link>https://community.splunk.com/t5/Alerting/Get-auth-token-in-alert-script/m-p/189388#M3193</link>
      <description>&lt;P&gt;Is it possible to get an auth token/session key in a python script triggered by an alert? &lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2014 21:16:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Get-auth-token-in-alert-script/m-p/189388#M3193</guid>
      <dc:creator>Leo</dc:creator>
      <dc:date>2014-03-14T21:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get auth token in alert script</title>
      <link>https://community.splunk.com/t5/Alerting/Get-auth-token-in-alert-script/m-p/189389#M3194</link>
      <description>&lt;P&gt;It work the same as it does for scheduled or modular inputs.  I have actual walk through and link to already made code in my git repo.  &lt;A href="http://www.georgestarcher.com/2014/02/16/splunk-alert-scripts-automating-control/"&gt;http://www.georgestarcher.com/2014/02/16/splunk-alert-scripts-automating-control/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Mar 2014 14:42:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Get-auth-token-in-alert-script/m-p/189389#M3194</guid>
      <dc:creator>starcher</dc:creator>
      <dc:date>2014-03-16T14:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Get auth token in alert script</title>
      <link>https://community.splunk.com/t5/Alerting/Get-auth-token-in-alert-script/m-p/189390#M3195</link>
      <description>&lt;P&gt;thanks, but looking at your alert_to_gsheet.py file, it seems like the session key is expected to be sent via stdin, which doesn't happen in my case. Do you have any special config that enables passing it? I tried setting 'passauth=true' in commands.conf, trying to trick it as if it was a search command and it still doesn't work: reading sys.stdin.readline() comes back empty...&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:09:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Get-auth-token-in-alert-script/m-p/189390#M3195</guid>
      <dc:creator>Leo</dc:creator>
      <dc:date>2020-09-28T16:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Get auth token in alert script</title>
      <link>https://community.splunk.com/t5/Alerting/Get-auth-token-in-alert-script/m-p/189391#M3196</link>
      <description>&lt;P&gt;There was nothing special required for it to work and it does pass on stdio by design of Splunk. I have it working without issue on both Splunk v5 and Splunk v6. Is the hash bang at the the top of your alert script set to the correct path for your installation?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2014 12:31:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Get-auth-token-in-alert-script/m-p/189391#M3196</guid>
      <dc:creator>starcher</dc:creator>
      <dc:date>2014-03-18T12:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Get auth token in alert script</title>
      <link>https://community.splunk.com/t5/Alerting/Get-auth-token-in-alert-script/m-p/189392#M3197</link>
      <description>&lt;P&gt;yeah, it does indeed. I messed up by calling Intersplunk.getOrganizedResults() before reading from the stdin. And now I see that Intersplunk actually reads from stdin itself.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2014 20:36:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Get-auth-token-in-alert-script/m-p/189392#M3197</guid>
      <dc:creator>Leo</dc:creator>
      <dc:date>2014-03-18T20:36:25Z</dc:date>
    </item>
  </channel>
</rss>

