<?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 and separate 2 fields from my sample data? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-and-separate-2-fields-from-my-sample-data/m-p/173239#M49666</link>
    <description>&lt;P&gt;Rex can do the job.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=unparsed_message "(?P&amp;lt;process_path&amp;gt;.*)\\(?P&amp;lt;process&amp;gt;.*)$" | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 10 Mar 2015 13:45:08 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2015-03-10T13:45:08Z</dc:date>
    <item>
      <title>How to extract and separate 2 fields from my sample data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-and-separate-2-fields-from-my-sample-data/m-p/173238#M49665</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have this field in a WindowsEvent sourcetype in SPLUNK under the name "unparsed_message" and it contains some additional info and the info of my interest:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;C:\Windows\System32\conhost.exe
C:\Windows\System32\cscript.exe
C:\Windows\System32\cmd.exe
C:\Windows\System32\dllhost.exe
C:\Program Files\LogSecUF\bin\splunkd.exe
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So these entries are taken from 5 separate events. What I would need is to extract to separate fields from the lines above “process_path” and “process”. So the “process_path”  would indicate the path where the process starts (e.g. &lt;CODE&gt;C:\Windows\System32\&lt;/CODE&gt;) and the “process” field would indicate the process itself (e.g. cscript.exe). &lt;/P&gt;

&lt;P&gt;Any suggestions?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Kestutis&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:08:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-and-separate-2-fields-from-my-sample-data/m-p/173238#M49665</guid>
      <dc:creator>kestasm</dc:creator>
      <dc:date>2020-09-28T19:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract and separate 2 fields from my sample data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-and-separate-2-fields-from-my-sample-data/m-p/173239#M49666</link>
      <description>&lt;P&gt;Rex can do the job.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=unparsed_message "(?P&amp;lt;process_path&amp;gt;.*)\\(?P&amp;lt;process&amp;gt;.*)$" | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Mar 2015 13:45:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-and-separate-2-fields-from-my-sample-data/m-p/173239#M49666</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-03-10T13:45:08Z</dc:date>
    </item>
  </channel>
</rss>

