<?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: Why am I unable to use token authentication on a universal forwarder in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-unable-to-use-token-authentication-on-a-universal/m-p/201002#M39720</link>
    <description>&lt;P&gt;Thank you for your response.&lt;/P&gt;

&lt;P&gt;I've already checked all the documentation on this subject. I try to understand:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;What are the real mechanisms used behind the command? When I ask to generate a token, how does it choose the token?&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;The UF don't send the token, it's right. But why? &lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I hope I'm more precise.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jun 2016 11:44:02 GMT</pubDate>
    <dc:creator>mvidal31</dc:creator>
    <dc:date>2016-06-13T11:44:02Z</dc:date>
    <item>
      <title>Why am I unable to use token authentication on a universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-unable-to-use-token-authentication-on-a-universal/m-p/201000#M39718</link>
      <description>&lt;P&gt;Hello the Splunk community&lt;/P&gt;

&lt;P&gt;I'm trying to use the token authentication between an indexer and a universal forwarder. All seems to be good on my indexer, but the UF doesn't seem to understand the configuration.&lt;BR /&gt;
This is my configuration in /local/outputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
defaultGroup = index

[tcpout:index]
server= aaa.bbb.ccc.ddd:ppp
token = 8-4-4-4-12
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I restart the Splunk daemon, the token stays in clear in the configuration file and on the indexer, I have this log: &lt;EM&gt;"token not sent by forwarder!"&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;If I specify that without the token, the UF works very well.&lt;/P&gt;

&lt;P&gt;Does somebody know where I'm wrong?&lt;/P&gt;

&lt;P&gt;Bonus question: Does anyone know how the token is created (urand, ...)?&lt;/P&gt;

&lt;P&gt;thank you a lot!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 14:37:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-unable-to-use-token-authentication-on-a-universal/m-p/201000#M39718</guid>
      <dc:creator>mvidal31</dc:creator>
      <dc:date>2016-06-08T14:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to use token authentication on a universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-unable-to-use-token-authentication-on-a-universal/m-p/201001#M39719</link>
      <description>&lt;P&gt;The generation of the token and this particular error message are described at &lt;A href="https://docs.splunk.com/Documentation/Forwarder/6.4.1/Forwarder/Controlforwarderaccess"&gt;Control forwarder access&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The documentation about the error message at the bottom of the page -&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/1461iB87E1871FFF34120/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;   -&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jun 2016 20:12:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-unable-to-use-token-authentication-on-a-universal/m-p/201001#M39719</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2016-06-12T20:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to use token authentication on a universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-unable-to-use-token-authentication-on-a-universal/m-p/201002#M39720</link>
      <description>&lt;P&gt;Thank you for your response.&lt;/P&gt;

&lt;P&gt;I've already checked all the documentation on this subject. I try to understand:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;What are the real mechanisms used behind the command? When I ask to generate a token, how does it choose the token?&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;The UF don't send the token, it's right. But why? &lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I hope I'm more precise.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2016 11:44:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-unable-to-use-token-authentication-on-a-universal/m-p/201002#M39720</guid>
      <dc:creator>mvidal31</dc:creator>
      <dc:date>2016-06-13T11:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to use token authentication on a universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-unable-to-use-token-authentication-on-a-universal/m-p/201003#M39721</link>
      <description>&lt;P&gt;Hey mvidal,&lt;BR /&gt;
Could you double check that the token that you have put in outputs.conf is indeed a valid one. That is, it has the same value which you got when you generated on indexer.&lt;BR /&gt;
Some key points to keep in mind.&lt;BR /&gt;
1) Not all strings are valid tokens, they are GUID's. If it is not a valid token it will not be sent from the forwarder to indexer.&lt;BR /&gt;
2) Your token stays in plain text because string '8-4-4-4-12' is not a valid guid, since it is not a valid token we dont even look at it from the perpective of using it or encrypting it.&lt;/P&gt;

&lt;P&gt;Technically you should not have to care about how tokens are generated by indexer. You should treat them as opaque objects from your side. &lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 22:59:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-unable-to-use-token-authentication-on-a-universal/m-p/201003#M39721</guid>
      <dc:creator>rdimri_splunk</dc:creator>
      <dc:date>2016-09-21T22:59:51Z</dc:date>
    </item>
  </channel>
</rss>

