<?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: What will be the regex for the below? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382795#M168916</link>
    <description>&lt;P&gt;Let's cover that in the separate question you posted for that: &lt;A href="https://answers.splunk.com/answers/665799/how-to-compare-more-that-50-column-values-for-a-sp.html"&gt;https://answers.splunk.com/answers/665799/how-to-compare-more-that-50-column-values-for-a-sp.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Otherwise things get confusing &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jun 2018 07:44:28 GMT</pubDate>
    <dc:creator>FrankVl</dc:creator>
    <dc:date>2018-06-20T07:44:28Z</dc:date>
    <item>
      <title>What will be the regex for the below?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382782#M168903</link>
      <description>&lt;P&gt;I need a regex to capture Parameters list i.e. Name, Category, Publisher, Version,Build Release, Branch, Packaging Date,Size and their respective values as x11/session/xauth, System/X11, solaris , 1.0.7, 5.11,&lt;BR /&gt;
0.175.3.0.0.30.1483, 0.175.3.0.0.30.1483, August 21, 2015 05:37:42 PM, 100.68 kB respectively and give all values when using below query:&lt;/P&gt;

&lt;P&gt;table Parameter values&lt;/P&gt;

&lt;P&gt;Below is the sample data.&lt;/P&gt;

&lt;P&gt;Name: x11/session/xauth&lt;BR /&gt;
          Summary: xauth - X authority file utility&lt;BR /&gt;
      Description: The xauth program is used to edit and display the&lt;BR /&gt;
                   authorization information used in connecting to the X server.&lt;BR /&gt;
         Category: System/X11&lt;BR /&gt;
            State: Installed&lt;BR /&gt;
        Publisher: solaris&lt;BR /&gt;
          Version: 1.0.7&lt;BR /&gt;
    Build Release: 5.11&lt;BR /&gt;
           Branch: 0.175.3.0.0.30.1483&lt;BR /&gt;
   Packaging Date: August 21, 2015 05:37:42 PM &lt;BR /&gt;
             Size: 100.68 kB&lt;BR /&gt;
             FMRI: pkg://solaris/x11/session/&lt;A href="mailto:xauth@1.0.7"&gt;xauth@1.0.7&lt;/A&gt;,5.11-0.175.3.0.0.30.1483:20150821T173742Z&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 13:02:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382782#M168903</guid>
      <dc:creator>abhi04</dc:creator>
      <dc:date>2018-06-13T13:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: What will be the regex for the below?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382783#M168904</link>
      <description>&lt;P&gt;Assuming the event will have the same formatting as above:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search
| rex "Name\:\s(?&amp;lt;NAME&amp;gt;.[^\n]+)\sSummary\:\s(?&amp;lt;SUM&amp;gt;.[^\n]+)\sDescription\:\s(?&amp;lt;DES&amp;gt;.[^\.]+)\.\sCategory\:\s(?&amp;lt;CAT&amp;gt;.[^\n]+)\sState\:\s(?&amp;lt;STATE&amp;gt;.[^\n]+)\sPublisher\:\s(?&amp;lt;PUB&amp;gt;.[^\n]+)\sVersion\:\s(?&amp;lt;VER&amp;gt;.[^\n]+)\sBuild\sRelease\:(?&amp;lt;BUILD&amp;gt;.[^\n]+)\sBranch\:\s(?&amp;lt;BRANCH&amp;gt;.[^\n]+)\sPackaging\sDate\:(?&amp;lt;PDATE&amp;gt;.[^\n]+)\sSize\:(?&amp;lt;SIZE&amp;gt;.[^\n]+)\sFMRI\:\s(?&amp;lt;FMRI&amp;gt;.[^\n]+)"
| table NAME SUM DES CAT STATE PUB VER BUILD BRANCH PDATE FMRI
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Let us know if you need more.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 13:17:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382783#M168904</guid>
      <dc:creator>jodyfsu</dc:creator>
      <dc:date>2018-06-13T13:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: What will be the regex for the below?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382784#M168905</link>
      <description>&lt;P&gt;I’d suggest to use props and transforms to set up individual extractions for each field. That way the order of the fields does not matter.&lt;/P&gt;

