<?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 Field extraction in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Field-extraction/m-p/392827#M6353</link>
    <description>&lt;P&gt;My actual data is 'ProcessName'&amp;gt;C:\Windows\System32\lsass.exe &lt;BR /&gt;
Wanting to extract the field from C:\Windows\System32\lsass.exe as a field called Process&lt;BR /&gt;
kindly assist get me a query that fetchs the result as "C:\Windows\System32\lsass.exe" and ignore ProcessName'&amp;gt; And  &lt;/P&gt;</description>
    <pubDate>Mon, 08 Apr 2019 09:32:28 GMT</pubDate>
    <dc:creator>thiru1</dc:creator>
    <dc:date>2019-04-08T09:32:28Z</dc:date>
    <item>
      <title>Field extraction</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Field-extraction/m-p/392827#M6353</link>
      <description>&lt;P&gt;My actual data is 'ProcessName'&amp;gt;C:\Windows\System32\lsass.exe &lt;BR /&gt;
Wanting to extract the field from C:\Windows\System32\lsass.exe as a field called Process&lt;BR /&gt;
kindly assist get me a query that fetchs the result as "C:\Windows\System32\lsass.exe" and ignore ProcessName'&amp;gt; And  &lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 09:32:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Field-extraction/m-p/392827#M6353</guid>
      <dc:creator>thiru1</dc:creator>
      <dc:date>2019-04-08T09:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Field-extraction/m-p/392828#M6354</link>
      <description>&lt;P&gt;If the separator between key and value were and &lt;CODE&gt;=&lt;/CODE&gt; sign, Splunk would already have figured that out.  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;For your problem, though, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=Process "'ProcessName'&amp;gt;(?&amp;lt;ProcessName&amp;gt;.*)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;After that you'll have a field named "ProcessName" just like you want.&lt;/P&gt;

&lt;P&gt;Happy Splunking,&lt;BR /&gt;
Rich&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 12:34:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Field-extraction/m-p/392828#M6354</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2019-04-08T12:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Field-extraction/m-p/392829#M6355</link>
      <description>&lt;P&gt;Give this a try: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   ... 
| rex field=mydata "^.*&amp;gt;(?&amp;lt;Process&amp;gt;.*)$"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will run anywhere:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval mydata="'ProcessName'&amp;gt;C:\Windows\System32\lsass.exe"
| rex field=mydata "^.*&amp;gt;(?&amp;lt;Process&amp;gt;.*)$"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The regular expression will pull out any characters after the "&amp;gt;" and before the end of the string as the Process field. &lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 12:40:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Field-extraction/m-p/392829#M6355</guid>
      <dc:creator>grittonc</dc:creator>
      <dc:date>2019-04-08T12:40:47Z</dc:date>
    </item>
  </channel>
</rss>

