<?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 Query string method not working for HEC on Cloud in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Query-string-method-not-working-for-HEC-on-Cloud/m-p/373591#M161145</link>
    <description>&lt;P&gt;I have a splunk cloud stack which has HEC enabled on it and I am referring following page to send data via HEC:&lt;BR /&gt;
&lt;A href="http://dev.splunk.com/view/event-collector/SP-CAAAE7G"&gt;http://dev.splunk.com/view/event-collector/SP-CAAAE7G&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;which have mentioned 3 ways:&lt;BR /&gt;
1. HTTP Authentication&lt;BR /&gt;
2. Basic authentication&lt;BR /&gt;
3. Query string&lt;/P&gt;

&lt;P&gt;Among them, 1 and 2 are working properly. But when I tried to send data via "Query string" it gives following Error:&lt;/P&gt;

&lt;P&gt;{"text":"Query string authorization is not enabled","code":16}&lt;/P&gt;

&lt;P&gt;The curl command I tried is as follow:&lt;BR /&gt;
curl -k &lt;A href="https://http-inputs-STACK_NAME.splunkcloud.com/services/collector/event?token=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"&gt;https://http-inputs-STACK_NAME.splunkcloud.com/services/collector/event?token=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&lt;/A&gt; -d '{"event": "hello world"}'&lt;/P&gt;

&lt;P&gt;Any idea regarding How to enable the "Query string" in cloud stack?&lt;/P&gt;</description>
    <pubDate>Thu, 11 May 2017 10:00:38 GMT</pubDate>
    <dc:creator>naiktej13</dc:creator>
    <dc:date>2017-05-11T10:00:38Z</dc:date>
    <item>
      <title>Query string method not working for HEC on Cloud</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-string-method-not-working-for-HEC-on-Cloud/m-p/373591#M161145</link>
      <description>&lt;P&gt;I have a splunk cloud stack which has HEC enabled on it and I am referring following page to send data via HEC:&lt;BR /&gt;
&lt;A href="http://dev.splunk.com/view/event-collector/SP-CAAAE7G"&gt;http://dev.splunk.com/view/event-collector/SP-CAAAE7G&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;which have mentioned 3 ways:&lt;BR /&gt;
1. HTTP Authentication&lt;BR /&gt;
2. Basic authentication&lt;BR /&gt;
3. Query string&lt;/P&gt;

&lt;P&gt;Among them, 1 and 2 are working properly. But when I tried to send data via "Query string" it gives following Error:&lt;/P&gt;

&lt;P&gt;{"text":"Query string authorization is not enabled","code":16}&lt;/P&gt;

&lt;P&gt;The curl command I tried is as follow:&lt;BR /&gt;
curl -k &lt;A href="https://http-inputs-STACK_NAME.splunkcloud.com/services/collector/event?token=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"&gt;https://http-inputs-STACK_NAME.splunkcloud.com/services/collector/event?token=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&lt;/A&gt; -d '{"event": "hello world"}'&lt;/P&gt;

&lt;P&gt;Any idea regarding How to enable the "Query string" in cloud stack?&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 10:00:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-string-method-not-working-for-HEC-on-Cloud/m-p/373591#M161145</guid>
      <dc:creator>naiktej13</dc:creator>
      <dc:date>2017-05-11T10:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Query string method not working for HEC on Cloud</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-string-method-not-working-for-HEC-on-Cloud/m-p/373592#M161146</link>
      <description>&lt;P&gt;Hi Naiktej13, &lt;/P&gt;

&lt;P&gt;Seems that the allowQueryStringAuth has not been set to true in the HEC local stanza in your Cloud instance: &lt;BR /&gt;
    allowQueryStringAuth = [true|false]&lt;BR /&gt;
For detailed information about his setting, see &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.6.0/Admin/Inputsconf#HTTP_Event_Collector_.28HEC.29_-_Local_stanza_for_each_token"&gt;http://docs.splunk.com/Documentation/Splunk/6.6.0/Admin/Inputsconf#HTTP_Event_Collector_.28HEC.29_-_Local_stanza_for_each_token&lt;/A&gt; . &lt;/P&gt;

&lt;P&gt;Please contact your Cloud administrator to set allowQueryStringAuth to true to Enable sending authorization token with query string. &lt;/P&gt;

&lt;P&gt;Hope it helps. Thanks! &lt;BR /&gt;
Hunter&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 14:19:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-string-method-not-working-for-HEC-on-Cloud/m-p/373592#M161146</guid>
      <dc:creator>hunters_splunk</dc:creator>
      <dc:date>2017-05-11T14:19:20Z</dc:date>
    </item>
  </channel>
</rss>

