<?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 am I getting an authentication error trying to add oneshot via CLI from a remote computer? in Security</title>
    <link>https://community.splunk.com/t5/Security/Why-am-I-getting-an-authentication-error-trying-to-add-oneshot/m-p/163503#M4851</link>
    <description>&lt;P&gt;just passed this on to our world class docteam! thank you, oh mighty SPAMHAMMER @MuS !&lt;/P&gt;</description>
    <pubDate>Thu, 05 Mar 2015 15:51:56 GMT</pubDate>
    <dc:creator>piebob</dc:creator>
    <dc:date>2015-03-05T15:51:56Z</dc:date>
    <item>
      <title>Why am I getting an authentication error trying to add oneshot via CLI from a remote computer?</title>
      <link>https://community.splunk.com/t5/Security/Why-am-I-getting-an-authentication-error-trying-to-add-oneshot/m-p/163496#M4844</link>
      <description>&lt;P&gt;Trying to run a batch file to add a log file to splunk. Works fine if I run it locally but not from a remote computer.&lt;/P&gt;

&lt;P&gt;This is the line I'm having trouble with:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\\172.25.30.30\Splunk\bin\splunk.exe" add oneshot "\\172.25.30.30\shared\splunk\reports\name\Server.log"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried to add:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;-hostname localhost.localdomain
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  -auth admin:pass
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I still get the same error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;In handler 'oneshotinput': unable to open file: path='\\172.25.30.30\shared\splunk\reports\name\Server.log' error='Logon failure: unknown user name or bad password.'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;EM&gt;admin&lt;/EM&gt; and &lt;EM&gt;pass&lt;/EM&gt; are the correct credentials to Splunk.&lt;BR /&gt;
Anything I am missing?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 10:44:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Why-am-I-getting-an-authentication-error-trying-to-add-oneshot/m-p/163496#M4844</guid>
      <dc:creator>Javo222</dc:creator>
      <dc:date>2015-03-04T10:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting an authentication error trying to add oneshot via CLI from a remote computer?</title>
      <link>https://community.splunk.com/t5/Security/Why-am-I-getting-an-authentication-error-trying-to-add-oneshot/m-p/163497#M4845</link>
      <description>&lt;P&gt;normally you should uses the &lt;CODE&gt;-uri &lt;A href="https://splunkserver:8089" target="test_blank"&gt;https://splunkserver:8089&lt;/A&gt;&lt;/CODE&gt; option if you want to use a remote cli command. See docs &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/Admin/AccessandusetheCLIonaremoteserver"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.2/Admin/AccessandusetheCLIonaremoteserver&lt;/A&gt; also did you enable remote access in &lt;CODE&gt;server.conf&lt;/CODE&gt; on the remote server?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 12:10:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Why-am-I-getting-an-authentication-error-trying-to-add-oneshot/m-p/163497#M4845</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-03-04T12:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting an authentication error trying to add oneshot via CLI from a remote computer?</title>
      <link>https://community.splunk.com/t5/Security/Why-am-I-getting-an-authentication-error-trying-to-add-oneshot/m-p/163498#M4846</link>
      <description>&lt;P&gt;I enabled remote access and changed to:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"C:\Program Files\Splunk\bin\splunk.exe" add oneshot "C:\Users\myuser\Documents\splunk_data\reports\name\Server.log" -uri &lt;A href="http://172.25.30.30:8000" target="test_blank"&gt;http://172.25.30.30:8000&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and I get "Not found" but I can't figure out what is not found. The path the the files is correct and tried to use remote path as well but no luck.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 16:02:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Why-am-I-getting-an-authentication-error-trying-to-add-oneshot/m-p/163498#M4846</guid>
      <dc:creator>Javo222</dc:creator>
      <dc:date>2015-03-04T16:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting an authentication error trying to add oneshot via CLI from a remote computer?</title>
      <link>https://community.splunk.com/t5/Security/Why-am-I-getting-an-authentication-error-trying-to-add-oneshot/m-p/163499#M4847</link>
      <description>&lt;P&gt;I'll check that tomorrow morning ....&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 19:41:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Why-am-I-getting-an-authentication-error-trying-to-add-oneshot/m-p/163499#M4847</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-03-04T19:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting an authentication error trying to add oneshot via CLI from a remote computer?</title>
      <link>https://community.splunk.com/t5/Security/Why-am-I-getting-an-authentication-error-trying-to-add-oneshot/m-p/163500#M4848</link>
      <description>&lt;P&gt;I found another way to do it. copied the files to the remote server and use monitoring the folder. So I don't need the oneshot add anymore.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 22:22:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Why-am-I-getting-an-authentication-error-trying-to-add-oneshot/m-p/163500#M4848</guid>
      <dc:creator>Javo222</dc:creator>
      <dc:date>2015-03-04T22:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting an authentication error trying to add oneshot via CLI from a remote computer?</title>
      <link>https://community.splunk.com/t5/Security/Why-am-I-getting-an-authentication-error-trying-to-add-oneshot/m-p/163501#M4849</link>
      <description>&lt;P&gt;Have you tried to use the default: "admin:changeme"?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2015 05:25:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Why-am-I-getting-an-authentication-error-trying-to-add-oneshot/m-p/163501#M4849</guid>
      <dc:creator>musskopf</dc:creator>
      <dc:date>2015-03-05T05:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting an authentication error trying to add oneshot via CLI from a remote computer?</title>
      <link>https://community.splunk.com/t5/Security/Why-am-I-getting-an-authentication-error-trying-to-add-oneshot/m-p/163502#M4850</link>
      <description>&lt;P&gt;Hi Javo222,&lt;/P&gt;

