<?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: Why is perl script not working in Splunk 6.2 and getting error 'Cannot login to: https://127.0.0.1:8834/'&amp;quot;? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-perl-script-not-working-in-Splunk-6-2-and-getting-error/m-p/115101#M24095</link>
    <description>&lt;P&gt;I had to link perl library. Now it works.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#!/bin/sh
export PERL_LWP_SSL_VERIFY_HOSTNAME=0
export LD_LIBRARY_PATH=/usr/local/share/perl/5.18.2/
perl $SPLUNK_HOME/etc/apps/FOLDER/bin/SCRIPT.pl
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 10 Nov 2014 20:23:31 GMT</pubDate>
    <dc:creator>pedromvieira</dc:creator>
    <dc:date>2014-11-10T20:23:31Z</dc:date>
    <item>
      <title>Why is perl script not working in Splunk 6.2 and getting error 'Cannot login to: https://127.0.0.1:8834/'"?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-perl-script-not-working-in-Splunk-6-2-and-getting-error/m-p/115099#M24093</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;

&lt;P&gt;I'm using Splunk 6.2 with a scripted input.&lt;BR /&gt;
My script works fine from shell.&lt;/P&gt;

&lt;P&gt;Shell:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;root@ubuntu:/opt/splunk/etc/apps/FOLDER/bin# ./SCRIPT.pl
Logged in
Export completed! /opt/.../reports/
Move completed! /opt/
Delete completed! /opt/.../reports/*.x
root@ubuntu:/opt/splunk/etc/apps/FOLDER/bin#
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Script Example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#!/usr/bin/perl
$ENV{'PERL_LWP_SSL_VERIFY_HOSTNAME'} = 0;

use strict;
use warnings;
use Net::Nessus::XMLRPC;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I search for the error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;11-10-2014 15:37:20.382 -0200 ERROR ExecProcessor - message from "/opt/splunk/etc/apps/FOLDER/bin/SCRIPT.pl" Cannot login to: &lt;A href="https://127.0.0.1:8834/" target="test_blank"&gt;https://127.0.0.1:8834/&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This message is defined inside the script, so it is working.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2014 17:40:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-perl-script-not-working-in-Splunk-6-2-and-getting-error/m-p/115099#M24093</guid>
      <dc:creator>pedromvieira</dc:creator>
      <dc:date>2014-11-10T17:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Why is perl script not working in Splunk 6.2 and getting error 'Cannot login to: https://127.0.0.1:8834/'"?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-perl-script-not-working-in-Splunk-6-2-and-getting-error/m-p/115100#M24094</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;root@ubuntu:/opt# /opt/splunk/bin/splunk cmd /opt/splunk/etc/apps/FOLDER/bin/SCRIPT.pl
Cannot login to: &lt;A href="https://127.0.0.1:8834/" target="test_blank"&gt;https://127.0.0.1:8834/&lt;/A&gt;
root@ubuntu:/opt#
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The same occurs with splunk cmd.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2014 19:19:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-perl-script-not-working-in-Splunk-6-2-and-getting-error/m-p/115100#M24094</guid>
      <dc:creator>pedromvieira</dc:creator>
      <dc:date>2014-11-10T19:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why is perl script not working in Splunk 6.2 and getting error 'Cannot login to: https://127.0.0.1:8834/'"?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-perl-script-not-working-in-Splunk-6-2-and-getting-error/m-p/115101#M24095</link>
      <description>&lt;P&gt;I had to link perl library. Now it works.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#!/bin/sh
export PERL_LWP_SSL_VERIFY_HOSTNAME=0
export LD_LIBRARY_PATH=/usr/local/share/perl/5.18.2/
perl $SPLUNK_HOME/etc/apps/FOLDER/bin/SCRIPT.pl
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Nov 2014 20:23:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-perl-script-not-working-in-Splunk-6-2-and-getting-error/m-p/115101#M24095</guid>
      <dc:creator>pedromvieira</dc:creator>
      <dc:date>2014-11-10T20:23:31Z</dc:date>
    </item>
  </channel>
</rss>

