<?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 Values with Pipe as String in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Values-with-Pipe-as-String/m-p/355492#M174611</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have events which look like that:&lt;BR /&gt;
a=test1 b=test2 func=test3|test4|test5&lt;BR /&gt;
and&lt;BR /&gt;
a=test1 b=test2 func=test5&lt;/P&gt;

&lt;P&gt;if a make a search on func i get results like test3 or test5, but i want "test3|test4|test5" and test5 as  result.&lt;BR /&gt;
I tried to extract a new Field but its not working like i want it. It doesnt work with a delimiter space cause i will get the other key=value pairs too in this extracted field. And I dont really know how to make the regex extracted field to do this.&lt;/P&gt;

&lt;P&gt;regards&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jun 2017 07:45:44 GMT</pubDate>
    <dc:creator>andimak</dc:creator>
    <dc:date>2017-06-16T07:45:44Z</dc:date>
    <item>
      <title>Values with Pipe as String</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Values-with-Pipe-as-String/m-p/355492#M174611</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have events which look like that:&lt;BR /&gt;
a=test1 b=test2 func=test3|test4|test5&lt;BR /&gt;
and&lt;BR /&gt;
a=test1 b=test2 func=test5&lt;/P&gt;

&lt;P&gt;if a make a search on func i get results like test3 or test5, but i want "test3|test4|test5" and test5 as  result.&lt;BR /&gt;
I tried to extract a new Field but its not working like i want it. It doesnt work with a delimiter space cause i will get the other key=value pairs too in this extracted field. And I dont really know how to make the regex extracted field to do this.&lt;/P&gt;

&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 07:45:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Values-with-Pipe-as-String/m-p/355492#M174611</guid>
      <dc:creator>andimak</dc:creator>
      <dc:date>2017-06-16T07:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Values with Pipe as String</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Values-with-Pipe-as-String/m-p/355493#M174612</link>
      <description>&lt;P&gt;In a search pipeline, you can do this to turn those three values into single values in a multivalue field...&lt;/P&gt;

&lt;P&gt;| makemv delim="|" func&lt;/P&gt;

&lt;P&gt;Here's a related answer - &lt;A href="https://answers.splunk.com/answers/174880/how-to-extract-pipe-separated-subfields-from-a-fie.html"&gt;https://answers.splunk.com/answers/174880/how-to-extract-pipe-separated-subfields-from-a-fie.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hmmm.  The pipes should not interfere with a normal extraction or a normal search.  &lt;/P&gt;

&lt;P&gt;Just be aware that with any command using regular expressions (regex, match, etc) you will need to escape the pipe character, or it will be interpreted as "OR".&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 12:01:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Values-with-Pipe-as-String/m-p/355493#M174612</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-06-16T12:01:53Z</dc:date>
    </item>
  </channel>
</rss>

