<?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: Has Splunk got a good memory ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Has-Splunk-got-a-good-memory/m-p/62620#M15462</link>
    <description>&lt;P&gt;I think transaction is the correct direction.&lt;/P&gt;&lt;BR /&gt;
What I would suggest that you look for is a transaction that has a message [list] that has more than one "log in" and a "time out".&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Aug 2011 13:04:48 GMT</pubDate>
    <dc:creator>fk319</dc:creator>
    <dc:date>2011-08-23T13:04:48Z</dc:date>
    <item>
      <title>Has Splunk got a good memory ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Has-Splunk-got-a-good-memory/m-p/62617#M15459</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm trying to identify the difference between two events, for instance :&lt;BR /&gt;
Event 1 : user=jdoe message="session timed out"&lt;BR /&gt;
Event 2 : user=jdoe message="logged in"&lt;/P&gt;

&lt;P&gt;Problem is : i have to keep the user parameter saved somehow.&lt;/P&gt;

&lt;P&gt;Two options would work for me, either finding out what's the time difference between these events or knowing if event 2 happens less than x minutes after event 1.&lt;/P&gt;

&lt;P&gt;I've tried using delta and transaction but it's not working correctly ...&lt;/P&gt;

&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;

&lt;P&gt;M&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2011 10:05:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Has-Splunk-got-a-good-memory/m-p/62617#M15459</guid>
      <dc:creator>Mahieu</dc:creator>
      <dc:date>2011-08-23T10:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Has Splunk got a good memory ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Has-Splunk-got-a-good-memory/m-p/62618#M15460</link>
      <description>&lt;P&gt;I think you'll need to state your problem more clearly. In what way do you need to 'save' the user parameter? How are you planning to use this search? Should it be user-independent and used in a search form somehow where Splunk users can specify the value for this field?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2011 10:11:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Has-Splunk-got-a-good-memory/m-p/62618#M15460</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2011-08-23T10:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Has Splunk got a good memory ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Has-Splunk-got-a-good-memory/m-p/62619#M15461</link>
      <description>&lt;P&gt;Sorry for the unclear explanation. In the end, the goal is to know whether or not my users log back in (event : jdoe logged in) when their session time out (event : jdoe's session timed out). The idea is to identify the users who do not log out when they leave my application and that's not good because they leave idle sessions.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2011 11:55:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Has-Splunk-got-a-good-memory/m-p/62619#M15461</guid>
      <dc:creator>Mahieu</dc:creator>
      <dc:date>2011-08-23T11:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Has Splunk got a good memory ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Has-Splunk-got-a-good-memory/m-p/62620#M15462</link>
      <description>&lt;P&gt;I think transaction is the correct direction.&lt;/P&gt;&lt;BR /&gt;
What I would suggest that you look for is a transaction that has a message [list] that has more than one "log in" and a "time out".&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2011 13:04:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Has-Splunk-got-a-good-memory/m-p/62620#M15462</guid>
      <dc:creator>fk319</dc:creator>
      <dc:date>2011-08-23T13:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Has Splunk got a good memory ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Has-Splunk-got-a-good-memory/m-p/62621#M15463</link>
      <description>&lt;P&gt;I also think that the transaction command could help you, I haven't tried the search below but the idea is to get all users that log back in into a transaction and then just search for the unclosed transactions. You should then be left with logins and session timeouts that are not related. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;message="logged in" OR message="session timed out" | transaction user  maxspan=&amp;lt;x min&amp;gt; maxpause=&amp;lt;x min&amp;gt;  startswith="session timed out" endswith="logged in" keepevicted=true | search closed_txn=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You probably just want the users in the session timed out messages.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;message="logged in" OR message="session timed out" | transaction user  maxspan=&amp;lt;x min&amp;gt; maxpause=&amp;lt;x min&amp;gt;  startswith="session timed out" endswith="logged in" keepevicted=true | search closed_txn=0 message="session timed out" | top user
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2011 13:59:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Has-Splunk-got-a-good-memory/m-p/62621#M15463</guid>
      <dc:creator>chris</dc:creator>
      <dc:date>2011-08-23T13:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Has Splunk got a good memory ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Has-Splunk-got-a-good-memory/m-p/62622#M15464</link>
      <description>&lt;P&gt;Here's a blog post I wrote about maintaining state with lookups:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://blogs.splunk.com/2011/01/11/maintaining-state-of-the-union/"&gt;http://blogs.splunk.com/2011/01/11/maintaining-state-of-the-union/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2011 16:44:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Has-Splunk-got-a-good-memory/m-p/62622#M15464</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2011-08-23T16:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Has Splunk got a good memory ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Has-Splunk-got-a-good-memory/m-p/62623#M15465</link>
      <description>&lt;P&gt;Hi there and thanks a lot for this answer. I've tried that but removed keepevicted=true. If i leave ' search closed_txn=0 message="session timed out" ' i've got no results. If i remove it, i've got the events i'm looking for but it seems like the maxspan is not taken into account. No matter what time value i put, it's not filtering anything. &lt;/P&gt;

&lt;P&gt;Here's my search :&lt;/P&gt;

&lt;P&gt;sourcetype="xxxxxx" msg="&lt;EM&gt;login succeeded&lt;/EM&gt;" OR msg="&lt;EM&gt;Session timed out&lt;/EM&gt;" | transaction user startswith="&lt;EM&gt;Session timed out&lt;/EM&gt;" endswith="&lt;EM&gt;login succeeded&lt;/EM&gt;" maxspan=5min maxpause=1min    (| search closed_txn=0 msg="&lt;EM&gt;Session timed out&lt;/EM&gt;")&lt;/P&gt;</description>
      <pubDate>Sat, 27 Aug 2011 17:04:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Has-Splunk-got-a-good-memory/m-p/62623#M15465</guid>
      <dc:creator>Mahieu</dc:creator>
      <dc:date>2011-08-27T17:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Has Splunk got a good memory ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Has-Splunk-got-a-good-memory/m-p/62624#M15466</link>
      <description>&lt;P&gt;Any ideas here ?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2011 09:14:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Has-Splunk-got-a-good-memory/m-p/62624#M15466</guid>
      <dc:creator>Mahieu</dc:creator>
      <dc:date>2011-08-30T09:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Has Splunk got a good memory ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Has-Splunk-got-a-good-memory/m-p/62625#M15467</link>
      <description>&lt;P&gt;It's been a while sorry, here's all i could come up with :&lt;BR /&gt;
sourcetype=xxx msg="&lt;EM&gt;primary authentication successful&lt;/EM&gt;" OR msg="&lt;EM&gt;session timed out&lt;/EM&gt;" | transaction user startswith="&lt;EM&gt;session timed out&lt;/EM&gt;" endswith="&lt;EM&gt;primary authentication successful&lt;/EM&gt;" maxspan=5m | search msg="&lt;EM&gt;session timed out&lt;/EM&gt;"&lt;/P&gt;

&lt;P&gt;Seems to work pretty well.&lt;BR /&gt;
Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2012 08:50:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Has-Splunk-got-a-good-memory/m-p/62625#M15467</guid>
      <dc:creator>Mahieu</dc:creator>
      <dc:date>2012-06-15T08:50:48Z</dc:date>
    </item>
  </channel>
</rss>

