<?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: Remotely pull ./splunk diag via REST? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Remotely-pull-splunk-diag-via-REST/m-p/12806#M1042</link>
    <description>&lt;P&gt;Found that it does not work on windows- but works on Unix&lt;/P&gt;</description>
    <pubDate>Fri, 31 Jan 2014 02:07:53 GMT</pubDate>
    <dc:creator>rbal_splunk</dc:creator>
    <dc:date>2014-01-31T02:07:53Z</dc:date>
    <item>
      <title>Remotely pull ./splunk diag via REST?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remotely-pull-splunk-diag-via-REST/m-p/12800#M1036</link>
      <description>&lt;P&gt;Is it possible to pull a diag output from the REST interface?  It's slightly cumbersome, especially when I need to run more than one diag, to ssh-&amp;gt;sudo ./splunk diag-&amp;gt;set file perms-&amp;gt;scp.  Maybe there's a better way to do this?  &lt;/P&gt;

&lt;P&gt;Obviously these files can get pretty big, but in many cases it's only a few megs.&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2010 01:50:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remotely-pull-splunk-diag-via-REST/m-p/12800#M1036</guid>
      <dc:creator>oreoshake</dc:creator>
      <dc:date>2010-05-04T01:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Remotely pull ./splunk diag via REST?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remotely-pull-splunk-diag-via-REST/m-p/12801#M1037</link>
      <description>&lt;P&gt;Unfortunately not. &lt;CODE&gt;splunk diag&lt;/CODE&gt; is implemented in python code called directly by the &lt;CODE&gt;splunk&lt;/CODE&gt; binary. This is a good enhancement request to allow &lt;CODE&gt;splunkd&lt;/CODE&gt; to invoke &lt;CODE&gt;splunk diag&lt;/CODE&gt; on behalf of a properly authenticated admin.  &lt;/P&gt;</description>
      <pubDate>Sat, 21 Aug 2010 06:08:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remotely-pull-splunk-diag-via-REST/m-p/12801#M1037</guid>
      <dc:creator>Stephen_Sorkin</dc:creator>
      <dc:date>2010-08-21T06:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Remotely pull ./splunk diag via REST?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remotely-pull-splunk-diag-via-REST/m-p/12802#M1038</link>
      <description>&lt;P&gt;It could be added.  Diag can run whether or not splunk is running, so it's launched externally, but there's no reason we can't add launching it internally as well.&lt;/P&gt;

&lt;P&gt;I'd been imagining a flag to diag that uploads it directly to a case, but I'm not sure if that's really what's wanted here.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Sep 2010 09:50:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remotely-pull-splunk-diag-via-REST/m-p/12802#M1038</guid>
      <dc:creator>jrodman</dc:creator>
      <dc:date>2010-09-04T09:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Remotely pull ./splunk diag via REST?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remotely-pull-splunk-diag-via-REST/m-p/12803#M1039</link>
      <description>&lt;P&gt;Personally, I'd rather not see this happen. I actually like the additional requirement of having server access, especially given that (one hopes) pulling Splunk diags should be a rare occurrence.&lt;/P&gt;

&lt;P&gt;Having this added as a feature request could have some security implications, since splunk diag will contain things like raw config files. Things that would not otherwise be exposed through the application would now be accessible. For example, passwords embedded in config files or app scripts. Presumably this would be restricted to Splunk admins, but it's still a new attack point.&lt;/P&gt;

&lt;P&gt;That doesn't necessarily implementing it it's a terrible idea, but there definitely should be an option to disable the ability (and it should not be possible to re-enable it via the GUI or REST interfaces).&lt;/P&gt;</description>
      <pubDate>Sat, 04 Sep 2010 23:29:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remotely-pull-splunk-diag-via-REST/m-p/12803#M1039</guid>
      <dc:creator>southeringtonp</dc:creator>
      <dc:date>2010-09-04T23:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Remotely pull ./splunk diag via REST?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remotely-pull-splunk-diag-via-REST/m-p/12804#M1040</link>
      <description>&lt;P&gt;As of version 6.0, it is now possible for admin users or users with the get_diag capability to remotely pull diags from REST endpoint "/streams/diag". Just use&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