&lt;P&gt;Might even work like this (not tested), which takes the part befor the first &lt;CODE&gt;:&lt;/CODE&gt; as the key and the part after (until end of line) as the value and keeps matching that for each line of the event.&lt;/P&gt;

&lt;P&gt;Props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yoursourcetype]
REPORT-extract-my-fields = extractmyfields
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[extractmyfields]
REGEX = (?m)^([^:]+):\s+(.*)$
FORMAT = $1::$2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Jun 2018 13:20:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382784#M168905</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-06-13T13:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: What will be the regex for the below?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382785#M168906</link>
      <description>&lt;P&gt;Hi jodyfsu,&lt;/P&gt;

&lt;P&gt;I want the different parameters name to be captured in a single variable and their values in a separate variable. So we will have below list of Parameters and their values.&lt;/P&gt;

&lt;P&gt;table Parameter Values&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 13:25:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382785#M168906</guid>
      <dc:creator>abhi04</dc:creator>
      <dc:date>2018-06-13T13:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: What will be the regex for the below?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382786#M168907</link>
      <description>&lt;P&gt;Make sure that your REPORT-extract-my-fields value in props.conf matches the stanza in Transforms.conf&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;in props.conf&lt;/STRONG&gt;&lt;BR /&gt;
REPORT-extract-my-fields = extractmyfields              &amp;lt;---&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;in transforms.conf&lt;/STRONG&gt;&lt;BR /&gt;
[extractmyfields]&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 13:43:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382786#M168907</guid>
      <dc:creator>lacastillo</dc:creator>
      <dc:date>2018-06-13T13:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: What will be the regex for the below?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382787#M168908</link>
      <description>&lt;P&gt;Sorry I missed that earlier. Here is what I came up with:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search
| rex "(?&amp;lt;P1&amp;gt;Name\:)\s(?&amp;lt;NAME&amp;gt;.[^\n]+)\s(?&amp;lt;P2&amp;gt;Summary\:)\s(?&amp;lt;SUM&amp;gt;.[^\n]+)\s(?&amp;lt;P3&amp;gt;Description\:)\s(?&amp;lt;DES&amp;gt;.[^\.]+)\.\s(?&amp;lt;P4&amp;gt;Category\:)\s(?&amp;lt;CAT&amp;gt;.[^\n]+)\s(?&amp;lt;P5&amp;gt;State\:)\s(?&amp;lt;STATE&amp;gt;.[^\n]+)\s(?&amp;lt;P6&amp;gt;Publisher\:)\s(?&amp;lt;PUB&amp;gt;.[^\n]+)\s(?&amp;lt;P7&amp;gt;Version\:)\s(?&amp;lt;VER&amp;gt;.[^\n]+)\s(?&amp;lt;P8&amp;gt;Build\sRelease\:)\s(?&amp;lt;BUILD&amp;gt;.[^\n]+)\s(?&amp;lt;P9&amp;gt;Branch\:)\s(?&amp;lt;BRANCH&amp;gt;.[^\n]+)\s(?&amp;lt;P10&amp;gt;Packaging\sDate\:)\s(?&amp;lt;PDATE&amp;gt;.[^\n]+)\s(?&amp;lt;P11&amp;gt;Size\:)\s(?&amp;lt;SIZE&amp;gt;.[^\n]+)\s(?&amp;lt;P12&amp;gt;FMRI\:)\s(?&amp;lt;FMRI&amp;gt;.[^\n]+)"
| table P1 NAME P2 SUM P3 DES P4 CAT P5 STATE P6 PUB P7 VER P8 BUILD P9 BRANCH P10 PDATE P11 SIZE P12 FMRI
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Jun 2018 13:47:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382787#M168908</guid>
      <dc:creator>jodyfsu</dc:creator>
      <dc:date>2018-06-13T13:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: What will be the regex for the below?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382788#M168909</link>
      <description>&lt;P&gt;Not sure why you would want that (as you will effectively loose a proper connection between parameter and its value), but you could try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex max_match=0 "(?m)^(?&amp;lt;Parameters&amp;gt;[^:]+):\s+(?&amp;lt;Values&amp;gt;.*)$"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Jun 2018 13:49:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382788#M168909</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-06-13T13:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: What will be the regex for the below?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382789#M168910</link>
      <description>&lt;P&gt;Thanks for catching that. Fixed it in my answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 13:52:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382789#M168910</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-06-13T13:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: What will be the regex for the below?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382790#M168911</link>
      <description>&lt;P&gt;Hi @FrankVI&lt;/P&gt;

