<?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 for Cisco IPS: When running a search, why am I getting error &amp;quot;Could not get IPS x.x.x.x credentials from splunk&amp;quot;? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-for-Cisco-IPS-When-running-a-search-why-am-I-getting/m-p/160137#M185941</link>
    <description>&lt;P&gt;Thank you for additional info, whistj. &lt;/P&gt;

&lt;P&gt;The script is expecting a valid session_key for an account that can retrieve the credential (this is why the inputs.conf contains the "passAuth = splunk-system-user" setting). It is expecting to find this in stdin&lt;/P&gt;

&lt;P&gt;You can get a session key several ways. One way is from the search app in the UI.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /services/authentication/httpauth-tokens | search (userName="ADMIN_USER") searchId="" | stats first(authString) as session_key
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That session_key may be passed via stdin via CLI to approximate the scripted input's behavior:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;echo &amp;lt;actual session_key&amp;gt; | /opt/splunk/etc/apps/Splunk_TA_cisco-ips/bin/get_ips_feed.py &amp;lt;ips_host&amp;gt; 15
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 18 Dec 2014 15:33:35 GMT</pubDate>
    <dc:creator>bwooden</dc:creator>
    <dc:date>2014-12-18T15:33:35Z</dc:date>
    <item>
      <title>Splunk for Cisco IPS: When running a search, why am I getting error "Could not get IPS x.x.x.x credentials from splunk"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-for-Cisco-IPS-When-running-a-search-why-am-I-getting/m-p/160131#M185935</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;we have configured Splunk_TA_cisco-ips. We set up everything as per the guide, but we keep getting this error if we search:&lt;/P&gt;

&lt;P&gt;index="_internal" sourcetype="sdee_connection"&lt;/P&gt;

&lt;P&gt;Tue Dec 16 17:51:55 2014 - Could not get IPS x.x.x.x credentials from splunk: SplunkdConnectionException: Splunkd daemon is not responding: ('Error connecting to /servicesNS/nobody/Splunk_TA_cisco-ips/storage/passwords: [Errno 111] Connection refused',)&lt;/P&gt;

&lt;P&gt;The credentials that we use are working as we tried to access the system. Can it be something else ?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:27:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-for-Cisco-IPS-When-running-a-search-why-am-I-getting/m-p/160131#M185935</guid>
      <dc:creator>arber</dc:creator>
      <dc:date>2020-09-28T18:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk for Cisco IPS: When running a search, why am I getting error "Could not get IPS x.x.x.x credentials from splunk"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-for-Cisco-IPS-When-running-a-search-why-am-I-getting/m-p/160132#M185936</link>
      <description>&lt;P&gt;That error is not saying the credentials are wrong, it is saying the script that queries the IPS could not load the credentials with which to try. &lt;/P&gt;

&lt;P&gt;Can you verify that you have a credential defined in $SPLUNK_HOME/etc/apps/Splunk_TA_cisco-ips/local/app.conf? We can determine next steps based on that info. &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:23:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-for-Cisco-IPS-When-running-a-search-why-am-I-getting/m-p/160132#M185936</guid>
      <dc:creator>bwooden</dc:creator>
      <dc:date>2020-09-28T18:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk for Cisco IPS: When running a search, why am I getting error "Could not get IPS x.x.x.x credentials from splunk"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-for-Cisco-IPS-When-running-a-search-why-am-I-getting/m-p/160133#M185937</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;yes we have:&lt;/P&gt;

&lt;P&gt;[credential:x.x.x.x:xxxx:]&lt;BR /&gt;
password = xxxxxx&lt;/P&gt;

