<?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: Using regex in field extraction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-regex-in-field-extraction/m-p/555121#M157567</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/230424"&gt;@TheBravoSierra&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please try this?&lt;/P&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[My_source_type]
REPORT-extension = extract_extension
.
.
.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;transforms.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[extract_extension]
REGEX =&amp;lt;Data Name='TargetFilename'&amp;gt;([^.]+)(?&amp;lt;extension&amp;gt;.\w+)&amp;lt;\/Data&amp;gt;
FORMAT = extension:$3&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: I have tried with below sample events.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TargetFilename=a.txt
TargetFilename=b.txt
TargetFilename="c.txt"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please share sample events in case this is &amp;nbsp;not working .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;▄︻̷̿┻̿═━一&lt;BR /&gt;&lt;BR /&gt;If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jun 2021 17:32:14 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2021-06-09T17:32:14Z</dc:date>
    <item>
      <title>Using regex in field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-regex-in-field-extraction/m-p/555111#M157563</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a field extraction(extension) that goes off an existing field(TargetFilename) but it isn't working. Any ideas? Tried with and without quotes.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For example:&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="279px" height="25px"&gt;xmlwineventlog : EXTRACT-extension&lt;/TD&gt;&lt;TD width="50px" height="25px"&gt;Inline&lt;/TD&gt;&lt;TD width="316px" height="25px"&gt;TargetFilename .*\.(?&amp;lt;extension&amp;gt;[\S\s+]*)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Works here in search:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;| rex field=TargetFilename ".*\.(?&amp;lt;extension&amp;gt;[\S\s+]*)"&lt;/DIV&gt;</description>
      <pubDate>Wed, 09 Jun 2021 14:58:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-regex-in-field-extraction/m-p/555111#M157563</guid>
      <dc:creator>TheBravoSierra</dc:creator>
      <dc:date>2021-06-09T14:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using regex in field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-regex-in-field-extraction/m-p/555116#M157565</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/230424"&gt;@TheBravoSierra&lt;/a&gt;&amp;nbsp;hello there.&lt;/P&gt;&lt;P&gt;I believe you are having some issues with your regex. Without knowing your events I could suggest something like this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=TargetFilename "\.(?&amp;lt;file_extension&amp;gt;[^\.]+$)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 15:41:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-regex-in-field-extraction/m-p/555116#M157565</guid>
      <dc:creator>alemarzu</dc:creator>
      <dc:date>2021-06-09T15:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using regex in field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-regex-in-field-extraction/m-p/555117#M157566</link>
      <description>&lt;P&gt;I apologize, the issue is not with the rex command but with adding it to Settings &amp;gt;&amp;gt; Fields &amp;gt;&amp;gt; Field Extractions.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I want it to be automatically extracted so this rex command is not needed in the search bar to populate the field.&lt;/P&gt;&lt;P&gt;Does that help?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 15:44:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-regex-in-field-extraction/m-p/555117#M157566</guid>
      <dc:creator>TheBravoSierra</dc:creator>
      <dc:date>2021-06-09T15:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using regex in field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-regex-in-field-extraction/m-p/555121#M157567</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/230424"&gt;@TheBravoSierra&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please try this?&lt;/P&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[My_source_type]
