<?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: Need help with field-extractions on these events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-field-extractions-on-these-events/m-p/364528#M107550</link>
    <description>&lt;P&gt;You can extract all the fields with this regex:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;^(?P&amp;lt;f1&amp;gt;[^|]*)\|(?P&amp;lt;f2&amp;gt;[^|]*)\|(?P&amp;lt;name&amp;gt;[^|]*)\|((?P&amp;lt;phone&amp;gt;[^|]*)|((?P&amp;lt;address&amp;gt;[^|]*)\|(?P&amp;lt;info1&amp;gt;[^|]*)\|(?P&amp;lt;info2&amp;gt;[^|]*)))$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You will have to change the field names as you wish them to be, but it will extract the fields from either the first or second example lines. It's also fairly efficient.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Dec 2017 19:01:29 GMT</pubDate>
    <dc:creator>cpetterborg</dc:creator>
    <dc:date>2017-12-22T19:01:29Z</dc:date>
    <item>
      <title>Need help with field-extractions on these events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-field-extractions-on-these-events/m-p/364527#M107549</link>
      <description>&lt;P&gt;I have the following value:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Events&lt;/STRONG&gt;&lt;BR /&gt;
X|0001|NAME|PHONE&lt;BR /&gt;
X|0002|NAME|ADDRESS|INFO1|INFO2&lt;/P&gt;

&lt;P&gt;Based on the type (0001 or 0002) I want to extract different fields, is it possible ?&lt;/P&gt;

&lt;P&gt;Can I split the event value based on a common separator (pipe) ?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2017 16:28:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-field-extractions-on-these-events/m-p/364527#M107549</guid>
      <dc:creator>gabrieldiasrosa</dc:creator>
      <dc:date>2017-12-22T16:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with field-extractions on these events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-field-extractions-on-these-events/m-p/364528#M107550</link>
      <description>&lt;P&gt;You can extract all the fields with this regex:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;^(?P&amp;lt;f1&amp;gt;[^|]*)\|(?P&amp;lt;f2&amp;gt;[^|]*)\|(?P&amp;lt;name&amp;gt;[^|]*)\|((?P&amp;lt;phone&amp;gt;[^|]*)|((?P&amp;lt;address&amp;gt;[^|]*)\|(?P&amp;lt;info1&amp;gt;[^|]*)\|(?P&amp;lt;info2&amp;gt;[^|]*)))$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You will have to change the field names as you wish them to be, but it will extract the fields from either the first or second example lines. It's also fairly efficient.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2017 19:01:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-field-extractions-on-these-events/m-p/364528#M107550</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2017-12-22T19:01:29Z</dc:date>
    </item>
  </channel>
</rss>

