<?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: Tcpinput whit tokens: how to specify the destination index? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Tcpinput-whit-tokens-how-to-specify-the-destination-index/m-p/511369#M17554</link>
    <description>&lt;P&gt;It seems the problem was a missing info in my client's inputs.conf.&lt;/P&gt;&lt;P&gt;The destination index needed to be specified this way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[monitor:///tmp/instance.log]&lt;BR /&gt;disabled=false&lt;BR /&gt;sourcetype = generic_single_line&lt;BR /&gt;index = minikube_on_hs9&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jul 2020 14:48:49 GMT</pubDate>
    <dc:creator>gc_os76</dc:creator>
    <dc:date>2020-07-28T14:48:49Z</dc:date>
    <item>
      <title>Tcpinput whit tokens: how to specify the destination index?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Tcpinput-whit-tokens-how-to-specify-the-destination-index/m-p/511320#M17547</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm trying to configure a tcpinput endpoint configuration in a way which makes me able to route incoming traffic in a few indexes.&lt;/P&gt;&lt;P&gt;I'm trying to use tokens to do this.&lt;/P&gt;&lt;P&gt;From Splunk web gui I can see that is possible to bind an HEC token to a certain index.&lt;/P&gt;&lt;P&gt;It seems I'm not able to do the same with the TCP tokens.&lt;/P&gt;&lt;P&gt;I've been following this documentation to define my token:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Forwarder/8.0.5/Forwarder/Controlforwarderaccess" target="_blank"&gt;https://docs.splunk.com/Documentation/Forwarder/8.0.5/Forwarder/Controlforwarderaccess&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and then defining this on my indexer instance's inputs.conf file:&lt;/P&gt;&lt;P&gt;[splunktcp://9997]&lt;BR /&gt;disabled = 0&lt;BR /&gt;index = minikube_on_hs9&lt;/P&gt;&lt;P&gt;[splunktcptoken://my_token]&lt;BR /&gt;disabled = 0&lt;BR /&gt;index = minikube_on_hs9&lt;BR /&gt;token = $7$qlaEJcxHynjqXZHqCddO61xXxB/FUh/aooVPVFvjBEde9OnUZPx6Oz/Te8ye0lJKR/3tkNuCXjK8ccPLsKARgNAIkSg=&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;after a restart of Splunk, the status of the token was as the one showed in the attached screenshot.&lt;/P&gt;&lt;P&gt;At the moment of creation, the token seemed associated to the default index, though.&lt;/P&gt;&lt;P&gt;On my test client, in the outputs.conf file, I have something like this:&lt;/P&gt;&lt;P&gt;[tcpout]&lt;BR /&gt;defaultGroup = tcpin-sre-tools&lt;/P&gt;&lt;P&gt;token = $7$2ygFLiflfLjPs/n/jXxuOBI/aSgTK/Hwf+IcSSMkAtt6V+ATWCbOm4+95VpVPag05bco0qjlMuEckfcxtZDBa7h1fu0=&lt;/P&gt;&lt;P&gt;[tcpout:tcpin-sre-tools]&lt;/P&gt;&lt;P&gt;server = my_server_name:9997&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No error related to token missing or mismatch, but still unable to address logs from my client into the specified index on the Splunk side. The logs get injected in the main index.&lt;/P&gt;&lt;P&gt;Any idea how to fix this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 12:31:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Tcpinput-whit-tokens-how-to-specify-the-destination-index/m-p/511320#M17547</guid>
      <dc:creator>gc_os76</dc:creator>
      <dc:date>2020-07-28T12:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Tcpinput whit tokens: how to specify the destination index?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Tcpinput-whit-tokens-how-to-specify-the-destination-index/m-p/511369#M17554</link>
      <description>&lt;P&gt;It seems the problem was a missing info in my client's inputs.conf.&lt;/P&gt;&lt;P&gt;The destination index needed to be specified this way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[monitor:///tmp/instance.log]&lt;BR /&gt;disabled=false&lt;BR /&gt;sourcetype = generic_single_line&lt;BR /&gt;index = minikube_on_hs9&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 14:48:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Tcpinput-whit-tokens-how-to-specify-the-destination-index/m-p/511369#M17554</guid>
      <dc:creator>gc_os76</dc:creator>
      <dc:date>2020-07-28T14:48:49Z</dc:date>
    </item>
  </channel>
</rss>

