<?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 Why is my oneshot command not working in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-oneshot-command-not-working/m-p/511335#M86854</link>
    <description>&lt;P&gt;I have a oneshot command thats returning strange error message. I have everything in [-paramteter value] format. Heres the command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/opt/splunk/bin/splunk add oneshot host12345.messages -hostname host12345 –index nix_os –sourcetype syslog&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the response:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Parameters must be in the form '-parameter value'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jul 2020 13:32:53 GMT</pubDate>
    <dc:creator>tkw03</dc:creator>
    <dc:date>2020-07-28T13:32:53Z</dc:date>
    <item>
      <title>Why is my oneshot command not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-oneshot-command-not-working/m-p/511335#M86854</link>
      <description>&lt;P&gt;I have a oneshot command thats returning strange error message. I have everything in [-paramteter value] format. Heres the command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/opt/splunk/bin/splunk add oneshot host12345.messages -hostname host12345 –index nix_os –sourcetype syslog&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the response:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Parameters must be in the form '-parameter value'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 13:32:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-oneshot-command-not-working/m-p/511335#M86854</guid>
      <dc:creator>tkw03</dc:creator>
      <dc:date>2020-07-28T13:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my oneshot command not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-oneshot-command-not-working/m-p/511356#M86857</link>
      <description>&lt;P&gt;In the two versions of Splunk I checked, the add oneshot command takes a single argument.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$ splunk help add oneshot

adds onetime file input

Syntax:

        None

Objects:

        add oneshot                             adds onetime file input

Required Parameters:

        (For add oneshot)
                source                          name of a file to add to inputs

Optional Parameters:

        None&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 28 Jul 2020 14:26:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-oneshot-command-not-working/m-p/511356#M86857</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-28T14:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my oneshot command not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-oneshot-command-not-working/m-p/511382#M86860</link>
      <description>&lt;P&gt;Figured it out. this was the result of a bad copy/paste issue.&lt;/P&gt;&lt;P&gt;I re-wrote the command, no copying and it worked as expected.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 16:36:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-oneshot-command-not-working/m-p/511382#M86860</guid>
      <dc:creator>tkw03</dc:creator>
      <dc:date>2020-07-28T16:36:59Z</dc:date>
    </item>
  </channel>
</rss>

