<?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 &amp;quot;Your session is invalid&amp;quot; message when using CLI in Security</title>
    <link>https://community.splunk.com/t5/Security/quot-Your-session-is-invalid-quot-message-when-using-CLI/m-p/71208#M2355</link>
    <description>&lt;P&gt;I've just upgraded to 4.2 and am having problems with command-line scripts that run splunk searches. When I run a search from the CLI, I'm prompted with:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"Your session is invalid.  Please login."
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I enter my username and password manually, it works for a while but prompts again after a period of time. This is causing my scripts to fail. Any ideas how to disable authentication from the command-line, or some other work-around? Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Thu, 31 Mar 2011 01:49:50 GMT</pubDate>
    <dc:creator>seren</dc:creator>
    <dc:date>2011-03-31T01:49:50Z</dc:date>
    <item>
      <title>"Your session is invalid" message when using CLI</title>
      <link>https://community.splunk.com/t5/Security/quot-Your-session-is-invalid-quot-message-when-using-CLI/m-p/71208#M2355</link>
      <description>&lt;P&gt;I've just upgraded to 4.2 and am having problems with command-line scripts that run splunk searches. When I run a search from the CLI, I'm prompted with:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"Your session is invalid.  Please login."
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I enter my username and password manually, it works for a while but prompts again after a period of time. This is causing my scripts to fail. Any ideas how to disable authentication from the command-line, or some other work-around? Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2011 01:49:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/quot-Your-session-is-invalid-quot-message-when-using-CLI/m-p/71208#M2355</guid>
      <dc:creator>seren</dc:creator>
      <dc:date>2011-03-31T01:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: "Your session is invalid" message when using CLI</title>
      <link>https://community.splunk.com/t5/Security/quot-Your-session-is-invalid-quot-message-when-using-CLI/m-p/71209#M2356</link>
      <description>&lt;P&gt;You have a timeout (configurable) on the UI, so as the CLI. Anyway - you either could try this one &lt;A href="http://www.splunk.com/base/Documentation/4.2/Developer/RESTAuthToken" rel="nofollow"&gt;AuthToken&lt;/A&gt; or within your command-line script: &lt;CODE&gt;splunk search '&amp;lt;search&amp;gt; -auth user:password&lt;/CODE&gt; - of course in that option the password is visible to anyone who can read your script, or when you do 'ps -ef'!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2011 05:51:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/quot-Your-session-is-invalid-quot-message-when-using-CLI/m-p/71209#M2356</guid>
      <dc:creator>LCM</dc:creator>
      <dc:date>2011-04-01T05:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: "Your session is invalid" message when using CLI</title>
      <link>https://community.splunk.com/t5/Security/quot-Your-session-is-invalid-quot-message-when-using-CLI/m-p/71210#M2357</link>
      <description>&lt;P&gt;Thanks a lot. That was it.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2011 12:24:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/quot-Your-session-is-invalid-quot-message-when-using-CLI/m-p/71210#M2357</guid>
      <dc:creator>seren</dc:creator>
      <dc:date>2011-04-07T12:24:41Z</dc:date>
    </item>
  </channel>
</rss>

