<?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 How to login into splunk instance with admin user credentials via javascript sdk , what are the prerequisites we need in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/How-to-login-into-splunk-instance-with-admin-user-credentials/m-p/599246#M10634</link>
    <description>&lt;P&gt;Hi All ,&lt;/P&gt;&lt;P&gt;I am trying to login into splunk instance&amp;nbsp; with javascript sdk&amp;nbsp; credentials but it is not working well.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var http = new splunkjs.ProxyHttp("/proxy");

        // Create a Service instance and log in 
        var service = new splunkjs.Service(http, {
            username: "admin",
            password: "yourpassword",
            scheme: "https",
            host: "localhost",
            port:"8089",
            version:"5.0"
        });


        // Verify we logged in

        // Print installed apps to the console to verify login
        service.apps().fetch(function(err, apps) {
            if (err) {
                alert("Error listing apps");
                return;
            }

            var myapps = "";
            var appsList = apps.list();
            for(var i = 0; i &amp;lt; appsList.length; i++) {
                myapps += "App " + i + ": " + appsList[i].name + "&amp;lt;br/&amp;gt;"
            } 

            document.getElementById("applist").innerHTML=myapps;
        });

    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 May 2022 10:27:32 GMT</pubDate>
    <dc:creator>ajayabburi508</dc:creator>
    <dc:date>2022-05-25T10:27:32Z</dc:date>
    <item>
      <title>How to login into splunk instance with admin user credentials via javascript sdk , what are the prerequisites we need</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-login-into-splunk-instance-with-admin-user-credentials/m-p/599246#M10634</link>
      <description>&lt;P&gt;Hi All ,&lt;/P&gt;&lt;P&gt;I am trying to login into splunk instance&amp;nbsp; with javascript sdk&amp;nbsp; credentials but it is not working well.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var http = new splunkjs.ProxyHttp("/proxy");

        // Create a Service instance and log in 
        var service = new splunkjs.Service(http, {
            username: "admin",
            password: "yourpassword",
            scheme: "https",
            host: "localhost",
            port:"8089",
            version:"5.0"
        });


        // Verify we logged in

        // Print installed apps to the console to verify login
        service.apps().fetch(function(err, apps) {
            if (err) {
                alert("Error listing apps");
                return;
            }

            var myapps = "";
            var appsList = apps.list();
            for(var i = 0; i &amp;lt; appsList.length; i++) {
                myapps += "App " + i + ": " + appsList[i].name + "&amp;lt;br/&amp;gt;"
            } 

            document.getElementById("applist").innerHTML=myapps;
        });

    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 10:27:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-login-into-splunk-instance-with-admin-user-credentials/m-p/599246#M10634</guid>
      <dc:creator>ajayabburi508</dc:creator>
      <dc:date>2022-05-25T10:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to login into splunk instance with admin user credentials via javascript sdk , what are the prerequisites we nee</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-login-into-splunk-instance-with-admin-user-credentials/m-p/599247#M10635</link>
      <description>&lt;P&gt;I am able to run one shot searches but it is taking auto login , but it should take admin credentials only.&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 10:29:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-login-into-splunk-instance-with-admin-user-credentials/m-p/599247#M10635</guid>
      <dc:creator>ajayabburi508</dc:creator>
      <dc:date>2022-05-25T10:29:07Z</dc:date>
    </item>
  </channel>
</rss>

