<?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: Updating data added to Splunk in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Updating-data-added-to-Splunk/m-p/263323#M458</link>
    <description>&lt;P&gt;Thank you. I tried this:   &lt;CODE&gt;./splunk add index -name "newindex"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;which returned this: &lt;CODE&gt;Index "newindex" added&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;then added monitor:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk add monitor "/Users/myuser/Desktop/path/mylogs/firewall.log" -index newindex
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which returned this, which seems to indicate success:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Added monitor of /Users/myuser/Desktop/path/mylogs/firewall.log
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But the new sourcetype is not created. When I used &lt;CODE&gt;add oneshot&lt;/CODE&gt; a new sourcetype was added. But &lt;CODE&gt;add monitor&lt;/CODE&gt; command did not. Would you please let me know what else I am missing?&lt;/P&gt;</description>
    <pubDate>Sat, 05 Dec 2015 04:58:28 GMT</pubDate>
    <dc:creator>GirolamoBo</dc:creator>
    <dc:date>2015-12-05T04:58:28Z</dc:date>
    <item>
      <title>Updating data added to Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Updating-data-added-to-Splunk/m-p/263316#M451</link>
      <description>&lt;P&gt;I used &lt;CODE&gt;./splunk add oneshot “/your/log/file/myfile.log” –sourcetype myfile&lt;/CODE&gt; to add data to my instance of Splunk Light successfully. I followed steps from &lt;A href="http://blogs.splunk.com/2014/03/21/search-command-coalesce/"&gt;this blog post&lt;/A&gt; &lt;A href="http://blogs.splunk.com/2014/03/21/search-command-coalesce/"&gt;http://blogs.splunk.com/2014/03/21/search-command-coalesce/&lt;/A&gt; to do it. Here is the content of the file:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Thu Mar 6 11:33:49 EST 2014 src_ip=1.1.1.1
