<?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 How to get session key / auth token for mod input script in Security</title>
    <link>https://community.splunk.com/t5/Security/How-to-get-session-key-auth-token-for-mod-input-script/m-p/561575#M15441</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm currently trying to get the auth token that can be used for rest apis without exposing my password. Since it is a mod input script, I am using passAuth = &amp;lt;user&amp;gt; in inputs.conf. This provides me the auth token via stdin, but it is exposing some information that I would not like exposed. The stdin that I get is "sessionKey=abcd1234" for example. Is there a way to omit the "sessionKey=" part and only return the session key?&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.1/Admin/Inputsconf" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.1/Admin/Inputsconf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/8.2.2105/AdvancedDev/ModInputsIntro" target="_blank"&gt;https://docs.splunk.com/Documentation/SplunkCloud/8.2.2105/AdvancedDev/ModInputsIntro&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Alternatively, is there another way to retrieve the session key / auth token without including the password in my script?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 31 Jul 2021 03:59:53 GMT</pubDate>
    <dc:creator>jimmycmfu</dc:creator>
    <dc:date>2021-07-31T03:59:53Z</dc:date>
    <item>
      <title>How to get session key / auth token for mod input script</title>
      <link>https://community.splunk.com/t5/Security/How-to-get-session-key-auth-token-for-mod-input-script/m-p/561575#M15441</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm currently trying to get the auth token that can be used for rest apis without exposing my password. Since it is a mod input script, I am using passAuth = &amp;lt;user&amp;gt; in inputs.conf. This provides me the auth token via stdin, but it is exposing some information that I would not like exposed. The stdin that I get is "sessionKey=abcd1234" for example. Is there a way to omit the "sessionKey=" part and only return the session key?&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.1/Admin/Inputsconf" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.1/Admin/Inputsconf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/8.2.2105/AdvancedDev/ModInputsIntro" target="_blank"&gt;https://docs.splunk.com/Documentation/SplunkCloud/8.2.2105/AdvancedDev/ModInputsIntro&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Alternatively, is there another way to retrieve the session key / auth token without including the password in my script?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 31 Jul 2021 03:59:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-get-session-key-auth-token-for-mod-input-script/m-p/561575#M15441</guid>
      <dc:creator>jimmycmfu</dc:creator>
      <dc:date>2021-07-31T03:59:53Z</dc:date>
    </item>
  </channel>
</rss>