&lt;P&gt;[install]&lt;BR /&gt;
is_configured = 1&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2014 13:27:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-for-Cisco-IPS-When-running-a-search-why-am-I-getting/m-p/160133#M185937</guid>
      <dc:creator>arber</dc:creator>
      <dc:date>2014-12-18T13:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk for Cisco IPS: When running a search, why am I getting error "Could not get IPS x.x.x.x credentials from splunk"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-for-Cisco-IPS-When-running-a-search-why-am-I-getting/m-p/160134#M185938</link>
      <description>&lt;P&gt;Thanks for checking, Arber. That certainly looks correct. Does the $SPLUNK_HOME/etc/apps/Splunk_TA_cisco-ips/local/inputs.conf also look like this (i.e. disabled=false, passAuth=splunk-system-user):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[script://$SPLUNK_HOME/etc/apps/Splunk_TA_cisco-ips/bin/get_ips_feed.py ips_host 15]
disabled = false
interval = 1
passAuth = splunk-system-user 
&amp;lt;snip /&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:24:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-for-Cisco-IPS-When-running-a-search-why-am-I-getting/m-p/160134#M185938</guid>
      <dc:creator>bwooden</dc:creator>
      <dc:date>2020-09-28T18:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk for Cisco IPS: When running a search, why am I getting error "Could not get IPS x.x.x.x credentials from splunk"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-for-Cisco-IPS-When-running-a-search-why-am-I-getting/m-p/160135#M185939</link>
      <description>&lt;P&gt;I seem to have the same issue. Working with a support engineer he had me test from the command line using:&lt;BR /&gt;
./splunk cmd python /opt/splunk/etc/apps/Splunk_TA_cisco-ips/bin/get_ips_feed.py ips_host 15 &lt;BR /&gt;
That returns "invalid command-line arguments"&lt;/P&gt;

&lt;P&gt;If I place the username and password on the commandline prior to ips_host it executes but fails reading:&lt;/P&gt;

&lt;P&gt;Wed Dec 17 15:45:32 2014 - INFO - Checking for exsisting SubscriptionID on host: ips_host &lt;BR /&gt;
Wed Dec 17 15:45:32 2014 - INFO - No exsisting SubscriptionID for host: ips_host &lt;BR /&gt;
Wed Dec 17 15:45:32 2014 - INFO - Attempting to connect to sensor: ips_host&lt;BR /&gt;&lt;BR /&gt;
Wed Dec 17 15:45:32 2014 - INFO - Successfully connected to: ips_host&lt;BR /&gt;&lt;BR /&gt;
Wed Dec 17 15:45:32 2014 - ERROR - Connecting to sensor - ips_host: URLError: &lt;/P&gt;

&lt;P&gt;if I use curl from the commandline (--insecure to accept my self-signed cert)&lt;BR /&gt;
curl --insecure --user ADMINUSER:PASSWORD &lt;A href="https://ips_host/cgi-bin/sdee-server" target="_blank"&gt;https://ips_host/cgi-bin/sdee-server&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I get the expected XML data&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:24:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-for-Cisco-IPS-When-running-a-search-why-am-I-getting/m-p/160135#M185939</guid>
      <dc:creator>whistj</dc:creator>
      <dc:date>2020-09-28T18:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk for Cisco IPS: When running a search, why am I getting error "Could not get IPS x.x.x.x credentials from splunk"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-for-Cisco-IPS-When-running-a-search-why-am-I-getting/m-p/160136#M185940</link>
      <description>&lt;P&gt;yes it is like this&lt;/P&gt;

&lt;P&gt;[script://$SPLUNK_HOME/etc/apps/Splunk_TA_cisco-ips/bin/get_ips_feed.py xxxxx 15]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
interval = 1&lt;BR /&gt;
passAuth = splunk-system-user&lt;BR /&gt;
source = SDEE&lt;BR /&gt;
sourcetype = cisco_ips_syslog&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:28:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-for-Cisco-IPS-When-running-a-search-why-am-I-getting/m-p/160136#M185940</guid>
      <dc:creator>arber</dc:creator>
      <dc:date>2020-09-28T18:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk for Cisco IPS: When running a search, why am I getting error "Could not get IPS x.x.x.x credentials from splunk"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-for-Cisco-IPS-When-running-a-search-why-am-I-getting/m-p/160137#M185941</link>
      <description>&lt;P&gt;Thank you for additional info, whistj. &lt;/P&gt;

&lt;P&gt;The script is expecting a valid session_key for an account that can retrieve the credential (this is why the inputs.conf contains the "passAuth = splunk-system-user" setting). It is expecting to find this in stdin&lt;/P&gt;

&lt;P&gt;You can get a session key several ways. One way is from the search app in the UI.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /services/authentication/httpauth-tokens | search (userName="ADMIN_USER") searchId="" | stats first(authString) as session_key
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That session_key may be passed via stdin via CLI to approximate the scripted input's behavior:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;echo &amp;lt;actual session_key&amp;gt; | /opt/splunk/etc/apps/Splunk_TA_cisco-ips/bin/get_ips_feed.py &amp;lt;ips_host&amp;gt; 15
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Dec 2014 15:33:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-for-Cisco-IPS-When-running-a-search-why-am-I-getting/m-p/160137#M185941</guid>
      <dc:creator>bwooden</dc:creator>
      <dc:date>2014-12-18T15:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk for Cisco IPS: When running a search, why am I getting error "Could not get IPS x.x.x.x credentials from splunk"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-for-Cisco-IPS-When-running-a-search-why-am-I-getting/m-p/160138#M185942</link>
      <description>&lt;P&gt;Note: The above should produce the same result you're seeing from Splunk in the logs. I provided that information to eliminate the "invalid command-line arguments" when testing manually but I would expect the same error whether invoked manually or by Splunk.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2014 15:39:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-for-Cisco-IPS-When-running-a-search-why-am-I-getting/m-p/160138#M185942</guid>
      <dc:creator>bwooden</dc:creator>
      <dc:date>2014-12-18T15:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk for Cisco IPS: When running a search, why am I getting error "Could not get IPS x.x.x.x credentials from splunk"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-for-Cisco-IPS-When-running-a-search-why-am-I-getting/m-p/160139#M185943</link>
      <description>&lt;P&gt;we i try to manually execute the script putting the username and password i get this:&lt;/P&gt;

&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;
  File "/opt/splunk/etc/apps/Splunk_TA_cisco-ips/bin/get_ips_feed.py", line 289, in &lt;BR /&gt;
    run(sys.argv[1],sys.argv[2],sys.argv[3],sys.argv[4],"https","yes")&lt;BR /&gt;
  File "/opt/splunk/etc/apps/Splunk_TA_cisco-ips/bin/get_ips_feed.py", line 76, in run&lt;BR /&gt;
    open(os.path.join(RUN_DIR, host + '.run'), 'w').close()&lt;BR /&gt;
IOError: [Errno 2] No such file or directory: '/opt/splunk/etc/apps/Splunk_TA_cisco-ips/var/run/x.x.x.x.run'&lt;/P&gt;

&lt;P&gt;Indeed the var/log foder inside the /opt/splunk/etc/apps/Splunk_TA_cisco-ips is not created &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:28:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-for-Cisco-IPS-When-running-a-search-why-am-I-getting/m-p/160139#M185943</guid>
      <dc:creator>arber</dc:creator>
      <dc:date>2020-09-28T18:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk for Cisco IPS: When running a search, why am I getting error "Could not get IPS x.x.x.x credentials from splunk"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-for-Cisco-IPS-When-running-a-search-why-am-I-getting/m-p/160140#M185944</link>
      <description>&lt;P&gt;Thank you Arber. That path problem has been resolved via ADDON-2386. That fix will be included in the next maintenance release. In the meantime, if you create the $SPLUNK_HOME/etc/apps/Splunk_TA_cisco-ips/var/log and $SPLUNK_HOME/etc/apps/Splunk_TA_cisco-ips/var/run manually, you still receive the credential related error? &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:24:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-for-Cisco-IPS-When-running-a-search-why-am-I-getting/m-p/160140#M185944</guid>
      <dc:creator>bwooden</dc:creator>
      <dc:date>2020-09-28T18:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk for Cisco IPS: When running a search, why am I getting error "Could not get IPS x.x.x.x credentials from splunk"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-for-Cisco-IPS-When-running-a-search-why-am-I-getting/m-p/160141#M185945</link>
      <description>&lt;P&gt;Arber, would your provide your Splunk version, Splunk build, and OS running Splunk? &lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2014 16:34:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-for-Cisco-IPS-When-running-a-search-why-am-I-getting/m-p/160141#M185945</guid>
      <dc:creator>bwooden</dc:creator>
      <dc:date>2014-12-18T16:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk for Cisco IPS: When running a search, why am I getting error "Could not get IPS x.x.x.x credentials from splunk"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-for-Cisco-IPS-When-running-a-search-why-am-I-getting/m-p/160142#M185946</link>
      <description>&lt;P&gt;Splunk 6.2  build 237341 Debian 7&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2014 18:13:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-for-Cisco-IPS-When-running-a-search-why-am-I-getting/m-p/160142#M185946</guid>
      <dc:creator>arber</dc:creator>
      <dc:date>2014-12-18T18:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk for Cisco IPS: When running a search, why am I getting error "Could not get IPS x.x.x.x credentials from splunk"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-for-Cisco-IPS-When-running-a-search-why-am-I-getting/m-p/160143#M185947</link>
      <description>&lt;P&gt;i created manually the folders but still the issue is the same.. also i get this file x.x.x.x.run but it is empty&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2014 18:14:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-for-Cisco-IPS-When-running-a-search-why-am-I-getting/m-p/160143#M185947</guid>
      <dc:creator>arber</dc:creator>
      <dc:date>2014-12-18T18:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk for Cisco IPS: When running a search, why am I getting error "Could not get IPS x.x.x.x credentials from splunk"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-for-Cisco-IPS-When-running-a-search-why-am-I-getting/m-p/160144#M185948</link>
      <description>&lt;P&gt;thanks, I confirm that by grabbing my session key and feeding it in  I do get &lt;BR /&gt;
Thu Dec 18 16:15:29 2014 - INFO - Checking for exsisting SubscriptionID on host: ips_host&lt;BR /&gt;
Thu Dec 18 16:15:29 2014 - INFO - No exsisting SubscriptionID for host:  ips_host&lt;BR /&gt;
Thu Dec 18 16:15:29 2014 - INFO - Attempting to connect to sensor:  ips_host&lt;BR /&gt;
Thu Dec 18 16:15:29 2014 - INFO - Successfully connected to: ips_host&lt;BR /&gt;
Thu Dec 18 16:15:29 2014 - ERROR - Connecting to sensor -  ips_host: URLError: &lt;/P&gt;

&lt;P&gt;then if I ctrl+c to cancel that command I get&lt;/P&gt;

&lt;P&gt;File "/opt/splunk/etc/apps/Splunk_TA_cisco-ips/bin/get_ips_feed.py", line 303, in &lt;BR /&gt;
    run(username,password,sys.argv[1],sys.argv[2],"https","yes")&lt;BR /&gt;
  File "/opt/splunk/etc/apps/Splunk_TA_cisco-ips/bin/get_ips_feed.py", line 94, in run&lt;BR /&gt;
    time.sleep(300)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:24:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-for-Cisco-IPS-When-running-a-search-why-am-I-getting/m-p/160144#M185948</guid>
      <dc:creator>whistj</dc:creator>
      <dc:date>2020-09-28T18:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk for Cisco IPS: When running a search, why am I getting error "Could not get IPS x.x.x.x credentials from splunk"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-for-Cisco-IPS-When-running-a-search-why-am-I-getting/m-p/160145#M185949</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;we installed the new version of cisco ips addon 6.1.2 and it seems that the conenction is ok, So the script is successful logged on. &lt;BR /&gt;
sdee_get.log&lt;/P&gt;

&lt;P&gt;Mon Jan 19 07:18:39 2015 - INFO - Checking for exsisting SubscriptionID on host: x.x.xx&lt;BR /&gt;
Mon Jan 19 07:18:40 2015 - INFO - SubscriptionID: sub-4-711f2b1c found for host: x.x.x.x&lt;BR /&gt;
Mon Jan 19 07:18:40 2015 - INFO - Attempting to connect to sensor: x.x.x.x&lt;BR /&gt;
Mon Jan 19 07:18:40 2015 - INFO - Successfully connected to: x.x.x.x&lt;/P&gt;

&lt;P&gt;the \var\log\ and var\run folders and files inside them are created automatically( didnt happen in the previous version) . But still ips_sdee.log.x.x.x.x file inside /opt/splunk/etc/apps/Splunk_TA_cisco-ips/var/log remains empty&lt;/P&gt;

&lt;P&gt;Any idea ?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:41:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-for-Cisco-IPS-When-running-a-search-why-am-I-getting/m-p/160145#M185949</guid>
      <dc:creator>arber</dc:creator>
      <dc:date>2020-09-28T18:41:55Z</dc:date>
    </item>
  </channel>
</rss>

