<?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: inputs.conf TCP One port multiple indexes ? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-TCP-One-port-multiple-indexes/m-p/694377#M115381</link>
    <description>&lt;P&gt;Thanks, I figured it out using the stanzas.&lt;/P&gt;&lt;P&gt;Don't know if this is the "sanctioned" way but if anyone else are interested, what solved it for me was adding host to each. Without it, it wouldn't work.&lt;BR /&gt;&lt;BR /&gt;So changing this format&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;[tcp://1.2.3.4:123]
connection_host = ip
index = index1
sourcetype = access_combined&lt;/PRE&gt;&lt;P&gt;To this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[tcp://1.2.3.4:123]
connection_host = ip
host = 1.2.3.4
index = index2
sourcetype = access_combined&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;[tcp://5.6.7.8:123]
connection_host = ip
host = 5.6.7.8
index = index2
sourcetype = access_combined&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jul 2024 08:09:52 GMT</pubDate>
    <dc:creator>Silah</dc:creator>
    <dc:date>2024-07-26T08:09:52Z</dc:date>
    <item>
      <title>inputs.conf TCP One port multiple indexes ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-TCP-One-port-multiple-indexes/m-p/694289#M115365</link>
      <description>&lt;P&gt;Hey all&lt;/P&gt;&lt;P&gt;I am taking input over TCP by having this in my inputs.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[tcp://1.2.3.4:123]
connection_host = ip
index = index1
sourcetype = access_combined&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is, can I have the same port send data to multiple indexes? Ie. without opening additional ports on my firewall, can I have another host send data to the same port but land in a different index?&lt;/P&gt;&lt;P&gt;I tried adding this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[tcp://5.6.7.8:123]
connection_host = ip
index = index2
sourcetype = access_combined&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but that just stopped the ingestion altogether.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 15:15:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-TCP-One-port-multiple-indexes/m-p/694289#M115365</guid>
      <dc:creator>Silah</dc:creator>
      <dc:date>2024-07-25T15:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: inputs.conf TCP One port multiple indexes ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-TCP-One-port-multiple-indexes/m-p/694311#M115368</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/269000"&gt;@Silah&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;yes you can create two different stanzas, one for each sender with different indexes.&lt;/P&gt;&lt;P&gt;The only question is: why?&lt;/P&gt;&lt;P&gt;usually index are choosen when you have different retentions or different access grants, not different sources or technologies.&lt;/P&gt;&lt;P&gt;Different sources are recognized in the same index by host and different technologies are recognized by sourcetype.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 16:22:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-TCP-One-port-multiple-indexes/m-p/694311#M115368</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-07-25T16:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: inputs.conf TCP One port multiple indexes ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-TCP-One-port-multiple-indexes/m-p/694374#M115379</link>
      <description>&lt;P&gt;Thanks Guiseppe&lt;/P&gt;&lt;P&gt;The Why: I do need different access grants for one, and I have limitations I am trying to overcome. My heavy forwarders are behind firewall and I have a directive to reduce as far possible the amount of ports open, and ideally I want as little software footprint as possible (so no&amp;nbsp; splunk agents installed on the app servers) so I am trying to use existing syslog forwarder. The TCP forwarding is working fine for the POC but I need to scale it.&lt;/P&gt;&lt;P&gt;Forgive my ignorance reg stanzas, but is that not I tried to do? adding the second [tcp://5.6.7.8:123] ? This didn't work&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 07:19:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-TCP-One-port-multiple-indexes/m-p/694374#M115379</guid>
      <dc:creator>Silah</dc:creator>
      <dc:date>2024-07-26T07:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: inputs.conf TCP One port multiple indexes ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-TCP-One-port-multiple-indexes/m-p/694375#M115380</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/269000"&gt;@Silah&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;ok, you can use syslog using different stanzas as you did,&lt;/P&gt;&lt;P&gt;if the second one doesn't run, check if the firewall routes are open, you can check this using telnet on the source systems.&lt;/P&gt;&lt;P&gt;In addition I hint to use an rsyslog or a syslog-ng server to take syslog events, instead Splunk TCP inputs, writing them on files and then reading those files with the HF; in this way you can continue to receive logs even if Splunk is down or in maintenance and you'll have less issue for the load of the Splunk Server.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 07:31:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-TCP-One-port-multiple-indexes/m-p/694375#M115380</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-07-26T07:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: inputs.conf TCP One port multiple indexes ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-TCP-One-port-multiple-indexes/m-p/694377#M115381</link>
      <description>&lt;P&gt;Thanks, I figured it out using the stanzas.&lt;/P&gt;&lt;P&gt;Don't know if this is the "sanctioned" way but if anyone else are interested, what solved it for me was adding host to each. Without it, it wouldn't work.&lt;BR /&gt;&lt;BR /&gt;So changing this format&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;[tcp://1.2.3.4:123]
connection_host = ip
index = index1
sourcetype = access_combined&lt;/PRE&gt;&lt;P&gt;To this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[tcp://1.2.3.4:123]
connection_host = ip
host = 1.2.3.4
index = index2
sourcetype = access_combined&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;[tcp://5.6.7.8:123]
connection_host = ip
host = 5.6.7.8
index = index2
sourcetype = access_combined&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 08:09:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-TCP-One-port-multiple-indexes/m-p/694377#M115381</guid>
      <dc:creator>Silah</dc:creator>
      <dc:date>2024-07-26T08:09:52Z</dc:date>
    </item>
  </channel>
</rss>

