<?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: How to extract fields from windows security log? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-from-windows-security-log/m-p/462004#M130252</link>
    <description>&lt;P&gt;Hi @andrewits,&lt;BR /&gt;
Spunk by itself extract all fields where there's = (e.g. EventCode=4723).&lt;BR /&gt;
Timestamp is automatically extracted.&lt;BR /&gt;
The other fields can be extracted using regexes.&lt;/P&gt;

&lt;P&gt;As first thing, install on your Search Head Splunk TA_Windows ( &lt;A href="https://splunkbase.splunk.com/app/742/"&gt;https://splunkbase.splunk.com/app/742/&lt;/A&gt; ) so you already have all the needed extractions; if you're not satisfied and you want more fields, use regexes, e.g. to exctract Account Name after Subject, use something like this (sorry if my logs are in italian!):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?ms)Soggetto:.*Nome account:\s+(?&amp;lt;Account_Name&amp;gt;\w+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;that you can see at &lt;A href="https://regex101.com/r/QD06Ok/1"&gt;https://regex101.com/r/QD06Ok/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Wed, 05 Feb 2020 15:17:18 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2020-02-05T15:17:18Z</dc:date>
    <item>
      <title>How to extract fields from windows security log?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-from-windows-security-log/m-p/462003#M130251</link>
      <description>&lt;P&gt;I am looking to extract fields from some windows security events. Much of the data I need ends up being in the "message" section of the log due to the way Windows logs are formatted.&lt;/P&gt;

&lt;P&gt;See the example below...ideally, each of the fields highlighted in yellow would be it's own field.&lt;/P&gt;

&lt;P&gt;Any ideas? Thank you!&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8324i7B06C74258DE8232/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 14:05:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-from-windows-security-log/m-p/462003#M130251</guid>
      <dc:creator>andrewits</dc:creator>
      <dc:date>2020-02-05T14:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields from windows security log?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-from-windows-security-log/m-p/462004#M130252</link>
      <description>&lt;P&gt;Hi @andrewits,&lt;BR /&gt;
Spunk by itself extract all fields where there's = (e.g. EventCode=4723).&lt;BR /&gt;
Timestamp is automatically extracted.&lt;BR /&gt;
The other fields can be extracted using regexes.&lt;/P&gt;

&lt;P&gt;As first thing, install on your Search Head Splunk TA_Windows ( &lt;A href="https://splunkbase.splunk.com/app/742/"&gt;https://splunkbase.splunk.com/app/742/&lt;/A&gt; ) so you already have all the needed extractions; if you're not satisfied and you want more fields, use regexes, e.g. to exctract Account Name after Subject, use something like this (sorry if my logs are in italian!):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?ms)Soggetto:.*Nome account:\s+(?&amp;lt;Account_Name&amp;gt;\w+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;that you can see at &lt;A href="https://regex101.com/r/QD06Ok/1"&gt;https://regex101.com/r/QD06Ok/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 15:17:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-from-windows-security-log/m-p/462004#M130252</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-02-05T15:17:18Z</dc:date>
    </item>
  </channel>
</rss>

