<?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 Forwarding data into indexer in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Forwarding-data-into-indexer/m-p/568691#M100910</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have set up a Splunk Enterprise instance (version 8.2.1) and a Universal Forwarder instance on Docker on the same machine, and I'm trying to forward data into the Splunk indexer. Here's what I have so far:&lt;/P&gt;&lt;P&gt;On the Splunk Enterprise instance (1.1.1.1):&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Created an app named "abc"&lt;/LI&gt;&lt;LI&gt;Created an index named "abc_idx" on app "abc"&lt;/LI&gt;&lt;LI&gt;Created a sourcetype named "abc_data" on app "abc"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;On the Splunk forwarder:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Added the indexer: "./bin/splunk add forward-server 1.1.1.1:9997"&lt;/LI&gt;&lt;LI&gt;My very next command was "./bin/splunk add monitor /splunk_forward/log"&lt;/LI&gt;&lt;LI&gt;Then I realized I wanted the monitored logs to be added to the index "abc_idx" and using the sourcetype "abc_data", so I removed the monitor, and then restarted the container.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This is when I see the events appearing in the "main" index, so I believe the files did get forwarded.&lt;/P&gt;&lt;P&gt;I then ran on the Splunk forwarder:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;./bin/splunk add monitor /splunk_forward/log -index abc_idx -sourcetype abc_data&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;But I did not see any event on the index "abc_idx".&lt;/P&gt;&lt;P&gt;However, if I run the "oneshot" command, the events show up in the index "abc_idx"&lt;/P&gt;&lt;P&gt;Is Splunk refusing to (re)index the same files again, even though they are going to different indexes?&lt;/P&gt;&lt;P&gt;Also, I thought the commands I typed would end up in "/opt/splunkforwarder/etc/system/local/inputs.conf"? But I only see "[splunktcp://9997]" in it, not the folder I'm monitoring. Am I looking at the wrong file?&lt;/P&gt;&lt;P&gt;However, I see the following in&amp;nbsp;"/opt/splunkforwarder/etc/system/local/outputs.conf":&lt;/P&gt;&lt;P&gt;[tcpout:default-autolb-group]&lt;/P&gt;&lt;P&gt;server = 1.1.1.1:9997&lt;/P&gt;&lt;P&gt;[tcpout-server://1.1.1.1:9997]&lt;/P&gt;&lt;P&gt;So why did my indexer configuration become part of the config file? Preferably, I would like to configure the forwarder using the config files, but I'm not sure exactly which ones to modify - local/inputs.conf and anything else?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Sep 2021 10:38:47 GMT</pubDate>
    <dc:creator>wu_weidong</dc:creator>
    <dc:date>2021-09-28T10:38:47Z</dc:date>
    <item>
      <title>Forwarding data into indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarding-data-into-indexer/m-p/568691#M100910</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have set up a Splunk Enterprise instance (version 8.2.1) and a Universal Forwarder instance on Docker on the same machine, and I'm trying to forward data into the Splunk indexer. Here's what I have so far:&lt;/P&gt;&lt;P&gt;On the Splunk Enterprise instance (1.1.1.1):&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Created an app named "abc"&lt;/LI&gt;&lt;LI&gt;Created an index named "abc_idx" on app "abc"&lt;/LI&gt;&lt;LI&gt;Created a sourcetype named "abc_data" on app "abc"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;On the Splunk forwarder:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Added the indexer: "./bin/splunk add forward-server 1.1.1.1:9997"&lt;/LI&gt;&lt;LI&gt;My very next command was "./bin/splunk add monitor /splunk_forward/log"&lt;/LI&gt;&lt;LI&gt;Then I realized I wanted the monitored logs to be added to the index "abc_idx" and using the sourcetype "abc_data", so I removed the monitor, and then restarted the container.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This is when I see the events appearing in the "main" index, so I believe the files did get forwarded.&lt;/P&gt;&lt;P&gt;I then ran on the Splunk forwarder:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;./bin/splunk add monitor /splunk_forward/log -index abc_idx -sourcetype abc_data&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;But I did not see any event on the index "abc_idx".&lt;/P&gt;&lt;P&gt;However, if I run the "oneshot" command, the events show up in the index "abc_idx"&lt;/P&gt;&lt;P&gt;Is Splunk refusing to (re)index the same files again, even though they are going to different indexes?&lt;/P&gt;&lt;P&gt;Also, I thought the commands I typed would end up in "/opt/splunkforwarder/etc/system/local/inputs.conf"? But I only see "[splunktcp://9997]" in it, not the folder I'm monitoring. Am I looking at the wrong file?&lt;/P&gt;&lt;P&gt;However, I see the following in&amp;nbsp;"/opt/splunkforwarder/etc/system/local/outputs.conf":&lt;/P&gt;&lt;P&gt;[tcpout:default-autolb-group]&lt;/P&gt;&lt;P&gt;server = 1.1.1.1:9997&lt;/P&gt;&lt;P&gt;[tcpout-server://1.1.1.1:9997]&lt;/P&gt;&lt;P&gt;So why did my indexer configuration become part of the config file? Preferably, I would like to configure the forwarder using the config files, but I'm not sure exactly which ones to modify - local/inputs.conf and anything else?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 10:38:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarding-data-into-indexer/m-p/568691#M100910</guid>
      <dc:creator>wu_weidong</dc:creator>
      <dc:date>2021-09-28T10:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarding data into indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarding-data-into-indexer/m-p/569386#M100979</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is Splunk refusing to (re)index the same files again, even though they are going to different indexes?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes that is correct. Splunk will not re-index data that has already been indexed.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;BR /&gt;&lt;P&gt;Also, I thought the commands I typed would end up in "/opt/splunkforwarder/etc/system/local/inputs.conf"? But I only see "[splunktcp://9997]" in it, not the folder I'm monitoring. Am I looking at the wrong file?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thats where I would expect it to be. You could check for&amp;nbsp; /opt/splunkforwarder/etc/system/default/inputs.conf&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;BR /&gt;&lt;P&gt;So why did my indexer configuration become part of the config file? Preferably, I would like to configure the forwarder using the config files, but I'm not sure exactly which ones to modify - local/inputs.conf and anything else?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Your indexer configuration became part of the config file because all configurations within Splunk are stored as conf files.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you would like to configure forwarding using the config files then yes you can modify the local/inputs.conf.&amp;nbsp; You may have to restart the forwarder depending on what you add to it.&lt;/P&gt;&lt;P&gt;However, when we have to add new inputs we will create an app which contains a new inputs.conf. Then that app can be managed and updated without having to touch the forwarder. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 18:14:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarding-data-into-indexer/m-p/569386#M100979</guid>
      <dc:creator>Stefanie</dc:creator>
      <dc:date>2021-10-01T18:14:11Z</dc:date>
    </item>
  </channel>
</rss>