Thu Mar 6 11:33:45 EST 2014 sourceip=8.1.2.3
Thu Mar 6 11:33:48 EST 2014 source_ip=1.1.1.0
Thu Mar 6 11:33:47 EST 2014 sip=1.1.1.199
Thu Mar 6 11:33:46 EST 2014 ip=
Thu Mar 6 11:33:46 EST 2014 ip=22.22.22.22
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However when I made change to that file (added another line to it)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Thu Mar 7 11:33:46 EST 2014 ip=22.22.22.22
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Splunk did not reflect the additional event.  The same happens when I add a source using the UI, in Add Data&amp;gt;Upload files from your computer. Consequent changes to the file are not reflected in Splunk. Only the data that existed at the time of import is available. &lt;BR /&gt;
What is the way to make Splunk to include later additions of content to the local file? I understand that this is a contrived example (adding an extra line manually is not what happens in real practice). Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2015 21:21:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Updating-data-added-to-Splunk/m-p/263316#M451</guid>
      <dc:creator>GirolamoBo</dc:creator>
      <dc:date>2015-12-04T21:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Updating data added to Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Updating-data-added-to-Splunk/m-p/263317#M452</link>
      <description>&lt;P&gt;&lt;CODE&gt;oneshot&lt;/CODE&gt; is exactly that: a one-shot upload. You want to use &lt;CODE&gt;monitor&lt;/CODE&gt;. See &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.1/Data/MonitorfilesanddirectoriesusingtheCLI#Example_1:_Monitor_files_in_a_directory"&gt;Monitor files and directories&lt;/A&gt; in the Splunk Enterprise &lt;EM&gt;Getting Data In&lt;/EM&gt; manual.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2015 21:24:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Updating-data-added-to-Splunk/m-p/263317#M452</guid>
      <dc:creator>ChrisG</dc:creator>
      <dc:date>2015-12-04T21:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Updating data added to Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Updating-data-added-to-Splunk/m-p/263318#M453</link>
      <description>&lt;P&gt;Thank you @ChrisG When I try this command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk add monitor source "/Users/myuser/path/mylogs/firewall.log" -index newindex 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I get this error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Parameters must be in the form '-parameter value'
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Dec 2015 21:42:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Updating-data-added-to-Splunk/m-p/263318#M453</guid>
      <dc:creator>GirolamoBo</dc:creator>
      <dc:date>2015-12-04T21:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Updating data added to Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Updating-data-added-to-Splunk/m-p/263319#M454</link>
      <description>&lt;P&gt;Try it without quotes:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;./splunk add monitor source /Users/myuser/path/mylogs/firewall.log -index newindex&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2015 21:49:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Updating-data-added-to-Splunk/m-p/263319#M454</guid>
      <dc:creator>ChrisG</dc:creator>
      <dc:date>2015-12-04T21:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Updating data added to Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Updating-data-added-to-Splunk/m-p/263320#M455</link>
      <description>&lt;P&gt;Unfortunately I tried it without quotes, with double quotes and with single quotes with the same outcome:&lt;BR /&gt;
 Parameters must be in the form '-parameter value'&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2015 21:56:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Updating-data-added-to-Splunk/m-p/263320#M455</guid>
      <dc:creator>GirolamoBo</dc:creator>
      <dc:date>2015-12-04T21:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Updating data added to Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Updating-data-added-to-Splunk/m-p/263321#M456</link>
      <description>&lt;P&gt;Sorry!&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;./splunk add monitor -source /Users/myuser/path/mylogs/firewall.log -index newindex&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;./splunk add monitor "/Users/myuser/path/mylogs/firewall.log" -index newindex&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I mashed up the two, my apologies.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2015 00:01:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Updating-data-added-to-Splunk/m-p/263321#M456</guid>
      <dc:creator>ChrisG</dc:creator>
      <dc:date>2015-12-05T00:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Updating data added to Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Updating-data-added-to-Splunk/m-p/263322#M457</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;In our discussion we found a conflation in the doc page. It doesn't say that you can use either &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk monitor -source &amp;lt;source&amp;gt; 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk monitor &amp;lt;source&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've updated the page to say that you can use either of those, but I've changed the examples to remove the &lt;CODE&gt;-source&lt;/CODE&gt; argument since you will hardly ever use it unless you specifically want to. Apologies for any confusion.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2015 00:16:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Updating-data-added-to-Splunk/m-p/263322#M457</guid>
      <dc:creator>malmoore</dc:creator>
      <dc:date>2015-12-05T00:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Updating data added to Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Updating-data-added-to-Splunk/m-p/263323#M458</link>
      <description>&lt;P&gt;Thank you. I tried this:   &lt;CODE&gt;./splunk add index -name "newindex"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;which returned this: &lt;CODE&gt;Index "newindex" added&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;then added monitor:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk add monitor "/Users/myuser/Desktop/path/mylogs/firewall.log" -index newindex
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which returned this, which seems to indicate success:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Added monitor of /Users/myuser/Desktop/path/mylogs/firewall.log
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But the new sourcetype is not created. When I used &lt;CODE&gt;add oneshot&lt;/CODE&gt; a new sourcetype was added. But &lt;CODE&gt;add monitor&lt;/CODE&gt; command did not. Would you please let me know what else I am missing?&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2015 04:58:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Updating-data-added-to-Splunk/m-p/263323#M458</guid>
      <dc:creator>GirolamoBo</dc:creator>
      <dc:date>2015-12-05T04:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Updating data added to Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Updating-data-added-to-Splunk/m-p/263324#M459</link>
      <description>&lt;P&gt;It should be there. Check the time range of your search to make sure that it includes the interval when you updated the file. &lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2015 05:31:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Updating-data-added-to-Splunk/m-p/263324#M459</guid>
      <dc:creator>ChrisG</dc:creator>
      <dc:date>2015-12-05T05:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Updating data added to Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Updating-data-added-to-Splunk/m-p/263325#M460</link>
      <description>&lt;P&gt;I used the content of the original file that is in my post. It has time intervals. I don't even see it as a sourcetype. I have not even tested updating it since it is not showing in Spunk. I also used &lt;BR /&gt;
    &lt;CODE&gt;-sourcetype firewall&lt;/CODE&gt; with the &lt;CODE&gt;add monitor&lt;/CODE&gt; command but still no sourcetype is created.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2015 08:27:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Updating-data-added-to-Splunk/m-p/263325#M460</guid>
      <dc:creator>GirolamoBo</dc:creator>
      <dc:date>2015-12-05T08:27:06Z</dc:date>
    </item>
  </channel>
</rss>

