<?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: key error in Python call to search results Json in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/key-error-in-Python-call-to-search-results-Json/m-p/343311#M170175</link>
    <description>&lt;P&gt;You wrote &lt;CODE&gt;sys.stdn&lt;/CODE&gt;, but i assume it's just a typo?&lt;/P&gt;</description>
    <pubDate>Fri, 20 Apr 2018 16:04:55 GMT</pubDate>
    <dc:creator>damien_chillet</dc:creator>
    <dc:date>2018-04-20T16:04:55Z</dc:date>
    <item>
      <title>key error in Python call to search results Json</title>
      <link>https://community.splunk.com/t5/Splunk-Search/key-error-in-Python-call-to-search-results-Json/m-p/343310#M170174</link>
      <description>&lt;P&gt;I have a custom action alert based on an App&lt;BR /&gt;
The search is looking for a file, event, and file type. it then pipes the sha256 hash of the file out to ensure it is listed.&lt;BR /&gt;
When I look for that field in the json I get a key error.&lt;/P&gt;

&lt;P&gt;I am using &lt;BR /&gt;
resp_dict = json.loads(sys.stdn.read())&lt;BR /&gt;
resp_dict['sha256']&lt;BR /&gt;
I have also tried &lt;BR /&gt;
resp_dict["sha256"]&lt;BR /&gt;
resp_dict['_sha256']&lt;/P&gt;

&lt;P&gt;All attempts to print or write the contents of the search results json fail.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:05:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/key-error-in-Python-call-to-search-results-Json/m-p/343310#M170174</guid>
      <dc:creator>Athildjax64</dc:creator>
      <dc:date>2020-09-29T19:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: key error in Python call to search results Json</title>
      <link>https://community.splunk.com/t5/Splunk-Search/key-error-in-Python-call-to-search-results-Json/m-p/343311#M170175</link>
      <description>&lt;P&gt;You wrote &lt;CODE&gt;sys.stdn&lt;/CODE&gt;, but i assume it's just a typo?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2018 16:04:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/key-error-in-Python-call-to-search-results-Json/m-p/343311#M170175</guid>
      <dc:creator>damien_chillet</dc:creator>
      <dc:date>2018-04-20T16:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: key error in Python call to search results Json</title>
      <link>https://community.splunk.com/t5/Splunk-Search/key-error-in-Python-call-to-search-results-Json/m-p/343312#M170176</link>
      <description>&lt;P&gt;Yes that is a typo here, in the code it is sys.stdin.read()&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2018 16:27:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/key-error-in-Python-call-to-search-results-Json/m-p/343312#M170176</guid>
      <dc:creator>Athildjax64</dc:creator>
      <dc:date>2018-04-20T16:27:43Z</dc:date>
    </item>
  </channel>
</rss>

