<?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 Monitoring the log files dynamically from universal forwarder to splunk indexer to specific index in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/Monitoring-the-log-files-dynamically-from-universal-forwarder-to/m-p/21853#M6782</link>
    <description>&lt;P&gt;Hi, &lt;BR /&gt;
As I told you earlier, I used the command &lt;/P&gt;

&lt;P&gt;./splunk add monitor directory-path -index index_name&lt;/P&gt;

&lt;P&gt;But it having issue and I need to update my inputs.conf on the fly. so Is there any other way to add the monitor dynamically(like the above CLI command).&lt;BR /&gt;
In the above case I am able to add the monitor but index parameter is throwing me an error.&lt;BR /&gt;
It's a bit urgent for our project, please let us know the solution for the same. &lt;/P&gt;

&lt;P&gt;Thanks in advance &lt;/P&gt;</description>
    <pubDate>Thu, 24 Nov 2011 05:20:54 GMT</pubDate>
    <dc:creator>gaurav_a</dc:creator>
    <dc:date>2011-11-24T05:20:54Z</dc:date>
    <item>
      <title>Monitoring the log files dynamically from universal forwarder to splunk indexer to specific index</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Monitoring-the-log-files-dynamically-from-universal-forwarder-to/m-p/21853#M6782</link>
      <description>&lt;P&gt;Hi, &lt;BR /&gt;
As I told you earlier, I used the command &lt;/P&gt;

&lt;P&gt;./splunk add monitor directory-path -index index_name&lt;/P&gt;

&lt;P&gt;But it having issue and I need to update my inputs.conf on the fly. so Is there any other way to add the monitor dynamically(like the above CLI command).&lt;BR /&gt;
In the above case I am able to add the monitor but index parameter is throwing me an error.&lt;BR /&gt;
It's a bit urgent for our project, please let us know the solution for the same. &lt;/P&gt;

&lt;P&gt;Thanks in advance &lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2011 05:20:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Monitoring-the-log-files-dynamically-from-universal-forwarder-to/m-p/21853#M6782</guid>
      <dc:creator>gaurav_a</dc:creator>
      <dc:date>2011-11-24T05:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring the log files dynamically from universal forwarder to splunk indexer to specific index</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Monitoring-the-log-files-dynamically-from-universal-forwarder-to/m-p/21854#M6783</link>
      <description>&lt;P&gt;gaurav_a,&lt;/P&gt;

&lt;P&gt;The Splunk UF you are running this command from has a condition to test and ensure the index exists prior to routing your data there. This is probably the error you are seeing:&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;In handler 'monitor': Parameter index: Index 'foo1' does not exist. Please provide a valid index.&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Here are a few options to do this quickly:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Use the Splunk DeploymentServer to change the path whenever you want.  Note: setting up the DepoymentServer initially could take a little time.&lt;/LI&gt;
&lt;LI&gt;Use a script to change the file at will either remotely or on a remote system&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;If you could articulate your use-case, I might have more ideas.&lt;/P&gt;

&lt;P&gt;Best,&lt;BR /&gt;
Sean&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2011 05:38:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Monitoring-the-log-files-dynamically-from-universal-forwarder-to/m-p/21854#M6783</guid>
      <dc:creator>sdwilkerson</dc:creator>
      <dc:date>2011-11-24T05:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring the log files dynamically from universal forwarder to splunk indexer to specific index</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Monitoring-the-log-files-dynamically-from-universal-forwarder-to/m-p/21855#M6784</link>
      <description>&lt;P&gt;In 4.3.3 and going forward, there is a parameter (&lt;STRONG&gt;check-index&lt;/STRONG&gt;) that you can set to make this to happen without getting an error message complaining about the nonexistent index. By setting check-index to false, Universal Forwarder would not require the index to be there to begin with, but this is not the default behavior in 4.3.3.&lt;/P&gt;

&lt;P&gt;For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk add monitor /var/log/case1 -index test_case1 -check-index false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The &lt;STRONG&gt;default&lt;/STRONG&gt; behavior is different depending on the version&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;4.3.3 universal forwarder: default check-index is &lt;STRONG&gt;true&lt;/STRONG&gt;, which means that it would always check whether the index exists&lt;/LI&gt;
&lt;LI&gt;4.3.4 universal forwarder: default check-index is &lt;STRONG&gt;true&lt;/STRONG&gt;, which means that it would always check whether the index exists&lt;/LI&gt;
&lt;LI&gt;4.3.5 universal forwarder: default check-index is &lt;STRONG&gt;true&lt;/STRONG&gt;, which means that it would always check whether the index exists&lt;/LI&gt;
&lt;LI&gt;5.0.2 universal forwarder: default check-index is &lt;STRONG&gt;false&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 14 Mar 2013 09:33:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Monitoring-the-log-files-dynamically-from-universal-forwarder-to/m-p/21855#M6784</guid>
      <dc:creator>mic</dc:creator>
      <dc:date>2013-03-14T09:33:36Z</dc:date>
    </item>
  </channel>
</rss>

