<?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: What is the workaround for the missing Subject_Account_Name field in WMI Windows security events? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-workaround-for-the-missing-Subject-Account-Name/m-p/36551#M6697</link>
    <description>&lt;P&gt;You can either use inline-extraction of that field using the &lt;CODE&gt;rex&lt;/CODE&gt; command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "(?ims)^subject:.+?account name:\s+(?&amp;lt;Subject_Account_Name&amp;gt;[^\v]+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or you can add this regex to the sourcetype &lt;CODE&gt;[WMI:WinEventLog:Security]&lt;/CODE&gt; in props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WMI:WinEventLog:Security]
EXTRACT-subjectaccountname = (?ims)^subject:.+?account name:\s+(?&amp;lt;Subject_Account_Name&amp;gt;[^\v]+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 16 Aug 2012 10:35:53 GMT</pubDate>
    <dc:creator>ziegfried</dc:creator>
    <dc:date>2012-08-16T10:35:53Z</dc:date>
    <item>
      <title>What is the workaround for the missing Subject_Account_Name field in WMI Windows security events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-workaround-for-the-missing-Subject-Account-Name/m-p/36550#M6696</link>
      <description>&lt;P&gt;Windows security event 4724 and 4738 set Subject_Account_Name if you get these events through Windows universal forwarder locally.   But if you do it through WMI, the Subject_Account_Name is set to NULL.  Instead, you can see the user name in Account_Name field for both Subject and Target as multiple values.  In that case, you do not know which user name is for Subject and which user name is for Target user.&lt;/P&gt;

&lt;P&gt;Is there any workaround on this?&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:16:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-is-the-workaround-for-the-missing-Subject-Account-Name/m-p/36550#M6696</guid>
      <dc:creator>tonopahtaos</dc:creator>
      <dc:date>2020-09-28T12:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: What is the workaround for the missing Subject_Account_Name field in WMI Windows security events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-workaround-for-the-missing-Subject-Account-Name/m-p/36551#M6697</link>
      <description>&lt;P&gt;You can either use inline-extraction of that field using the &lt;CODE&gt;rex&lt;/CODE&gt; command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "(?ims)^subject:.+?account name:\s+(?&amp;lt;Subject_Account_Name&amp;gt;[^\v]+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or you can add this regex to the sourcetype &lt;CODE&gt;[WMI:WinEventLog:Security]&lt;/CODE&gt; in props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WMI:WinEventLog:Security]
EXTRACT-subjectaccountname = (?ims)^subject:.+?account name:\s+(?&amp;lt;Subject_Account_Name&amp;gt;[^\v]+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Aug 2012 10:35:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-is-the-workaround-for-the-missing-Subject-Account-Name/m-p/36551#M6697</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2012-08-16T10:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: What is the workaround for the missing Subject_Account_Name field in WMI Windows security events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-workaround-for-the-missing-Subject-Account-Name/m-p/36552#M6698</link>
      <description>&lt;P&gt;The second solution works perfectly for me.  Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2012 18:30:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-is-the-workaround-for-the-missing-Subject-Account-Name/m-p/36552#M6698</guid>
      <dc:creator>tonopahtaos</dc:creator>
      <dc:date>2012-08-16T18:30:00Z</dc:date>
    </item>
  </channel>
</rss>

