<?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: What is the difference between these two configurations in inputs.conf on Universal Forwarder? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-difference-between-these-two-configurations-in/m-p/276894#M53085</link>
    <description>&lt;P&gt;My Answers are , &lt;BR /&gt;
a.) index is not configured in 1st monitor stanza whereas index is configured in 2nd monitor stanza, so where will the 1st monitor stanza logs will be going , to the main_index ?&lt;BR /&gt;
** It'll go to the default index which is 'main'. This setting is setup in $Splunk_Home/etc/system/default/inputs.conf (file which you should never update).**&lt;/P&gt;

&lt;P&gt;b.) is this really a good configuration ?&lt;BR /&gt;
&lt;STRONG&gt;People generally use custom indexes with more relavant name, so that only relevant data is stored together. It also allows you to secure the data without affecting other users.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;c.) do we really need followTail=0 , this option is only used by splunk for the first time it is monitoring this log which says to read from first line&lt;BR /&gt;
&lt;STRONG&gt;Not required. The default value itself is 0 for followTail. It's an advanced configuration which should be used only for very specific cases and carefully.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;d) any Suggestions to change this configuration of monitor stanza ?&lt;BR /&gt;
*&lt;EM&gt;Would suggest to provide as custom index name. I'm assuming the word 'mointor' is typo in the first stanza, otherwise correct that as well. If the files to be monitored are following specific name, include the contant portion of the file name so that you're not using 100% wildcarded files. *&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 12:43:38 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2020-09-29T12:43:38Z</dc:date>
    <item>
      <title>What is the difference between these two configurations in inputs.conf on Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-difference-between-these-two-configurations-in/m-p/276892#M53083</link>
      <description>&lt;P&gt;Under inputs.conf on Universal Forwarder (UF), i have these config as below:-&lt;/P&gt;

&lt;P&gt;1.) [monitor:///var/home/jboss/logs/*.log]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
followTail = 0&lt;BR /&gt;
sourcetype= xyz&lt;/P&gt;

&lt;P&gt;2.) [monitor:///export/home/tomcat/*.log]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
followTail = 0&lt;BR /&gt;
index = abc_tomcat&lt;BR /&gt;
sourcetype = pqrs&lt;/P&gt;

&lt;P&gt;My questions are , &lt;BR /&gt;
 a.) index is not configured in 1st monitor stanza whereas index is configured in 2nd monitor stanza,  so where will the 1st monitor stanza logs will be going , to the main_index ?&lt;/P&gt;

&lt;P&gt;b.) is this really a good configuration ?&lt;/P&gt;

&lt;P&gt;c.) do we really need followTail=0 , this option is only used by Splunk for the first time it is monitoring this log which says to read from first line &lt;/P&gt;

&lt;P&gt;d) any Suggestions to change this configuration of monitor stanza ?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2017 19:28:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-is-the-difference-between-these-two-configurations-in/m-p/276892#M53083</guid>
      <dc:creator>kteng2024</dc:creator>
      <dc:date>2017-02-03T19:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between these two configurations in inputs.conf on Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-difference-between-these-two-configurations-in/m-p/276893#M53084</link>
      <description>&lt;P&gt;Yes, if you don't specify an index, events will be routed to the default index, which is main.&lt;BR /&gt;
I would call it a best practice to ALWAYS configure sourcetype and index explicitly for any input.&lt;/P&gt;

&lt;P&gt;The &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/inputsconf"&gt;default for followTail&lt;/A&gt; is 0 (false), so specifying it here is redundant.&lt;/P&gt;

&lt;P&gt;So the only two differences for these two inputs are the sourcetype attributed and the target index.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2017 19:36:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-is-the-difference-between-these-two-configurations-in/m-p/276893#M53084</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2017-02-03T19:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between these two configurations in inputs.conf on Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-difference-between-these-two-configurations-in/m-p/276894#M53085</link>
      <description>&lt;P&gt;My Answers are , &lt;BR /&gt;
a.) index is not configured in 1st monitor stanza whereas index is configured in 2nd monitor stanza, so where will the 1st monitor stanza logs will be going , to the main_index ?&lt;BR /&gt;
** It'll go to the default index which is 'main'. This setting is setup in $Splunk_Home/etc/system/default/inputs.conf (file which you should never update).**&lt;/P&gt;

&lt;P&gt;b.) is this really a good configuration ?&lt;BR /&gt;
&lt;STRONG&gt;People generally use custom indexes with more relavant name, so that only relevant data is stored together. It also allows you to secure the data without affecting other users.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;c.) do we really need followTail=0 , this option is only used by splunk for the first time it is monitoring this log which says to read from first line&lt;BR /&gt;
&lt;STRONG&gt;Not required. The default value itself is 0 for followTail. It's an advanced configuration which should be used only for very specific cases and carefully.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;d) any Suggestions to change this configuration of monitor stanza ?&lt;BR /&gt;
*&lt;EM&gt;Would suggest to provide as custom index name. I'm assuming the word 'mointor' is typo in the first stanza, otherwise correct that as well. If the files to be monitored are following specific name, include the contant portion of the file name so that you're not using 100% wildcarded files. *&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:43:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-is-the-difference-between-these-two-configurations-in/m-p/276894#M53085</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-29T12:43:38Z</dc:date>
    </item>
  </channel>
</rss>

