<?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 Rex to filter To remove multiline log entry in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Rex-to-filter-To-remove-multiline-log-entry/m-p/545583#M154574</link>
    <description>&lt;P&gt;Please find the below single Log entry with multiple lines:&lt;/P&gt;&lt;P&gt;&amp;gt;Validation results&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Message 1) sucess: true&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Message 2) sucess: false&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Reason : All is an invalid log event type&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Message 3) sucess: true&amp;nbsp;&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;Need rex to fetch only false with reason lines.&lt;/P&gt;&lt;P&gt;Remaining needs to be ignored.&lt;/P&gt;&lt;P&gt;Tried below rex not getting proper results.&lt;/P&gt;&lt;P&gt;|Rex field=_raw "(?ms)(?&amp;lt;result&amp;gt;(.*)(?:true)"|table result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Mar 2021 13:33:14 GMT</pubDate>
    <dc:creator>Tijil480</dc:creator>
    <dc:date>2021-03-26T13:33:14Z</dc:date>
    <item>
      <title>Rex to filter To remove multiline log entry</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-to-filter-To-remove-multiline-log-entry/m-p/545583#M154574</link>
      <description>&lt;P&gt;Please find the below single Log entry with multiple lines:&lt;/P&gt;&lt;P&gt;&amp;gt;Validation results&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Message 1) sucess: true&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Message 2) sucess: false&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Reason : All is an invalid log event type&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Message 3) sucess: true&amp;nbsp;&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;Need rex to fetch only false with reason lines.&lt;/P&gt;&lt;P&gt;Remaining needs to be ignored.&lt;/P&gt;&lt;P&gt;Tried below rex not getting proper results.&lt;/P&gt;&lt;P&gt;|Rex field=_raw "(?ms)(?&amp;lt;result&amp;gt;(.*)(?:true)"|table result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 13:33:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-to-filter-To-remove-multiline-log-entry/m-p/545583#M154574</guid>
      <dc:creator>Tijil480</dc:creator>
      <dc:date>2021-03-26T13:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Rex to filter To remove multiline log entry</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-to-filter-To-remove-multiline-log-entry/m-p/545592#M154576</link>
      <description>&lt;P&gt;To just get the reason:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "(?ms)sucess: false[^\n]\n(?&amp;lt;field&amp;gt;[^\n]+)"&lt;/LI-CODE&gt;&lt;P&gt;To get both lines:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "(?ms)(?&amp;lt;field&amp;gt;[^\n]+sucess: false[^\n]+\n[^\n]+)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 13:37:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-to-filter-To-remove-multiline-log-entry/m-p/545592#M154576</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-03-26T13:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Rex to filter To remove multiline log entry</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-to-filter-To-remove-multiline-log-entry/m-p/545594#M154577</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "(?&amp;lt;result&amp;gt;false[\s\S]*)Message"
| table result&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 26 Mar 2021 13:42:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-to-filter-To-remove-multiline-log-entry/m-p/545594#M154577</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-03-26T13:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Rex to filter To remove multiline log entry</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-to-filter-To-remove-multiline-log-entry/m-p/545622#M154593</link>
      <description>&lt;P&gt;Still it fetches sucess: true&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 15:10:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-to-filter-To-remove-multiline-log-entry/m-p/545622#M154593</guid>
      <dc:creator>Tijil480</dc:creator>
      <dc:date>2021-03-26T15:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Rex to filter To remove multiline log entry</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-to-filter-To-remove-multiline-log-entry/m-p/545623#M154594</link>
      <description>&lt;P&gt;Did you try this?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 15:13:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-to-filter-To-remove-multiline-log-entry/m-p/545623#M154594</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-03-26T15:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Rex to filter To remove multiline log entry</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-to-filter-To-remove-multiline-log-entry/m-p/545628#M154596</link>
      <description>&lt;P&gt;regex101.com disagrees.&amp;nbsp;&lt;A href="https://regex101.com/r/deZogv/1" target="_blank"&gt;https://regex101.com/r/deZogv/1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 16:01:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-to-filter-To-remove-multiline-log-entry/m-p/545628#M154596</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-03-26T16:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Rex to filter To remove multiline log entry</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-to-filter-To-remove-multiline-log-entry/m-p/545629#M154597</link>
      <description>&lt;P&gt;Both queries are not returning any reaults&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 16:02:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-to-filter-To-remove-multiline-log-entry/m-p/545629#M154597</guid>
      <dc:creator>Tijil480</dc:creator>
      <dc:date>2021-03-26T16:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Rex to filter To remove multiline log entry</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-to-filter-To-remove-multiline-log-entry/m-p/545630#M154598</link>
      <description>&lt;P&gt;Perhaps if you could share some more realistic log data (anonymised of course) it might help us work out what may be going wrong&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 16:04:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-to-filter-To-remove-multiline-log-entry/m-p/545630#M154598</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-03-26T16:04:55Z</dc:date>
    </item>
  </channel>
</rss>

