<?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: How do I search for exact sequence of events? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-for-exact-sequence-of-events/m-p/453590#M128349</link>
    <description>&lt;P&gt;A slight amendment, which I think is on the right tracks and returns some data, but I'm not sure it's correct:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=privillege_user_actions
  | SORT time
  | transaction user startswith="Copied To Clipboard (Sensitive Data)" endswith="Pasted From Clipboard"
| where eventcount=2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I'd be really grateful for any assistance on this.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Sep 2018 22:08:24 GMT</pubDate>
    <dc:creator>kelvinJE</dc:creator>
    <dc:date>2018-09-10T22:08:24Z</dc:date>
    <item>
      <title>How do I search for exact sequence of events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-for-exact-sequence-of-events/m-p/453589#M128348</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;

&lt;P&gt;Wondering if anybody can assist. We're logging privilege user activity (GUI interactions etc) and looking to identify when a certain sequence occurs. &lt;/P&gt;

&lt;P&gt;We have data such as the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Time    |   User   |   Action
10:00     Joe         Copied To Clipboard (Sensitive Data)
10:01     Ben         Copied To Clipboard (Normal Data)
10:01     Ben         Pasted From Clipboard
10:01     Joe         Copied To Clipboard (Normal Data)
10:02     Joe         Pasted From Clipboard
10:03     Joe         Copied To Clipboard (Sensitive Data)
10:04     Joe         Pasted From Clipboard
10:06     Joe         Copied To Clipboard (Normal Data)
10:07     Joe         Pasted From Clipboard
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;We're only interested in knowing when Sensitive data is copied, then pasted. So exact sequence of Joe's actions above at 10:03 and 10:04. If Sensitive data is copied, but then overwritten such as Joes actions 10:00, 10:01 and 10:02 then its ignored&lt;/P&gt;

&lt;P&gt;I've toyed with Transactions for this, but I'm a newb and a bit out of my depth:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=privillege_user_actions
 | SORT time
 | transaction user startswith="Copied To Clipboard (Sensitive Data)" endswith="Pasted From Clipboard"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Could anybody recommend a query for doing this?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 21:48:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-for-exact-sequence-of-events/m-p/453589#M128348</guid>
      <dc:creator>kelvinJE</dc:creator>
      <dc:date>2018-09-10T21:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I search for exact sequence of events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-for-exact-sequence-of-events/m-p/453590#M128349</link>
      <description>&lt;P&gt;A slight amendment, which I think is on the right tracks and returns some data, but I'm not sure it's correct:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=privillege_user_actions
  | SORT time
  | transaction user startswith="Copied To Clipboard (Sensitive Data)" endswith="Pasted From Clipboard"
| where eventcount=2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I'd be really grateful for any assistance on this.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 22:08:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-for-exact-sequence-of-events/m-p/453590#M128349</guid>
      <dc:creator>kelvinJE</dc:creator>
      <dc:date>2018-09-10T22:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I search for exact sequence of events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-for-exact-sequence-of-events/m-p/453591#M128350</link>
      <description>&lt;P&gt;Your last query looks good, except for the &lt;CODE&gt;sort&lt;/CODE&gt;.  Events are returned in reverse time order automatically and &lt;CODE&gt;transaction&lt;/CODE&gt; requires events be in that order so sorting won't help in this instance.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2018 11:31:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-for-exact-sequence-of-events/m-p/453591#M128350</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-09-11T11:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I search for exact sequence of events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-for-exact-sequence-of-events/m-p/453592#M128351</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=privillege_user_actions
transaction user startswith="Copied To Clipboard (Sensitive Data)" endswith="Pasted From Clipboard" maxevents=2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Sep 2018 12:51:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-for-exact-sequence-of-events/m-p/453592#M128351</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2018-09-11T12:51:08Z</dc:date>
    </item>
  </channel>
</rss>

