<?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: Event4662: To blacklist $user name in Subject User name in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Event4662-To-blacklist-user-name-in-Subject-User-name/m-p/522467#M88231</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226281"&gt;@PratikPashte&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;please share a sample of your logs.&lt;/P&gt;&lt;P&gt;Could you display your regex using the Code Sample button?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Thu, 01 Oct 2020 11:57:52 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2020-10-01T11:57:52Z</dc:date>
    <item>
      <title>Event4662: To blacklist $user name in Subject User name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event4662-To-blacklist-user-name-in-Subject-User-name/m-p/521695#M88139</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;I have been working to optimize the data going to Splunk and found EventCode 4662, Object Type= Computers are forwarding huge amount of data.&lt;/P&gt;&lt;P&gt;Upon further investigation I found that Subject user name having $ (Local Account) can be blacklist from sending to Splunk Cloud.&lt;/P&gt;&lt;P&gt;To do so I added below regex on the Splunk Application over Deployment Server,&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[WinEventLog://Security]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;disabled&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;start_from&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; oldest&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;current_only&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;evt_resolve_ad_obj&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;checkpointInterval&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;5&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;blacklist1&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;EventCode&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"4662"&lt;/SPAN&gt; &lt;SPAN&gt;Message&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"(?:&amp;lt;Data Name='SubjectUserName'&amp;gt;).+(?:\$)"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;blacklist2&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;EventCode&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"4662"&lt;/SPAN&gt; &lt;SPAN&gt;Message&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"Object Type:(?!\s*(groupPolicyContainer|computer|user))"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;renderXml&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;index&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; DC_Events&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The below regex completely works fine on Sample Data,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;blacklist1&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;EventCode&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"4662"&lt;/SPAN&gt; &lt;SPAN&gt;Message&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"(?:&amp;lt;Data Name='SubjectUserName'&amp;gt;).+(?:\$)"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This would help me not to send the user name having $ in Subject User name which could save lot of space over splunk as more than 100s of servers are sending the data to the splunk and would increased eventually.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Pratik Pashte&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 06:44:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event4662-To-blacklist-user-name-in-Subject-User-name/m-p/521695#M88139</guid>
      <dc:creator>PratikPashte</dc:creator>
      <dc:date>2020-09-28T06:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Event4662: To blacklist $user name in Subject User name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event4662-To-blacklist-user-name-in-Subject-User-name/m-p/521703#M88141</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226281"&gt;@PratikPashte&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good idea if is working for you, only one hint: check that in the filtered data there isn't any interesting data, because using a filter as the one you described you don't index those events and you lose them.&lt;/P&gt;&lt;P&gt;I sow that sometimes in Windows logs there are more different User_Names in the same event.&lt;/P&gt;&lt;P&gt;Anyway, good for you, only for completeness: what's your real question?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 07:23:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event4662-To-blacklist-user-name-in-Subject-User-name/m-p/521703#M88141</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-28T07:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Event4662: To blacklist $user name in Subject User name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event4662-To-blacklist-user-name-in-Subject-User-name/m-p/522453#M88225</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;The above inputs.conf is not working as expected, actually do not want any other user name mostly with $ in the event which is actually consuming the Splunk Space.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So i have created that regex to blacklist the Subject Username with $ but it is not working I could still get users on Splunk for that particular event code.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;blacklist1&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;EventCode&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"4662"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Message&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"(?:&amp;lt;Data Name='SubjectUserName'&amp;gt;).+(?:\$)"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This is my inputs.conf file,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;[WinEventLog://Security]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;disabled&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;start_from&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;oldest&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;current_only&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;evt_resolve_ad_obj&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;checkpointInterval&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt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;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;DC_Events&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 10:42:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event4662-To-blacklist-user-name-in-Subject-User-name/m-p/522453#M88225</guid>
      <dc:creator>PratikPashte</dc:creator>
      <dc:date>2020-10-01T10:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Event4662: To blacklist $user name in Subject User name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event4662-To-blacklist-user-name-in-Subject-User-name/m-p/522462#M88228</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226281"&gt;@PratikPashte&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;check the regex using the regex command, remembering to escape special chars.&lt;/P&gt;&lt;P&gt;If you want an help, please share a message because I have an italian windows.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 11:31:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event4662-To-blacklist-user-name-in-Subject-User-name/m-p/522462#M88228</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-10-01T11:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Event4662: To blacklist $user name in Subject User name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event4662-To-blacklist-user-name-in-Subject-User-name/m-p/522466#M88230</link>
      <description>&lt;P&gt;Yes, i have escaped special character in the regex, do you suggest any more I need to tweak in the below regex.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;blacklist1&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;EventCode&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"4662"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Message&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"(?:&amp;lt;Data Name='SubjectUserName'&amp;gt;).+(?:\$)"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 11:48:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event4662-To-blacklist-user-name-in-Subject-User-name/m-p/522466#M88230</guid>
      <dc:creator>PratikPashte</dc:creator>
      <dc:date>2020-10-01T11:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Event4662: To blacklist $user name in Subject User name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event4662-To-blacklist-user-name-in-Subject-User-name/m-p/522467#M88231</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226281"&gt;@PratikPashte&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;please share a sample of your logs.&lt;/P&gt;&lt;P&gt;Could you display your regex using the Code Sample button?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 11:57:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event4662-To-blacklist-user-name-in-Subject-User-name/m-p/522467#M88231</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-10-01T11:57:52Z</dc:date>
    </item>
  </channel>
</rss>