curl -k -u admin:changeme &lt;A href="https://server_name:port/services/streams/diag" target="_blank"&gt;https://server_name:port/services/streams/diag&lt;/A&gt; &amp;gt;&amp;gt; diag_server.tar.gz"&lt;BR /&gt;
&lt;/PRE&gt;&lt;BR /&gt;
or you can just pass a remote uri to the already existing diag command:&lt;/P&gt;

&lt;PRE&gt;
./splunk diag -uri remote-server-name:remote-splunk-port
&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:17:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remotely-pull-splunk-diag-via-REST/m-p/12804#M1040</guid>
      <dc:creator>pshah_splunk</dc:creator>
      <dc:date>2020-09-28T15:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Remotely pull ./splunk diag via REST?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remotely-pull-splunk-diag-via-REST/m-p/12805#M1041</link>
      <description>&lt;P&gt;As of version 6.0, it is now possible for admin users or users with the get_diag capability to remotely pull diags from REST endpoint "/streams/diag". Just use&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
curl -k -u admin:changeme &lt;A href="https://server_name:port/services/streams/diag" target="_blank"&gt;https://server_name:port/services/streams/diag&lt;/A&gt; &amp;gt;&amp;gt; diag_server.tar.gz"&lt;BR /&gt;
&lt;/PRE&gt;&lt;BR /&gt;
or you can just pass a remote uri to the already existing diag command:&lt;/P&gt;

&lt;PRE&gt;
./splunk diag -uri remote-server-name:remote-splunk-port
&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:17:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remotely-pull-splunk-diag-via-REST/m-p/12805#M1041</guid>
      <dc:creator>pshah_splunk</dc:creator>
      <dc:date>2020-09-28T15:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Remotely pull ./splunk diag via REST?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remotely-pull-splunk-diag-via-REST/m-p/12806#M1042</link>
      <description>&lt;P&gt;Found that it does not work on windows- but works on Unix&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2014 02:07:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remotely-pull-splunk-diag-via-REST/m-p/12806#M1042</guid>
      <dc:creator>rbal_splunk</dc:creator>
      <dc:date>2014-01-31T02:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Remotely pull ./splunk diag via REST?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remotely-pull-splunk-diag-via-REST/m-p/12807#M1043</link>
      <description>&lt;P&gt;You can also do this from your browser with just  &lt;A href="https://server_name:port/services/streams/diag"&gt;https://server_name:port/services/streams/diag&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Mar 2014 12:19:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remotely-pull-splunk-diag-via-REST/m-p/12807#M1043</guid>
      <dc:creator>bmunson_splunk</dc:creator>
      <dc:date>2014-03-23T12:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Remotely pull ./splunk diag via REST?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remotely-pull-splunk-diag-via-REST/m-p/12808#M1044</link>
      <description>&lt;P&gt;I see this has been implemented but I can see your concerns. I would like it to be a non default attribute like can_delete.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Mar 2014 12:24:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remotely-pull-splunk-diag-via-REST/m-p/12808#M1044</guid>
      <dc:creator>bmunson_splunk</dc:creator>
      <dc:date>2014-03-23T12:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Remotely pull ./splunk diag via REST?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remotely-pull-splunk-diag-via-REST/m-p/12809#M1045</link>
      <description>&lt;P&gt;I am using this /services/streams/diag endpoint and its created 3GB file, it does not make sense. The usual diag creates file around 400MB. Also i cannot find any documentation on using this endpoint. &lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 18:08:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remotely-pull-splunk-diag-via-REST/m-p/12809#M1045</guid>
      <dc:creator>jatin_patel</dc:creator>
      <dc:date>2018-09-20T18:08:52Z</dc:date>
    </item>
  </channel>
</rss>

