<?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: Use Case for Privileged Users, SPL Question in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Use-Case-for-Privileged-Users-SPL-Question/m-p/709018#M239662</link>
    <description>&lt;P&gt;thanks a lot, that was the solution !&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jan 2025 18:24:09 GMT</pubDate>
    <dc:creator>avoelk</dc:creator>
    <dc:date>2025-01-16T18:24:09Z</dc:date>
    <item>
      <title>Use Case for Privileged Users, SPL Question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-Case-for-Privileged-Users-SPL-Question/m-p/708265#M239525</link>
      <description>&lt;P&gt;I'm trying to create a search in which the following should be done:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- look for a user creation process (ID 4720)&lt;/P&gt;
&lt;P&gt;- and then look (for the same user) if there is a follow up group adding event (4728) for privileged groups like (512,516 etc.)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my SPL was so far like that:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=lalala source=lalala EventID=4720 OR 4728 PrimaryGroupId IN (512,516,517,518,519)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BUT that way I only look for either a user creation OR a user being added as a privileged user. but I want to like both. I understand that I need to somehow connect those two searches but I don't know how exactly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 17:25:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-Case-for-Privileged-Users-SPL-Question/m-p/708265#M239525</guid>
      <dc:creator>avoelk</dc:creator>
      <dc:date>2025-01-08T17:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Use Case for Privileged Users, SPL Question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-Case-for-Privileged-Users-SPL-Question/m-p/708269#M239526</link>
      <description>&lt;P&gt;Hello hello!&lt;/P&gt;&lt;P&gt;I think what you are looking for here is the `transaction` command, but it can have some extra over-head.&amp;nbsp; I'll leave some examples here to see if they work for you. Since your requirement is simple, I suggest using the `stats` command instead of `transaction`. If you wanted to look at a specific EventID first and then another specific EventID after, `transaction` might be easier to implement.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Version using `transaction`:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=lalala source=lalala (EventID=4720 OR (EventID=4728 AND PrimaryGroupId IN (512,516,517,518,519)))
| transaction UserName maxspan=5m
| search EventID=4720 AND EventID=4728&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Version using `stats`:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=lalala source=lalala (EventID=4720 OR (EventID=4728 AND PrimaryGroupId IN (512,516,517,518,519)))
| stats values(EventID) AS EventIDs by UserName
| search EventIDs=4720 EventIDs=4728&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Edit: Fixing the code blocks.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 21:11:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-Case-for-Privileged-Users-SPL-Question/m-p/708269#M239526</guid>
      <dc:creator>emlin_charly</dc:creator>
      <dc:date>2025-01-08T21:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Use Case for Privileged Users, SPL Question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-Case-for-Privileged-Users-SPL-Question/m-p/708294#M239534</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I think that this is place for sub query like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=lalala source=lalala EventID=4728 AND PrimaryGroupId IN (512,516,517,518,519) AND
[ search index=lalala source=lalala EventID=4720 
  | fields UserName | dedup UserName | format ]&lt;/LI-CODE&gt;&lt;P&gt;In this way it first look those UserNames which has created and then that "outer" base search this those (UserName = "xxx" OR UserName = "yy"....)&lt;/P&gt;&lt;P&gt;If you are looking for long period then maybe there is better options too.&lt;/P&gt;&lt;P&gt;r. Ismo&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 20:34:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-Case-for-Privileged-Users-SPL-Question/m-p/708294#M239534</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2025-01-08T20:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Use Case for Privileged Users, SPL Question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-Case-for-Privileged-Users-SPL-Question/m-p/709018#M239662</link>
      <description>&lt;P&gt;thanks a lot, that was the solution !&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 18:24:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-Case-for-Privileged-Users-SPL-Question/m-p/709018#M239662</guid>
      <dc:creator>avoelk</dc:creator>
      <dc:date>2025-01-16T18:24:09Z</dc:date>
    </item>
  </channel>
</rss>

