<?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: Is there a way I can see what data is being indexed on a specific port? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-I-can-see-what-data-is-being-indexed-on-a/m-p/219697#M64558</link>
    <description>&lt;P&gt;These seems to be TCP data inputs and since there are no values explicitly defined for index/sourcetype, they are going to default places. Not sure if you can migrate all to use same port (9997), but you can keep the same port configuration, assign index/sourcetype explicitly in the inputs.conf. See this for more info on TCP data inputs&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.1/Data/Monitornetworkports#Configure_a_TCP_input"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.1/Data/Monitornetworkports#Configure_a_TCP_input&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2016 15:50:28 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-06-15T15:50:28Z</dc:date>
    <item>
      <title>Is there a way I can see what data is being indexed on a specific port?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-I-can-see-what-data-is-being-indexed-on-a/m-p/219694#M64555</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;In the last year, I became the manager of a Splunk system with 0 documentation. All logs were being thrown into index=main, and the only information I can find is in inputs.conf, which is not very helpful:&lt;/P&gt;

&lt;P&gt;[splunktcp://50200]&lt;BR /&gt;
connection_host = ip&lt;/P&gt;

&lt;P&gt;[splunktcp://50201]&lt;BR /&gt;
connection_host = ip&lt;/P&gt;

&lt;P&gt;[splunktcp://50202]&lt;BR /&gt;
connection_host = ip&lt;/P&gt;

&lt;P&gt;[splunktcp://42500]&lt;BR /&gt;
connection_host = ip&lt;/P&gt;

&lt;P&gt;[splunktcp://55555]&lt;BR /&gt;
connection_host = ip&lt;/P&gt;

&lt;P&gt;[splunktcp://50203]&lt;BR /&gt;
connection_host = ip&lt;BR /&gt;
disabled = 0&lt;/P&gt;

&lt;P&gt;[splunktcp://51225]&lt;BR /&gt;
connection_host = ip&lt;/P&gt;

&lt;P&gt;[splunktcp://51125]&lt;BR /&gt;
connection_host = ip&lt;/P&gt;

&lt;P&gt;[splunktcp://514]&lt;BR /&gt;
connection_host = ip&lt;BR /&gt;
disabled = 0&lt;/P&gt;

&lt;P&gt;[splunktcp://40100]&lt;BR /&gt;
connection_host = ip&lt;BR /&gt;
disabled = 0&lt;/P&gt;

&lt;P&gt;[splunktcp://50000]&lt;BR /&gt;
connection_host = ip&lt;BR /&gt;
disabled = 0&lt;/P&gt;

&lt;P&gt;[splunktcp://40300]&lt;BR /&gt;
connection_host = ip&lt;BR /&gt;
disabled = 0&lt;/P&gt;

&lt;P&gt;[splunktcp://41000]&lt;BR /&gt;
connection_host = ip&lt;BR /&gt;
disabled = 0&lt;/P&gt;

&lt;P&gt;[splunktcp://42000]&lt;BR /&gt;
connection_host = ip&lt;BR /&gt;
disabled = 0&lt;/P&gt;

&lt;P&gt;[splunktcp://50100]&lt;BR /&gt;
connection_host = ip&lt;BR /&gt;
disabled = 0&lt;/P&gt;

&lt;P&gt;I would like to find what data is coming in on these ports, set them all up to come in on 9997, and send them to their own index, so that I can allow the managers of that data to securely access that data, without being able to access logs that are not theirs (via a local role that only allows one or two indexes). Is there any way I can see what data is coming in on what port, or will I have to manually go through and set each port to it's own index or sourcetype to find out?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 15:35:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-I-can-see-what-data-is-being-indexed-on-a/m-p/219694#M64555</guid>
      <dc:creator>janderson19</dc:creator>
      <dc:date>2016-06-15T15:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way I can see what data is being indexed on a specific port?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-I-can-see-what-data-is-being-indexed-on-a/m-p/219695#M64556</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Use this search to list all the hosts connected and sending data to your splunk instance&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*metrics.log group=tcpin_connections 
 | eval sourceHost=if(isnull(hostname), sourceHost,hostname) 
 | rename connectionType as connectType
 | eval connectType=case(fwdType=="uf","univ fwder", fwdType=="lwf", "lightwt fwder",fwdType=="full", "heavy fwder", connectType=="cooked" or connectType=="cookedSSL","Splunk fwder", connectType=="raw" or connectType=="rawSSL","legacy fwder")
 | eval version=if(isnull(version),"pre 4.2",version)
 | rename version as Ver 
 | fields connectType sourceIp sourceHost destPort kb tcp_eps tcp_Kprocessed tcp_KBps splunk_server Ver
 | eval Indexer= splunk_server
 | eval Hour=relative_time(_time,"@h")
 | stats avg(tcp_KBps) sum(tcp_eps) sum(tcp_Kprocessed) sum(kb) by Hour connectType sourceIp sourceHost destPort Indexer Ver
 | fieldformat Hour=strftime(Hour,"%x %H")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can then expand this search by using sourceHost,IP and get actual "log sources"&lt;/P&gt;

&lt;P&gt;Hope this helps!&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Raghav&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 15:43:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-I-can-see-what-data-is-being-indexed-on-a/m-p/219695#M64556</guid>
      <dc:creator>Raghav2384</dc:creator>
      <dc:date>2016-06-15T15:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way I can see what data is being indexed on a specific port?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-I-can-see-what-data-is-being-indexed-on-a/m-p/219696#M64557</link>
      <description>&lt;P&gt;Thanks! This worked perfectly!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 15:47:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-I-can-see-what-data-is-being-indexed-on-a/m-p/219696#M64557</guid>
      <dc:creator>janderson19</dc:creator>
      <dc:date>2016-06-15T15:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way I can see what data is being indexed on a specific port?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-I-can-see-what-data-is-being-indexed-on-a/m-p/219697#M64558</link>
      <description>&lt;P&gt;These seems to be TCP data inputs and since there are no values explicitly defined for index/sourcetype, they are going to default places. Not sure if you can migrate all to use same port (9997), but you can keep the same port configuration, assign index/sourcetype explicitly in the inputs.conf. See this for more info on TCP data inputs&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.1/Data/Monitornetworkports#Configure_a_TCP_input"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.1/Data/Monitornetworkports#Configure_a_TCP_input&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 15:50:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-I-can-see-what-data-is-being-indexed-on-a/m-p/219697#M64558</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-06-15T15:50:28Z</dc:date>
    </item>
  </channel>
</rss>

