<?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: extract until a newline in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-rex-extract-from-text-that-starts-with-a-newline-and-ends/m-p/599657#M208720</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/246273"&gt;@spencerneal&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;the request is just a little vague because if in your events you have more lines, you'll have more extractions, is this what you want?&lt;/P&gt;&lt;P&gt;Otherwise please give more details in extraction and, please, share some sample of your data highlighting the parts to extract.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Sat, 28 May 2022 08:59:43 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-05-28T08:59:43Z</dc:date>
    <item>
      <title>How to rex extract from text that starts with a newline and ends with a newline?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-rex-extract-from-text-that-starts-with-a-newline-and-ends/m-p/599641#M208714</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I&amp;nbsp;am trying to figure out how to rex extract from text that starts with a newline and ends with a newline.&amp;nbsp; For example:&amp;nbsp; \\nCAR PRODUCT: bat mobile\n&lt;/P&gt;
&lt;P&gt;Does anyone know a good way around this situation so that only "bat mobile" is extracted?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help.&lt;/P&gt;
&lt;P&gt;Spencer&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 05:03:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-rex-extract-from-text-that-starts-with-a-newline-and-ends/m-p/599641#M208714</guid>
      <dc:creator>spencerneal</dc:creator>
      <dc:date>2022-05-31T05:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: extract until a newline</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-rex-extract-from-text-that-starts-with-a-newline-and-ends/m-p/599657#M208720</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/246273"&gt;@spencerneal&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;the request is just a little vague because if in your events you have more lines, you'll have more extractions, is this what you want?&lt;/P&gt;&lt;P&gt;Otherwise please give more details in extraction and, please, share some sample of your data highlighting the parts to extract.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 28 May 2022 08:59:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-rex-extract-from-text-that-starts-with-a-newline-and-ends/m-p/599657#M208720</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-05-28T08:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: extract until a newline</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-rex-extract-from-text-that-starts-with-a-newline-and-ends/m-p/599661#M208721</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Giuseppe,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for your help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am trying to rex&amp;nbsp;&lt;/SPAN&gt;extract "bat mobile" from something similar to the following raw text.&lt;/P&gt;&lt;P&gt;As you can see there is a newline following "bat mobile". &amp;nbsp;I am having trouble figuring out how to rex "bat mobile" only and not get everything after "bat mobile".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;example:&amp;nbsp; \\nDAMAGED PRODUCT: bat mobile\nmail:sneal@gmail.com&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;my current code is: &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;|rex “DAMAGED PRODUCT:&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;(?P&amp;lt;SWN&amp;gt;.+?)"&lt;/P&gt;&lt;P&gt;However, I don't know what to put after the second parentheses so that rex will only extract "bat mobile".&lt;/P&gt;&lt;P&gt;I hope my thought makes sense.&lt;/P&gt;&lt;P&gt;Once again, thank you greatly for your help.&lt;/P&gt;&lt;P&gt;Spencer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 May 2022 13:35:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-rex-extract-from-text-that-starts-with-a-newline-and-ends/m-p/599661#M208721</guid>
      <dc:creator>spencerneal</dc:creator>
      <dc:date>2022-05-28T13:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: extract until a newline</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-rex-extract-from-text-that-starts-with-a-newline-and-ends/m-p/599666#M208723</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/246273"&gt;@spencerneal&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;as I said, the only way I can help you is that you share some samples (not one!) of your logs: eventually mask sensible contents but don't change the log structure.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 28 May 2022 15:06:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-rex-extract-from-text-that-starts-with-a-newline-and-ends/m-p/599666#M208723</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-05-28T15:06:52Z</dc:date>
    </item>
  </channel>
</rss>

