<?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: Splunk CLI Exception: Error result had no _raw key in Security</title>
    <link>https://community.splunk.com/t5/Security/Splunk-CLI-Exception-Error-result-had-no-raw-key/m-p/46458#M13861</link>
    <description>&lt;P&gt;Great. "-output table" did the trick. My search use transaction to group events, and then show a table with the results, but the _raw data can contain grouped events with thousands of lines, I think that was the problem.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Sep 2010 20:51:10 GMT</pubDate>
    <dc:creator>hbazan</dc:creator>
    <dc:date>2010-09-09T20:51:10Z</dc:date>
    <item>
      <title>Splunk CLI Exception: Error result had no _raw key</title>
      <link>https://community.splunk.com/t5/Security/Splunk-CLI-Exception-Error-result-had-no-raw-key/m-p/46455#M13858</link>
      <description>&lt;P&gt;Hi there.
I'm running some saved searches using splunk CLI, and some of them work fine, but one (obviously the one I need to run) give me this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Error result had no _raw key
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is the command I use:
    splunk search "|savedsearch \"My Saved Search\""&lt;/P&gt;

&lt;P&gt;The saved search is supposed to return a table, not the raw results.
I haven't found any description for that exception message&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2010 01:47:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-CLI-Exception-Error-result-had-no-raw-key/m-p/46455#M13858</guid>
      <dc:creator>hbazan</dc:creator>
      <dc:date>2010-09-09T01:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk CLI Exception: Error result had no _raw key</title>
      <link>https://community.splunk.com/t5/Security/Splunk-CLI-Exception-Error-result-had-no-raw-key/m-p/46456#M13859</link>
      <description>&lt;P&gt;Have you tried running the same search from the GUI using the &lt;CODE&gt;savedsearch&lt;/CODE&gt; command there?  Does that produce any further detail on the error?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2010 06:25:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-CLI-Exception-Error-result-had-no-raw-key/m-p/46456#M13859</guid>
      <dc:creator>southeringtonp</dc:creator>
      <dc:date>2010-09-09T06:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk CLI Exception: Error result had no _raw key</title>
      <link>https://community.splunk.com/t5/Security/Splunk-CLI-Exception-Error-result-had-no-raw-key/m-p/46457#M13860</link>
      <description>&lt;P&gt;This means that the CLI thought that it should render raw results but was not given any. If you can share your search, I might be able to give some insight as to why (or file a bug). A quick workaround is to add "-output table" to your argument list.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2010 13:11:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-CLI-Exception-Error-result-had-no-raw-key/m-p/46457#M13860</guid>
      <dc:creator>Stephen_Sorkin</dc:creator>
      <dc:date>2010-09-09T13:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk CLI Exception: Error result had no _raw key</title>
      <link>https://community.splunk.com/t5/Security/Splunk-CLI-Exception-Error-result-had-no-raw-key/m-p/46458#M13861</link>
      <description>&lt;P&gt;Great. "-output table" did the trick. My search use transaction to group events, and then show a table with the results, but the _raw data can contain grouped events with thousands of lines, I think that was the problem.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2010 20:51:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-CLI-Exception-Error-result-had-no-raw-key/m-p/46458#M13861</guid>
      <dc:creator>hbazan</dc:creator>
      <dc:date>2010-09-09T20:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk CLI Exception: Error result had no _raw key</title>
      <link>https://community.splunk.com/t5/Security/Splunk-CLI-Exception-Error-result-had-no-raw-key/m-p/46459#M13862</link>
      <description>&lt;P&gt;Thanks!  This case helped me understand that&lt;BR /&gt;
&lt;STRONG&gt;-output rawdata&lt;/STRONG&gt;&lt;BR /&gt;
is based on the contents of the _raw field and that any field filtering is ignored.&lt;/P&gt;

&lt;P&gt;For example:&lt;BR /&gt;
&lt;STRONG&gt;splunk search 'index=anIndex some=criteria | fields + foo, bar' -output rawdata&lt;/STRONG&gt;&lt;BR /&gt;
gives all fields and is not limited to foo and bar, which is my goal.&lt;/P&gt;

&lt;P&gt;Removing the special fields starting with underscore:&lt;BR /&gt;
&lt;STRONG&gt;splunk search 'index=anIndex some=criteria | fields + foo, bar | fields - _*' -output rawdata&lt;/STRONG&gt; &lt;BR /&gt;
gives the error:&lt;BR /&gt;
Error result had no _raw key&lt;/P&gt;

&lt;P&gt;Ultimately I changed the query output to 'raw':&lt;BR /&gt;
&lt;STRONG&gt;splunk search 'index=anIndex some=criteria | fields + foo, bar | fields - _*' -output raw&lt;/STRONG&gt; &lt;BR /&gt;
and now I get only the fields foo and bar in my results!&lt;/P&gt;

&lt;P&gt;Unfortunately the output format of 'raw' is different from 'rawdata' and thus I need to adjust my down stream processing but that's the next step.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 18:32:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-CLI-Exception-Error-result-had-no-raw-key/m-p/46459#M13862</guid>
      <dc:creator>AppleMark</dc:creator>
      <dc:date>2016-06-24T18:32:26Z</dc:date>
    </item>
  </channel>
</rss>