&lt;P&gt;This does not work. I want to use below command&lt;/P&gt;

&lt;P&gt;chart limit=0 values(abc) over Parameter by Server_Name&lt;/P&gt;

&lt;P&gt;So I need all parameters name in the "Parameter" and their values in the "abc"&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 10:59:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382790#M168911</guid>
      <dc:creator>abhi04</dc:creator>
      <dc:date>2018-06-14T10:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: What will be the regex for the below?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382791#M168912</link>
      <description>&lt;P&gt;Then just replace &lt;CODE&gt;Values&lt;/CODE&gt; in my regex with &lt;CODE&gt;abc&lt;/CODE&gt;?&lt;/P&gt;

&lt;P&gt;If I misunderstood what you want, please provide some mockup of the output you are looking for, based on your example.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 11:04:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382791#M168912</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-06-14T11:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: What will be the regex for the below?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382792#M168913</link>
      <description>&lt;P&gt;Below is the mock-up.The regex you provided does not even after replacing.&lt;/P&gt;

&lt;P&gt;Parameter. Server1                                  server2&lt;BR /&gt;&lt;BR /&gt;
Name.         X11/session/xauth.         X11/library/toolkit&lt;BR /&gt;
Category.     System/x11.                     System/core&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 11:41:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382792#M168913</guid>
      <dc:creator>abhi04</dc:creator>
      <dc:date>2018-06-14T11:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: What will be the regex for the below?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382793#M168914</link>
      <description>&lt;P&gt;Well, earlier you stated you wanted all parameter values in 1 variable and the values in another. That is exactly what my regex does. But as mentioned: that is probably not very useful, as it will be very difficult to work with those multivalued fields.&lt;/P&gt;

&lt;P&gt;Better extract each parameter and its value as separate fields (as suggested by @jodyfsu) and then create a stats command that captures the values() of each field by Server_Name.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 11:57:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382793#M168914</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-06-14T11:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: What will be the regex for the below?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382794#M168915</link>
      <description>&lt;P&gt;Yes @FrankVI, I agree with you but then if I use stats command to list the values, will I be able to compare those values for different server and display message "same" "not same"&lt;BR /&gt;
if any of the parameter values for any one server is different. If yes, how?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 07:13:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382794#M168915</guid>
      <dc:creator>abhi04</dc:creator>
      <dc:date>2018-06-20T07:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: What will be the regex for the below?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382795#M168916</link>
      <description>&lt;P&gt;Let's cover that in the separate question you posted for that: &lt;A href="https://answers.splunk.com/answers/665799/how-to-compare-more-that-50-column-values-for-a-sp.html"&gt;https://answers.splunk.com/answers/665799/how-to-compare-more-that-50-column-values-for-a-sp.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Otherwise things get confusing &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 07:44:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382795#M168916</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-06-20T07:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: What will be the regex for the below?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382796#M168917</link>
      <description>&lt;P&gt;@FrankVI thats what my mock table shows. "Name" and "Category" are different parameters stored in "Parameter" variable.&lt;BR /&gt;
"X11/session/xauth" ,"X11/library/toolkit","System/x11" and "System/core" are the values to be stored in "abc" &lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 12:28:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382796#M168917</guid>
      <dc:creator>abhi04</dc:creator>
      <dc:date>2018-06-22T12:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: What will be the regex for the below?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382797#M168918</link>
      <description>&lt;P&gt;@FrankVI&lt;BR /&gt;
The below regex works in the regex site101 but not in splunk, it is only catching the parameter as Name and Description and not others. Any idea why?&lt;/P&gt;