&lt;P&gt;I just learned that the &lt;CODE&gt;add oneshot&lt;/CODE&gt; is run locally on the Splunk instance you're running it. This means this should be listed in the docs as well as not supported remote command.&lt;/P&gt;

&lt;P&gt;@piebob and @ppablo_splunk could you please verify this and have the docs updated? Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2015 07:22:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Why-am-I-getting-an-authentication-error-trying-to-add-oneshot/m-p/163502#M4850</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-03-05T07:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting an authentication error trying to add oneshot via CLI from a remote computer?</title>
      <link>https://community.splunk.com/t5/Security/Why-am-I-getting-an-authentication-error-trying-to-add-oneshot/m-p/163503#M4851</link>
      <description>&lt;P&gt;just passed this on to our world class docteam! thank you, oh mighty SPAMHAMMER @MuS !&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2015 15:51:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Why-am-I-getting-an-authentication-error-trying-to-add-oneshot/m-p/163503#M4851</guid>
      <dc:creator>piebob</dc:creator>
      <dc:date>2015-03-05T15:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting an authentication error trying to add oneshot via CLI from a remote computer?</title>
      <link>https://community.splunk.com/t5/Security/Why-am-I-getting-an-authentication-error-trying-to-add-oneshot/m-p/163504#M4852</link>
      <description>&lt;P&gt;ahah at least now I know why it didn't work! thanks guys!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2015 19:56:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Why-am-I-getting-an-authentication-error-trying-to-add-oneshot/m-p/163504#M4852</guid>
      <dc:creator>Javo222</dc:creator>
      <dc:date>2015-03-05T19:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting an authentication error trying to add oneshot via CLI from a remote computer?</title>
      <link>https://community.splunk.com/t5/Security/Why-am-I-getting-an-authentication-error-trying-to-add-oneshot/m-p/163505#M4853</link>
      <description>&lt;P&gt;Docs are updated to mention this restriction!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2015 19:58:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Why-am-I-getting-an-authentication-error-trying-to-add-oneshot/m-p/163505#M4853</guid>
      <dc:creator>ChrisG</dc:creator>
      <dc:date>2015-03-05T19:58:57Z</dc:date>
    </item>
  </channel>
</rss>