REPORT-extension = extract_extension
.
.
.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;transforms.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[extract_extension]
REGEX =&amp;lt;Data Name='TargetFilename'&amp;gt;([^.]+)(?&amp;lt;extension&amp;gt;.\w+)&amp;lt;\/Data&amp;gt;
FORMAT = extension:$3&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: I have tried with below sample events.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TargetFilename=a.txt
TargetFilename=b.txt
TargetFilename="c.txt"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please share sample events in case this is &amp;nbsp;not working .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;▄︻̷̿┻̿═━一&lt;BR /&gt;&lt;BR /&gt;If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 17:32:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-regex-in-field-extraction/m-p/555121#M157567</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-06-09T17:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using regex in field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-regex-in-field-extraction/m-p/555133#M157570</link>
      <description>&lt;DIV class="shared-eventsviewer-shared-rawfield"&gt;&lt;DIV class="raw-event normal  wrap "&gt;&amp;lt;&lt;SPAN class="t"&gt;Event&lt;/SPAN&gt; &lt;SPAN class="t"&gt;xmlns=&lt;/SPAN&gt;'omitted&amp;gt;&amp;lt;&lt;SPAN class="t"&gt;System&lt;/SPAN&gt;&amp;gt;&amp;lt;&lt;SPAN class="t"&gt;Provider&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Name=&lt;/SPAN&gt;'&lt;SPAN class="t"&gt;Microsoft-Windows-Sysmon&lt;/SPAN&gt;' &lt;SPAN class="t"&gt;Guid=&lt;/SPAN&gt;'{omitted}'&lt;SPAN class="t"&gt;/&lt;/SPAN&gt;&amp;gt;&amp;lt;&lt;SPAN class="t"&gt;EventID&lt;/SPAN&gt;&amp;gt;&lt;SPAN class="t"&gt;2&lt;/SPAN&gt;&amp;lt;&lt;SPAN class="t"&gt;/EventID&lt;/SPAN&gt;&amp;gt;&amp;lt;&lt;SPAN class="t"&gt;Version&lt;/SPAN&gt;&amp;gt;&lt;SPAN class="t"&gt;4&lt;/SPAN&gt;&amp;lt;&lt;SPAN class="t"&gt;/Version&lt;/SPAN&gt;&amp;gt;&amp;lt;&lt;SPAN class="t"&gt;Level&lt;/SPAN&gt;&amp;gt;&lt;SPAN class="t"&gt;4&lt;/SPAN&gt;&amp;lt;&lt;SPAN class="t"&gt;/Level&lt;/SPAN&gt;&amp;gt;&amp;lt;&lt;SPAN class="t"&gt;Task&lt;/SPAN&gt;&amp;gt;&lt;SPAN class="t"&gt;2&lt;/SPAN&gt;&amp;lt;&lt;SPAN class="t"&gt;/Task&lt;/SPAN&gt;&amp;gt;&amp;lt;&lt;SPAN class="t"&gt;Opcode&lt;/SPAN&gt;&amp;gt;&lt;SPAN class="t"&gt;0&lt;/SPAN&gt;&amp;lt;&lt;SPAN class="t"&gt;/Opcode&lt;/SPAN&gt;&amp;gt;&amp;lt;&lt;SPAN class="t"&gt;Keywords&lt;/SPAN&gt;&amp;gt;&lt;SPAN class="t"&gt;omitted&lt;/SPAN&gt;&amp;lt;&lt;SPAN class="t"&gt;/Keywords&lt;/SPAN&gt;&amp;gt;&amp;lt;&lt;SPAN class="t"&gt;TimeCreated&lt;/SPAN&gt; &lt;SPAN class="t"&gt;SystemTime=&lt;/SPAN&gt;'&lt;SPAN class="t"&gt;2021-06-09T16:31:46.813927400Z&lt;/SPAN&gt;'&lt;SPAN class="t"&gt;/&lt;/SPAN&gt;&amp;gt;&amp;lt;&lt;SPAN class="t"&gt;EventRecordID&lt;/SPAN&gt;&amp;gt;&lt;SPAN class="t"&gt;947063&lt;/SPAN&gt;&amp;lt;&lt;SPAN class="t"&gt;/EventRecordID&lt;/SPAN&gt;&amp;gt;&amp;lt;&lt;SPAN class="t"&gt;Correlation/&lt;/SPAN&gt;&amp;gt;&amp;lt;&lt;SPAN class="t"&gt;Execution&lt;/SPAN&gt; &lt;SPAN class="t"&gt;ProcessID=&lt;/SPAN&gt;'&lt;SPAN class="t"&gt;4824&lt;/SPAN&gt;' &lt;SPAN class="t"&gt;ThreadID=&lt;/SPAN&gt;'&lt;SPAN class="t"&gt;6932&lt;/SPAN&gt;'&lt;SPAN class="t"&gt;/&lt;/SPAN&gt;&amp;gt;&amp;lt;&lt;SPAN class="t"&gt;Channel&lt;/SPAN&gt;&amp;gt;&lt;SPAN class="t"&gt;Microsoft-Windows-Sysmon/Operational&lt;/SPAN&gt;&amp;lt;&lt;SPAN class="t"&gt;/Channel&lt;/SPAN&gt;&amp;gt;&amp;lt;&lt;SPAN class="t"&gt;Computer&lt;/SPAN&gt;&amp;gt;omitted&amp;lt;&lt;SPAN class="t"&gt;/Computer&lt;/SPAN&gt;&amp;gt;&amp;lt;&lt;SPAN class="t"&gt;Security&lt;/SPAN&gt; &lt;SPAN class="t"&gt;UserID=&lt;/SPAN&gt;'&lt;SPAN class="t"&gt;S-1-5-18&lt;/SPAN&gt;'&lt;SPAN class="t"&gt;/&lt;/SPAN&gt;&amp;gt;&amp;lt;&lt;SPAN class="t"&gt;/System&lt;/SPAN&gt;&amp;gt;&amp;lt;&lt;SPAN class="t"&gt;EventData&lt;/SPAN&gt;&amp;gt;&amp;lt;&lt;SPAN class="t"&gt;Data&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Name=&lt;/SPAN&gt;'&lt;SPAN class="t"&gt;RuleName&lt;/SPAN&gt;'&amp;gt;&amp;lt;&lt;SPAN class="t"&gt;/Data&lt;/SPAN&gt;&amp;gt;&amp;lt;&lt;SPAN class="t"&gt;Data&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Name=&lt;/SPAN&gt;'&lt;SPAN class="t"&gt;UtcTime&lt;/SPAN&gt;'&amp;gt;&lt;SPAN class="t"&gt;2021-06-09&lt;/SPAN&gt; &lt;SPAN class="t"&gt;16:31:46.813&lt;/SPAN&gt;&amp;lt;&lt;SPAN class="t"&gt;/Data&lt;/SPAN&gt;&amp;gt;&amp;lt;&lt;SPAN class="t"&gt;Data&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Name=&lt;/SPAN&gt;'&lt;SPAN class="t"&gt;ProcessGuid&lt;/SPAN&gt;'&amp;gt;{omitted}&amp;lt;&lt;SPAN class="t"&gt;/Data&lt;/SPAN&gt;&amp;gt;&amp;lt;&lt;SPAN class="t"&gt;Data&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Name=&lt;/SPAN&gt;'&lt;SPAN class="t"&gt;ProcessId&lt;/SPAN&gt;'&amp;gt;&lt;SPAN class="t"&gt;11932&lt;/SPAN&gt;&amp;lt;&lt;SPAN class="t"&gt;/Data&lt;/SPAN&gt;&amp;gt;&amp;lt;&lt;SPAN class="t"&gt;Data&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Name=&lt;/SPAN&gt;'&lt;SPAN class="t"&gt;Image&lt;/SPAN&gt;'&amp;gt;&lt;SPAN class="t"&gt;C:\Users\omitted\AppData\Local\Microsoft\Teams\current\Teams.exe&lt;/SPAN&gt;&amp;lt;&lt;SPAN class="t"&gt;/Data&lt;/SPAN&gt;&amp;gt;&amp;lt;&lt;SPAN class="t"&gt;Data&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Name=&lt;/SPAN&gt;'&lt;SPAN class="t"&gt;TargetFilename&lt;/SPAN&gt;'&amp;gt;&lt;SPAN class="t"&gt;C:\Users\omitted\AppData\Roaming\Microsoft\Windows\Recent\CustomDestinations\&lt;STRONG&gt;EJ5T0WEDS801S4OF2UEY.temp&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;lt;&lt;SPAN class="t"&gt;/Data&lt;/SPAN&gt;&amp;gt;&amp;lt;&lt;SPAN class="t"&gt;Data&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Name=&lt;/SPAN&gt;'&lt;SPAN class="t"&gt;CreationUtcTime&lt;/SPAN&gt;'&amp;gt;&lt;SPAN class="t"&gt;2020-04-21&lt;/SPAN&gt; &lt;SPAN class="t"&gt;21:00:25.187&lt;/SPAN&gt;&amp;lt;&lt;SPAN class="t"&gt;/Data&lt;/SPAN&gt;&amp;gt;&amp;lt;&lt;SPAN class="t"&gt;Data&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Name=&lt;/SPAN&gt;'&lt;SPAN class="t"&gt;PreviousCreationUtcTime&lt;/SPAN&gt;'&amp;gt;&lt;SPAN class="t"&gt;2021-06-09&lt;/SPAN&gt; &lt;SPAN class="t"&gt;16:31:46.802&lt;/SPAN&gt;&amp;lt;&lt;SPAN class="t"&gt;/Data&lt;/SPAN&gt;&amp;gt;&amp;lt;&lt;SPAN class="t"&gt;/EventData&lt;/SPAN&gt;&amp;gt;&amp;lt;&lt;SPAN class="t"&gt;/Event&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;BR /&gt;&lt;BR /&gt;So this one for example would extract .temp from the filename&amp;nbsp;EJ5T0WEDS801S4OF2UEY.temp&lt;BR /&gt;Thanks a bunch for the help.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 16:34:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-regex-in-field-extraction/m-p/555133#M157570</guid>
      <dc:creator>TheBravoSierra</dc:creator>
      <dc:date>2021-06-09T16:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using regex in field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-regex-in-field-extraction/m-p/555146#M157573</link>
      <description>&lt;P&gt;Are you sure&amp;nbsp;&lt;SPAN&gt;TargetFilename is an extracted field?&amp;nbsp; Do you get results from this query?&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=foo | table TargetFilename&lt;/LI-CODE&gt;&lt;P&gt;If not then the field is not extracted and you should try a different regex.&lt;/P&gt;&lt;P&gt;Share a sample event and we may be able to help more.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 17:14:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-regex-in-field-extraction/m-p/555146#M157573</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-06-09T17:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using regex in field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-regex-in-field-extraction/m-p/555151#M157575</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/230424"&gt;@TheBravoSierra&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please check my updated answer?&lt;/P&gt;&lt;P&gt;KV&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 17:31:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-regex-in-field-extraction/m-p/555151#M157575</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-06-09T17:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using regex in field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-regex-in-field-extraction/m-p/555162#M157579</link>
      <description>&lt;P&gt;Yes that worked, thank you!&lt;BR /&gt;&lt;BR /&gt;Could you also help me figure out why these won't work?&lt;/P&gt;&lt;P&gt;[extract_file]&lt;BR /&gt;REGEX =&amp;lt;Data Name='TargetFilename'&amp;gt;.*\\\\(?&amp;lt;file&amp;gt;[\S\s+]*)&amp;lt;\/Data&amp;gt;&lt;BR /&gt;FORMAT = file:$3&lt;/P&gt;&lt;P&gt;[extract_md5]&lt;BR /&gt;REGEX =&amp;lt;Data Name='Hashes'&amp;gt;MD5=(?&amp;lt;MD5&amp;gt;[a-fA-F0-9]{1,32}),SHA256=(?&amp;lt;SHA256&amp;gt;[a-zA-Z0-9]{33,64})&amp;lt;\/Data&amp;gt;&lt;BR /&gt;FORMAT = md5:$3&lt;/P&gt;&lt;P&gt;[extract_sha256]&lt;BR /&gt;REGEX =&amp;lt;Data Name='Hashes'&amp;gt;SHA256=(?&amp;lt;SHA256&amp;gt;[a-zA-Z0-9]{33,64})&amp;lt;\/Data&amp;gt;&lt;BR /&gt;FORMAT = sha256:$3&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TargetFilename&lt;/STRONG&gt;&amp;nbsp;data can use event previously provided.&amp;nbsp;&lt;BR /&gt;Example data with &lt;STRONG&gt;Hashes&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Event&lt;/SPAN&gt; &lt;SPAN class="t"&gt;xmlns=&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN class="t"&gt;&lt;A href="http://schemas.microsoft.com/win/2004/08/events/event" target="_blank" rel="noopener"&gt;http://schemas.microsoft.com/win/2004/08/events/event&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;'&amp;gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;System&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Provider&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Name=&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Microsoft-Windows-Sysmon&lt;/SPAN&gt;&lt;SPAN&gt;' &lt;/SPAN&gt;&lt;SPAN class="t"&gt;Guid=&lt;/SPAN&gt;&lt;SPAN&gt;'{&lt;/SPAN&gt;&lt;SPAN&gt;}'&lt;/SPAN&gt;&lt;SPAN class="t"&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;EventID&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;/EventID&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Version&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;5&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;/Version&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Level&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;4&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;/Level&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Task&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;/Task&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Opcode&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;/Opcode&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Keywords&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;/Keywords&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;TimeCreated&lt;/SPAN&gt; &lt;SPAN class="t"&gt;SystemTime=&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN class="t"&gt;2021-06-09T17:56:51.779403700Z&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN class="t"&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;EventRecordID&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;/EventRecordID&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Correlation/&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;/Data&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Data&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Name=&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN class="t"&gt;TerminalSessionId&lt;/SPAN&gt;&lt;SPAN&gt;'&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;/Data&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Data&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Name=&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN class="t"&gt;IntegrityLevel&lt;/SPAN&gt;&lt;SPAN&gt;'&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;System&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;/Data&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;STRONG&gt;&amp;lt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="t"&gt;Data&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Name=&lt;/SPAN&gt;'&lt;SPAN class="t"&gt;Hashes&lt;/SPAN&gt;'&amp;gt;&lt;SPAN class="t"&gt;MD5=E17F9289D944626831D63E4394C195B3&lt;/SPAN&gt;,&lt;SPAN class="t"&gt;SHA256=5F403F6BD0F55162B8E98786D1FB3475C0D414AB18128C270119E18AA53E4CDE&lt;/SPAN&gt;&amp;lt;&lt;SPAN class="t"&gt;/Data&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;&amp;gt;&lt;/STRONG&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Data&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Name=&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN class="t"&gt;ParentProcessGuid&lt;/SPAN&gt;&lt;SPAN&gt;'&amp;gt;{&lt;/SPAN&gt;&lt;SPAN&gt;}&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;/Data&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Data&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Name=&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN class="t"&gt;ParentProcessId&lt;/SPAN&gt;&lt;SPAN&gt;'&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;/Data&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Data&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Name=&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN class="t"&gt;ParentImage&lt;/SPAN&gt;&lt;SPAN&gt;'&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;C:\Program&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Files\Confer\RepMgr.exe&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;/Data&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Data&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Name=&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN class="t"&gt;ParentCommandLine&lt;/SPAN&gt;&lt;SPAN&gt;'&amp;gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;C:\Program&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Files\Confer\RepMgr.exe&lt;/SPAN&gt;&lt;SPAN&gt;"&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;/Data&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;/EventData&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;/Event&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 18:02:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-regex-in-field-extraction/m-p/555162#M157579</guid>
      <dc:creator>TheBravoSierra</dc:creator>
      <dc:date>2021-06-09T18:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using regex in field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-regex-in-field-extraction/m-p/555232#M157602</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/230424"&gt;@TheBravoSierra&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please try this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[extract_file]
REGEX =&amp;lt;Data Name='TargetFilename'&amp;gt;([^&amp;lt;]*)
FORMAT = file::$1

[extract_md5]
REGEX =&amp;lt;Data Name='Hashes'&amp;gt;MD5=([^,]+)
FORMAT = md5::$1

[extract_sha256]
REGEX =SHA256=([^&amp;lt;]+)
FORMAT = sha256::$1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;▄︻̷̿┻̿═━一&lt;BR /&gt;&lt;BR /&gt;If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 06:43:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-regex-in-field-extraction/m-p/555232#M157602</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-06-10T06:43:13Z</dc:date>
    </item>
  </channel>
</rss>

