<?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: Configure input.txt Universal forwarder in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Configure-input-txt-Universal-forwarder/m-p/49780#M9448</link>
    <description>&lt;P&gt;A couple of things,&lt;/P&gt;

&lt;P&gt;If you call the file inputs.txt you will have problems, it should be called &lt;CODE&gt;inputs.conf&lt;/CODE&gt;, otherwise Splunk will not recognize it. The same goes for &lt;CODE&gt;outputs.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The order of precedence can be &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.3/Admin/Wheretofindtheconfigurationfiles" target="_blank"&gt;found in the docs&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;You must configure the indexer to listen on port 9997. (manager -&amp;gt; forwarding and receiving -&amp;gt; configure receiving -&amp;gt; new). &lt;/P&gt;

&lt;P&gt;Make sure that you have no firewalls in between (or local), blocking the traffic.&lt;/P&gt;

&lt;P&gt;By the way, I don't think you'll need the _TCP_ROUTING stuff in the form you've written it;&lt;/P&gt;

&lt;P&gt;(from the &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.3/admin/Inputsconf" target="_blank"&gt;docs on inputs.conf&lt;/A&gt;)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_TCP_ROUTING = &amp;lt;tcpout_group_name&amp;gt;,&amp;lt;tcpout_group_name&amp;gt;,&amp;lt;tcpout_group_name&amp;gt;, ...
* Comma-separated list of tcpout group names.
* Using this, you can selectively forward the data to specific indexer(s).
* Specify the tcpout group the forwarder should use when forwarding the data.
  The tcpout group names are defined in outputs.conf with [tcpout:&amp;lt;tcpout_group_name&amp;gt;].
* Defaults to groups specified in "defaultGroup" in [tcpout] stanza in outputs.conf.
* To forward data from the "_internal" index, _TCP_ROUTING must explicitly be set to either "*" or
  a specific splunktcp target group.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;UPDATE:&lt;/P&gt;

&lt;P&gt;In order to do that, you'll need to clean out the fishbucket on the forwarding side. The fishbucket is where splunk keeps track of which files/events it has already read/forwarded. &lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/2954/how-can-i-re-index-all-the-data-in-my-environment" target="_blank"&gt;http://splunk-base.splunk.com/answers/2954/how-can-i-re-index-all-the-data-in-my-environment&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/2834/light-forwarder-syslog-fishbucket-problem" target="_blank"&gt;http://splunk-base.splunk.com/answers/2834/light-forwarder-syslog-fishbucket-problem&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/46780/reset-splunkforwarder-to-re-read-file-from-beginning" target="_blank"&gt;http://splunk-base.splunk.com/answers/46780/reset-splunkforwarder-to-re-read-file-from-beginning&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Just be aware that if you do clean out the fishbucket on the forwarder, you'll get get some duplicate events, e.g. your file has events A, B, C and D, but your index contains only C and D (and you want to index A and B as well.) If you clean the fishbucket, you'll have A,B,C,C,D,D in your index. Depending on what you have in your index, you may also want to clean out the index on the indexer as well, giving you A,B,C,D in the index.&lt;/P&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian &lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 12:22:16 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2020-09-28T12:22:16Z</dc:date>
    <item>
      <title>Configure input.txt Universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configure-input-txt-Universal-forwarder/m-p/49779#M9447</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I create an idexer server as server01 and a Universal forwarder that monitors and forwards a file in real time to indexer "example" of the indexer with the configuration below:&lt;BR /&gt;
C:\Program Files\SplunkUniversalForwarder\etc\system\local\input.conf&lt;/P&gt;

&lt;P&gt;[monitor://D:\AFCSystem\log\log_file.txt]&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
_TCP_ROUTING = splunkserver01_9997&lt;BR /&gt;
index = example&lt;BR /&gt;
followTail = 1&lt;/P&gt;

&lt;P&gt;and output.conf at the same directory&lt;/P&gt;

&lt;P&gt;[tcpout]&lt;BR /&gt;
defaultGroup = splunkserver01_9997&lt;/P&gt;

&lt;P&gt;[tcpout:splunkserver01_9997]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
server = splunkserver01:9997&lt;/P&gt;

&lt;P&gt;[tcpout-server://splunkserver01:9997]&lt;/P&gt;

&lt;P&gt;But when i view it in "example" indexer, i didn't see anything ?&lt;BR /&gt;
Do you know the problem ?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:22:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configure-input-txt-Universal-forwarder/m-p/49779#M9447</guid>
      <dc:creator>sieutruc</dc:creator>
      <dc:date>2020-09-28T12:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Configure input.txt Universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configure-input-txt-Universal-forwarder/m-p/49780#M9448</link>
      <description>&lt;P&gt;A couple of things,&lt;/P&gt;

&lt;P&gt;If you call the file inputs.txt you will have problems, it should be called &lt;CODE&gt;inputs.conf&lt;/CODE&gt;, otherwise Splunk will not recognize it. The same goes for &lt;CODE&gt;outputs.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The order of precedence can be &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.3/Admin/Wheretofindtheconfigurationfiles" target="_blank"&gt;found in the docs&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;You must configure the indexer to listen on port 9997. (manager -&amp;gt; forwarding and receiving -&amp;gt; configure receiving -&amp;gt; new). &lt;/P&gt;

&lt;P&gt;Make sure that you have no firewalls in between (or local), blocking the traffic.&lt;/P&gt;

&lt;P&gt;By the way, I don't think you'll need the _TCP_ROUTING stuff in the form you've written it;&lt;/P&gt;

&lt;P&gt;(from the &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.3/admin/Inputsconf" target="_blank"&gt;docs on inputs.conf&lt;/A&gt;)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_TCP_ROUTING = &amp;lt;tcpout_group_name&amp;gt;,&amp;lt;tcpout_group_name&amp;gt;,&amp;lt;tcpout_group_name&amp;gt;, ...
* Comma-separated list of tcpout group names.
* Using this, you can selectively forward the data to specific indexer(s).
* Specify the tcpout group the forwarder should use when forwarding the data.
  The tcpout group names are defined in outputs.conf with [tcpout:&amp;lt;tcpout_group_name&amp;gt;].
* Defaults to groups specified in "defaultGroup" in [tcpout] stanza in outputs.conf.
* To forward data from the "_internal" index, _TCP_ROUTING must explicitly be set to either "*" or
  a specific splunktcp target group.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;UPDATE:&lt;/P&gt;

&lt;P&gt;In order to do that, you'll need to clean out the fishbucket on the forwarding side. The fishbucket is where splunk keeps track of which files/events it has already read/forwarded. &lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/2954/how-can-i-re-index-all-the-data-in-my-environment" target="_blank"&gt;http://splunk-base.splunk.com/answers/2954/how-can-i-re-index-all-the-data-in-my-environment&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/2834/light-forwarder-syslog-fishbucket-problem" target="_blank"&gt;http://splunk-base.splunk.com/answers/2834/light-forwarder-syslog-fishbucket-problem&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/46780/reset-splunkforwarder-to-re-read-file-from-beginning" target="_blank"&gt;http://splunk-base.splunk.com/answers/46780/reset-splunkforwarder-to-re-read-file-from-beginning&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Just be aware that if you do clean out the fishbucket on the forwarder, you'll get get some duplicate events, e.g. your file has events A, B, C and D, but your index contains only C and D (and you want to index A and B as well.) If you clean the fishbucket, you'll have A,B,C,C,D,D in your index. Depending on what you have in your index, you may also want to clean out the index on the indexer as well, giving you A,B,C,D in the index.&lt;/P&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:22:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configure-input-txt-Universal-forwarder/m-p/49780#M9448</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2020-09-28T12:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Configure input.txt Universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configure-input-txt-Universal-forwarder/m-p/49781#M9449</link>
      <description>&lt;P&gt;Sorry for my wrong typing, all files have .conf extention, and all firewalls are turned off. But i still don't see it in example indexer. Is there a test for that ?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2012 12:07:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configure-input-txt-Universal-forwarder/m-p/49781#M9449</guid>
      <dc:creator>sieutruc</dc:creator>
      <dc:date>2012-09-03T12:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Configure input.txt Universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configure-input-txt-Universal-forwarder/m-p/49782#M9450</link>
      <description>&lt;P&gt;Is your indexer listening on port 9997 as per the instructions above?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2012 12:18:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configure-input-txt-Universal-forwarder/m-p/49782#M9450</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-09-03T12:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Configure input.txt Universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configure-input-txt-Universal-forwarder/m-p/49783#M9451</link>
      <description>&lt;P&gt;It works now, but it just recorded in real time all events in the end of the file without the total file. How to catch up all the events in the beginning of the file ? I delete the option the followTail but nothing changes&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2012 13:40:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configure-input-txt-Universal-forwarder/m-p/49783#M9451</guid>
      <dc:creator>sieutruc</dc:creator>
      <dc:date>2012-09-03T13:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Configure input.txt Universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configure-input-txt-Universal-forwarder/m-p/49784#M9452</link>
      <description>&lt;P&gt;see update above.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2012 13:52:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configure-input-txt-Universal-forwarder/m-p/49784#M9452</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-09-03T13:52:15Z</dc:date>
    </item>
  </channel>
</rss>