&lt;P&gt;| rex max_match=0 "(?m)^(?[^:]+):\s+(?.*)$"&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 13:36:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382797#M168918</guid>
      <dc:creator>abhi04</dc:creator>
      <dc:date>2018-07-02T13:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: What will be the regex for the below?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382798#M168919</link>
      <description>&lt;P&gt;Can you please post the query as code using the 101010 button or by wrapping it in ` characters? Now I think some parts have disappeared.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 13:55:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382798#M168919</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-07-02T13:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: What will be the regex for the below?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382799#M168920</link>
      <description>&lt;P&gt;Hi @jodyfsu,&lt;/P&gt;

&lt;P&gt;what if the description have more than one full stop.The one you provided above works for only a single sentence in description. Below is the sample data:&lt;/P&gt;

&lt;P&gt;Name: x11/library/toolkit/libxt&lt;BR /&gt;
          Summary: libXt - X Toolkit Intrinsics library&lt;BR /&gt;
      Description: The X Toolkit Intrinsics are a programming library tailored&lt;BR /&gt;
                   to the special requirements of user interface construction&lt;BR /&gt;
                   within a network window system, specifically the X Window&lt;BR /&gt;
                   System. The X Toolkit Intrinsics and a widget set such as the&lt;BR /&gt;
                   Athena Widgets (Xaw) or Motif (Xm) make up an X Toolkit.&lt;BR /&gt;
         Category: System/X11&lt;BR /&gt;
            State: Installed&lt;BR /&gt;
        Publisher: solaris&lt;BR /&gt;
          Version: 1.1.4&lt;BR /&gt;
    Build Release: 5.11&lt;BR /&gt;
           Branch: 0.175.3.0.0.30.1483&lt;BR /&gt;
   Packaging Date: August 21, 2015 05:36:35 PM &lt;BR /&gt;
             Size: 2.86 MB&lt;BR /&gt;
             FMRI: pkg://solaris/x11/library/toolkit/&lt;A href="mailto:libxt@1.1.4"&gt;libxt@1.1.4&lt;/A&gt;,5.11-0.175.3.0.0.30.1483:20150821T173635Z&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2018 10:39:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382799#M168920</guid>
      <dc:creator>abhi04</dc:creator>
      <dc:date>2018-07-04T10:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: What will be the regex for the below?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382800#M168921</link>
      <description>&lt;P&gt;Hello @abhi04, so here is an updated regex:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "Name\:\s(?&amp;lt;NAME&amp;gt;.[^\n]+)\nSummary\:\s(?&amp;lt;SUM&amp;gt;.[^\n]+)\nDescription\:\s(?&amp;lt;DES&amp;gt;.+\n.+\n.+\n.+\n.+)\nCategory\:\s(?&amp;lt;CAT&amp;gt;.[^\n]+)\nState\:\s(?&amp;lt;STATE&amp;gt;.[^\n]+)\nPublisher\:\s(?&amp;lt;PUB&amp;gt;.[^\n]+)\nVersion\:\s(?&amp;lt;VER&amp;gt;.[^\n]+)\nBuild\sRelease\:(?&amp;lt;BUILD&amp;gt;.[^\n]+)\nBranch\:\s(?&amp;lt;BRANCH&amp;gt;.[^\n]+)\nPackaging\sDate\:(?&amp;lt;PDATE&amp;gt;.[^\n]+)\nSize\:(?&amp;lt;SIZE&amp;gt;.[^\n]+)\nFMRI\:\s(?&amp;lt;FMRI&amp;gt;.[^\n]+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Assuming the number of line breaks remains the same, the above will work. If it varies on each event we will need to come up with another plan for the Description field.  In the DES line each "\n" is a line break or carriage return. If the DES field varies we may need to figure out a way to do some OR "|" lookups.  &lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2018 11:31:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382800#M168921</guid>
      <dc:creator>jodyfsu</dc:creator>
      <dc:date>2018-07-04T11:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: What will be the regex for the below?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382801#M168922</link>
      <description>&lt;P&gt;The number of line breaks is not same in Description field.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2018 11:45:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-will-be-the-regex-for-the-below/m-p/382801#M168922</guid>
      <dc:creator>abhi04</dc:creator>
      <dc:date>2018-07-04T11:45:54Z</dc:date>
    </item>
  </channel>
</rss>

