<?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 Can anyone help me split this field into 2? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-help-me-split-this-field-into-2/m-p/436584#M124407</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;temp=C:\Program Files\SplunkUniversalForwarder\bin\splunk-powershell.exe
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;to...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;path=C:\Program Files\SplunkUniversalForwarder\bin
process=splunk-powershell.exe
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;this is what I reach...&lt;/P&gt;

&lt;P&gt;I'm stuck at the regex.&lt;/P&gt;

&lt;P&gt;Any other method is also appreciated &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=temp "(?[^\\\/]*)$"    |regex path=!temp    |table FILENAME,PATH
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 17 Oct 2018 11:01:37 GMT</pubDate>
    <dc:creator>hok2010</dc:creator>
    <dc:date>2018-10-17T11:01:37Z</dc:date>
    <item>
      <title>Can anyone help me split this field into 2?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-help-me-split-this-field-into-2/m-p/436584#M124407</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;temp=C:\Program Files\SplunkUniversalForwarder\bin\splunk-powershell.exe
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;to...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;path=C:\Program Files\SplunkUniversalForwarder\bin
process=splunk-powershell.exe
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;this is what I reach...&lt;/P&gt;

&lt;P&gt;I'm stuck at the regex.&lt;/P&gt;

&lt;P&gt;Any other method is also appreciated &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=temp "(?[^\\\/]*)$"    |regex path=!temp    |table FILENAME,PATH
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Oct 2018 11:01:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-help-me-split-this-field-into-2/m-p/436584#M124407</guid>
      <dc:creator>hok2010</dc:creator>
      <dc:date>2018-10-17T11:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone help me split this field into 2?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-help-me-split-this-field-into-2/m-p/436585#M124408</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?&amp;lt;path&amp;gt;.*)\\(?&amp;lt;file&amp;gt;[^\\]*)$
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Oct 2018 11:21:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-help-me-split-this-field-into-2/m-p/436585#M124408</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2018-10-17T11:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone help me split this field into 2?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-help-me-split-this-field-into-2/m-p/436586#M124409</link>
      <description>&lt;P&gt;(pls check this.. very manual rex,.. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval temp="C:\Program Files\SplunkUniversalForwarder\bin\splunk-powershell.exe" 
| rex field=temp "(?P&amp;lt;path&amp;gt;\w+\W+\w+\W\w+\W\w+\W\w+\W)(?P&amp;lt;fileName&amp;gt;\w+\W\w+\W\w+)"
| table path fileName
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&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/5958i05658AFF5EF8658C/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;PS - if it resolves your task, pls accept this as answer&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 12:16:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-help-me-split-this-field-into-2/m-p/436586#M124409</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2018-10-17T12:16:02Z</dc:date>
    </item>
  </channel>
</rss>

