<?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 Windows Event Log Sub-Search to filter for users RDPing with specific accounts in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Windows-Event-Log-Sub-Search-to-filter-for-users-RDPing-with/m-p/389765#M69754</link>
    <description>&lt;P&gt;So here's the issue... We have an RDS Farm that users login to and from there they RDP to other servers. Right now I have a search that creates a table and shows the users that are logging in with non-domain accounts/service accounts from the jump servers(RDS Farm) to the other servers -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="wineventlog" source="WinEventLog:Security" EventCode=4624 Process_Name="*winlogon*" NOT (user=Example_AdminAccounts) NOT (Account_Domain=Example_Domains)
| table _time, dst_nt_domain, user, ComputerName, src_ip
| convert timeformat=" %A, %h-%d %Y %H:%M:%S%P" ctime(_time)
| rename user as "User", ComputerName as "FQDN", src_ip as "Source IP", name as "Description", dst_nt_domain as "Domain", _time as "Date and Time"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This search works properly, however I am trying to create a subsearch that would give me the following:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;If&lt;/EM&gt;&lt;/STRONG&gt; a user field includes&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;&lt;EM&gt;user&lt;/EM&gt;&lt;/STRONG&gt;=&lt;EM&gt;svc_account&lt;/EM&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;then&lt;/EM&gt;&lt;/STRONG&gt; search the &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;hosts&lt;/EM&gt;&lt;/STRONG&gt;=&lt;EM&gt;RDS Jump Server Farm&lt;/EM&gt; within&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;&lt;EM&gt;WinEventLogs:Application&lt;/EM&gt;&lt;/STRONG&gt;=&lt;EM&gt;Microsoft-Windows-TerminalServices-RDPClient/Operational&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;&lt;EM&gt;EventCode&lt;/EM&gt;&lt;/STRONG&gt;=&lt;EM&gt;1024&lt;/EM&gt; for matching&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;&lt;EM&gt;ComputerName&lt;/EM&gt;&lt;/STRONG&gt; from previous search results and&lt;/LI&gt;
&lt;LI&gt;Output &lt;STRONG&gt;&lt;EM&gt;table&lt;/EM&gt;&lt;/STRONG&gt; with &lt;STRONG&gt;&lt;EM&gt;fields&lt;/EM&gt;&lt;/STRONG&gt;=&lt;EM&gt;_time, SubSearched_User, OriginalSearch_User, OriginalSearch_ComputerName&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;&lt;EM&gt;Rename&lt;/EM&gt;&lt;/STRONG&gt; &lt;EM&gt;_time&lt;/EM&gt; as &lt;EM&gt;Date and Time&lt;/EM&gt;, &lt;EM&gt;SubSearched_User&lt;/EM&gt; as &lt;EM&gt;User&lt;/EM&gt;, &lt;EM&gt;OriginalSearch_User&lt;/EM&gt; as &lt;EM&gt;Service Account&lt;/EM&gt;, &lt;EM&gt;OriginalSearch_ComputerName&lt;/EM&gt; as &lt;EM&gt;FQDN&lt;/EM&gt;.&lt;/LI&gt;
&lt;/UL&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I'm not sure if this is possible or if there's a better method to go about this but hopefully some of you experts can lend a hand.&lt;/P&gt;

&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 22:02:05 GMT</pubDate>
    <dc:creator>hubbardw</dc:creator>
    <dc:date>2020-09-29T22:02:05Z</dc:date>
    <item>
      <title>Windows Event Log Sub-Search to filter for users RDPing with specific accounts</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-Event-Log-Sub-Search-to-filter-for-users-RDPing-with/m-p/389765#M69754</link>
      <description>&lt;P&gt;So here's the issue... We have an RDS Farm that users login to and from there they RDP to other servers. Right now I have a search that creates a table and shows the users that are logging in with non-domain accounts/service accounts from the jump servers(RDS Farm) to the other servers -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="wineventlog" source="WinEventLog:Security" EventCode=4624 Process_Name="*winlogon*" NOT (user=Example_AdminAccounts) NOT (Account_Domain=Example_Domains)
| table _time, dst_nt_domain, user, ComputerName, src_ip
| convert timeformat=" %A, %h-%d %Y %H:%M:%S%P" ctime(_time)
| rename user as "User", ComputerName as "FQDN", src_ip as "Source IP", name as "Description", dst_nt_domain as "Domain", _time as "Date and Time"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This search works properly, however I am trying to create a subsearch that would give me the following:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;If&lt;/EM&gt;&lt;/STRONG&gt; a user field includes&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;&lt;EM&gt;user&lt;/EM&gt;&lt;/STRONG&gt;=&lt;EM&gt;svc_account&lt;/EM&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;then&lt;/EM&gt;&lt;/STRONG&gt; search the &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;hosts&lt;/EM&gt;&lt;/STRONG&gt;=&lt;EM&gt;RDS Jump Server Farm&lt;/EM&gt; within&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;&lt;EM&gt;WinEventLogs:Application&lt;/EM&gt;&lt;/STRONG&gt;=&lt;EM&gt;Microsoft-Windows-TerminalServices-RDPClient/Operational&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;&lt;EM&gt;EventCode&lt;/EM&gt;&lt;/STRONG&gt;=&lt;EM&gt;1024&lt;/EM&gt; for matching&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;&lt;EM&gt;ComputerName&lt;/EM&gt;&lt;/STRONG&gt; from previous search results and&lt;/LI&gt;
&lt;LI&gt;Output &lt;STRONG&gt;&lt;EM&gt;table&lt;/EM&gt;&lt;/STRONG&gt; with &lt;STRONG&gt;&lt;EM&gt;fields&lt;/EM&gt;&lt;/STRONG&gt;=&lt;EM&gt;_time, SubSearched_User, OriginalSearch_User, OriginalSearch_ComputerName&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;&lt;EM&gt;Rename&lt;/EM&gt;&lt;/STRONG&gt; &lt;EM&gt;_time&lt;/EM&gt; as &lt;EM&gt;Date and Time&lt;/EM&gt;, &lt;EM&gt;SubSearched_User&lt;/EM&gt; as &lt;EM&gt;User&lt;/EM&gt;, &lt;EM&gt;OriginalSearch_User&lt;/EM&gt; as &lt;EM&gt;Service Account&lt;/EM&gt;, &lt;EM&gt;OriginalSearch_ComputerName&lt;/EM&gt; as &lt;EM&gt;FQDN&lt;/EM&gt;.&lt;/LI&gt;
&lt;/UL&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I'm not sure if this is possible or if there's a better method to go about this but hopefully some of you experts can lend a hand.&lt;/P&gt;

&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:02:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-Event-Log-Sub-Search-to-filter-for-users-RDPing-with/m-p/389765#M69754</guid>
      <dc:creator>hubbardw</dc:creator>
      <dc:date>2020-09-29T22:02:05Z</dc:date>
    </item>
  </channel>
</rss>

