<?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: Account status -&amp;gt; bypassed, is it enabled? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Account-status-gt-bypassed-is-it-enabled/m-p/570987#M198969</link>
    <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;I think I solve this with this query using eventstats dc (this is giving me last two condition) where I can then see if the last status is Bypass.&lt;BR /&gt;example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=&amp;lt;index&amp;gt; sourcetype=&amp;lt;sourcetype&amp;gt; ( status="Enabled" OR status="Bypass") | eventstats dc(status) as state by user |  sort - _time user | eventstats latest(status) AS condition by user |  where condition=Bypass | ... playing with time condition&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Oct 2021 13:09:23 GMT</pubDate>
    <dc:creator>jbanAtSplunk</dc:creator>
    <dc:date>2021-10-14T13:09:23Z</dc:date>
    <item>
      <title>Account status -&gt; bypassed, is it enabled?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Account-status-gt-bypassed-is-it-enabled/m-p/570928#M198955</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;We have status in one log type, where we would like to track if account is in state: bypassed&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;2021-13-10 user1 bypassed&lt;/P&gt;&lt;P&gt;2021-13-10 user2 enabled&lt;/P&gt;&lt;P&gt;2021-13-09 user2 bypassed&lt;BR /&gt;2021-13-08 user3 bypassed&lt;/P&gt;&lt;P&gt;2021-13-08 user3 active&lt;BR /&gt;2021-13-08 user3 bypassed&lt;BR /&gt;2021-13-07 user3 active&lt;BR /&gt;&lt;BR /&gt;how can we find last 2 status for user in period of time and than based on last bypass/active status we get only accounts that have still active bypass status?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 09:37:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Account-status-gt-bypassed-is-it-enabled/m-p/570928#M198955</guid>
      <dc:creator>jbanAtSplunk</dc:creator>
      <dc:date>2021-10-14T09:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Account status -&gt; bypassed, is it enabled?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Account-status-gt-bypassed-is-it-enabled/m-p/570982#M198968</link>
      <description>&lt;P&gt;To get the last 2 statuses for a user, use &lt;FONT face="courier new,courier"&gt;dedup 2&lt;/FONT&gt;.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;... | dedup 2 user
...&lt;/LI-CODE&gt;&lt;P&gt;To get the current status, use &lt;FONT face="courier new,courier"&gt;dedup&lt;/FONT&gt;.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;... | dedup user
| where status="bypassed"&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 14 Oct 2021 13:02:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Account-status-gt-bypassed-is-it-enabled/m-p/570982#M198968</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-10-14T13:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Account status -&gt; bypassed, is it enabled?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Account-status-gt-bypassed-is-it-enabled/m-p/570987#M198969</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;I think I solve this with this query using eventstats dc (this is giving me last two condition) where I can then see if the last status is Bypass.&lt;BR /&gt;example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=&amp;lt;index&amp;gt; sourcetype=&amp;lt;sourcetype&amp;gt; ( status="Enabled" OR status="Bypass") | eventstats dc(status) as state by user |  sort - _time user | eventstats latest(status) AS condition by user |  where condition=Bypass | ... playing with time condition&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 13:09:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Account-status-gt-bypassed-is-it-enabled/m-p/570987#M198969</guid>
      <dc:creator>jbanAtSplunk</dc:creator>
      <dc:date>2021-10-14T13:09:23Z</dc:date>
    </item>
  </channel>
</rss>

