<?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: How to execute searches with auth token, using the Webtools Add-on in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-execute-searches-with-auth-token-using-the-Webtools-Add/m-p/569786#M101025</link>
    <description>&lt;P&gt;Make sure you rotate auth tokens for that account or restart splunk on that host. &amp;nbsp;You have the whole token shown in the image.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Oct 2021 20:21:18 GMT</pubDate>
    <dc:creator>jkat54</dc:creator>
    <dc:date>2021-10-05T20:21:18Z</dc:date>
    <item>
      <title>How to execute searches with auth token, using the Webtools Add-on</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-execute-searches-with-auth-token-using-the-Webtools-Add/m-p/569759#M101016</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/199197"&gt;@jkat54&lt;/a&gt;, thank you for creating this wonderful app.&amp;nbsp; I have a use case that requires executing remote searches from one independent search head to another search head, with the use of auth tokens.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to do so using the linux curl command, using the following command syntax:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;curl -k -H "Authorization: Bearer eyJraWQiOiJzcGx1bmsuc2VjcmV0IiwiYWxnIjoiSFM1MTIiLCJ2ZXIiOiJ2MiIsInR0eXAiOiJzdGF0aWMifQ.eyJpc" https://localhost:8089/services/search/jobs/export -d output_mode=csv -d search="search index=_internal | head 10"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know how I can translate the above syntax into search command, leveraging the webtools add-on.&amp;nbsp; &amp;nbsp;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 18:29:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-execute-searches-with-auth-token-using-the-Webtools-Add/m-p/569759#M101016</guid>
      <dc:creator>splunker686</dc:creator>
      <dc:date>2021-10-05T18:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute searches with auth token, using the Webtools Add-on</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-execute-searches-with-auth-token-using-the-Webtools-Add/m-p/569762#M101018</link>
      <description>&lt;P&gt;Did you see the examples on the splunkbase details tab?&lt;/P&gt;&lt;P&gt;the one below matches what you're doing:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Setting a Custom Header &amp;amp; Test Data:&lt;BR /&gt;| makeresults count=1&lt;BR /&gt;| eval header="{\"content-type\":\"application/json\"}"&lt;BR /&gt;| eval data="{\"test data\":\"DATA\"}"&lt;BR /&gt;| curl method=post uri=&lt;A href="https://localhost:8089/services" target="_blank"&gt;https://localhost:8089/services user=&lt;/A&gt;admin pass=changeme debug=true headerfield=header datafield=data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 05 Oct 2021 18:34:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-execute-searches-with-auth-token-using-the-Webtools-Add/m-p/569762#M101018</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2021-10-05T18:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute searches with auth token, using the Webtools Add-on</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-execute-searches-with-auth-token-using-the-Webtools-Add/m-p/569779#M101022</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/199197"&gt;@jkat54&lt;/a&gt;&amp;nbsp;for your tip.&amp;nbsp; This seems to work as expected now:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;| makeresults count=1
| eval header="{\"content-type\":\"application/json\",\"Authorization\":\"Bearer eyJraWQiOiJzcGx1bmsuc2VjcmV0IiwiYWxnIjoiSFM1MTIiLCJ2ZXIiOiJ2MiIsInR0eXAiOiJzdGF0aWMifQ.eyJpc...\"}"
| eval data="{\"search\":\"search index=_internal source=*splunkd.log | head 10 | table _raw\",\"output_mode\":\"csv\"}"
| curl method=get uri=https://localhost:8089/services/search/jobs/export headerfield=header datafield=data&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-10-05 at 12.31.30 PM.png" style="width: 791px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16283iD5DE4D8D74DA4BA3/image-dimensions/791x364?v=v2" width="791" height="364" role="button" title="Screen Shot 2021-10-05 at 12.31.30 PM.png" alt="Screen Shot 2021-10-05 at 12.31.30 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks again for this useful tool.&amp;nbsp; Please keep up the good work.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 19:39:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-execute-searches-with-auth-token-using-the-Webtools-Add/m-p/569779#M101022</guid>
      <dc:creator>splunker686</dc:creator>
      <dc:date>2021-10-05T19:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute searches with auth token, using the Webtools Add-on</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-execute-searches-with-auth-token-using-the-Webtools-Add/m-p/569784#M101024</link>
      <description>&lt;P&gt;Great! &amp;nbsp;Thanks for accepting my answer and smashing the thumbs up button!&lt;/P&gt;&lt;P&gt;Happy POWER splunking!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 20:19:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-execute-searches-with-auth-token-using-the-Webtools-Add/m-p/569784#M101024</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2021-10-05T20:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute searches with auth token, using the Webtools Add-on</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-execute-searches-with-auth-token-using-the-Webtools-Add/m-p/569786#M101025</link>
      <description>&lt;P&gt;Make sure you rotate auth tokens for that account or restart splunk on that host. &amp;nbsp;You have the whole token shown in the image.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 20:21:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-execute-searches-with-auth-token-using-the-Webtools-Add/m-p/569786#M101025</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2021-10-05T20:21:18Z</dc:date>
    </item>
  </channel>
</rss>

