<?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: field extraction in splunk in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/field-extraction-in-splunk/m-p/40423#M9318</link>
    <description>&lt;P&gt;i just added (?m) to the regular expression; see if that will get all the privileges.  If not, try (?ms) at the beginning of the regular expression.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Dec 2011 22:12:16 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2011-12-28T22:12:16Z</dc:date>
    <item>
      <title>field extraction in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/field-extraction-in-splunk/m-p/40420#M9315</link>
      <description>&lt;P&gt;I have a field called: Message which contain below type of data.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   MESSAGE
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Special privileges assigned to new logon: User Name: XXXXXXX  Domain: XXXX  Logon ID:    (0x0,0x56099C) Privileges: SeSecurityPrivilege SeBackupPrivilege SeRestorePrivilege SeTakeOwnershipPrivilege SeDebugPrivilege SeSystemEnvironmentPrivilege SeLoadDriverPrivilege SeImpersonatePrivilege &lt;/P&gt;

&lt;P&gt;Special privileges assigned to new logon. Subject: Security ID:  S-1-5-21-781236058-484112869-721245543-19519 Account Name: XXXX Account Domain: XXXX  Logon ID: 0x56d9cb9d Privileges:  SeSecurityPrivilege SeBackupPrivilege SeRestorePrivilege SeTakeOwnershipPrivilege SeDebugPrivilege SeSystemEnvironmentPrivilege SeLoadDriverPrivilege SeImpersonatePrivilege&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;How can i extract Privileges information in to an another field.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 27 Dec 2011 11:00:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/field-extraction-in-splunk/m-p/40420#M9315</guid>
      <dc:creator>Ravan</dc:creator>
      <dc:date>2011-12-27T11:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: field extraction in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/field-extraction-in-splunk/m-p/40421#M9316</link>
      <description>&lt;P&gt;One way is to use the rex command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search here&amp;gt; | rex field=Message "(?m)Privileges:\s(?&amp;lt;Privileges&amp;gt;.*)" | &amp;lt;whatever you want do next&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will create a field named Privileges that contains everything following the word Privileges to the end of the event.  The rex command creates a temporary field.  If you want a permanent field, you could use the Interactive Field Extractor, or edit props.conf, with the same regular expression that I have given above.&lt;/P&gt;

&lt;P&gt;Of course, this creates a Privileges field that is just a big string.  If you want to create a multi-valued field, where each privilege is a separate value, that is a little different.  What do you want to do with this field?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2011 12:00:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/field-extraction-in-splunk/m-p/40421#M9316</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2011-12-27T12:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: field extraction in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/field-extraction-in-splunk/m-p/40422#M9317</link>
      <description>&lt;P&gt;karma,&lt;/P&gt;

&lt;P&gt;Thanks for the update , This information  i am  extracting form a windows security log events(576/4672) to find out the user who logged in is an Admin or Not.&lt;/P&gt;

&lt;P&gt;Please let me know if there is an other way to track admin logons...&lt;/P&gt;

&lt;P&gt;And the above query is giving only first privileges , is there is any flag or smtng which give all privileges(i.e up to end of the log)&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2011 13:17:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/field-extraction-in-splunk/m-p/40422#M9317</guid>
      <dc:creator>Ravan</dc:creator>
      <dc:date>2011-12-27T13:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: field extraction in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/field-extraction-in-splunk/m-p/40423#M9318</link>
      <description>&lt;P&gt;i just added (?m) to the regular expression; see if that will get all the privileges.  If not, try (?ms) at the beginning of the regular expression.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2011 22:12:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/field-extraction-in-splunk/m-p/40423#M9318</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2011-12-28T22:12:16Z</dc:date>
    </item>
  </channel>
</rss>

