<?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: Rex formatting trouble in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Rex-formatting-trouble/m-p/569982#M198671</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please, try the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=_raw "assessment=(?&amp;lt;rating&amp;gt;\S+)"&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Oct 2021 05:45:01 GMT</pubDate>
    <dc:creator>danielcj</dc:creator>
    <dc:date>2021-10-07T05:45:01Z</dc:date>
    <item>
      <title>Rex formatting trouble</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-formatting-trouble/m-p/569964#M198666</link>
      <description>&lt;P&gt;Hello again Spelunkers!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So I have data that looks like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;assessment=normal [1.0]&lt;BR /&gt;assessment=normal [1.1]&lt;BR /&gt;assessment=suspect [0.75]&lt;BR /&gt;assessment=suspect [0.88]&lt;BR /&gt;assessment=bad [0.467]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I want a table column named rating that takes the "normal," "suspect," "bad" without the [###] after it. So I wrote the below thinking I can name the column rating and then capture any alpha characters and terminate at the white space between the word value and the [###] value. What would be the correct way of writing this? Thank you in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=raw_ "assessment=(?&amp;lt;rating&amp;gt;/\w/\s)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 22:53:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-formatting-trouble/m-p/569964#M198666</guid>
      <dc:creator>MikeB</dc:creator>
      <dc:date>2021-10-06T22:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Rex formatting trouble</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-formatting-trouble/m-p/569982#M198671</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please, try the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=_raw "assessment=(?&amp;lt;rating&amp;gt;\S+)"&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 05:45:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-formatting-trouble/m-p/569982#M198671</guid>
      <dc:creator>danielcj</dc:creator>
      <dc:date>2021-10-07T05:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Rex formatting trouble</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-formatting-trouble/m-p/570088#M198703</link>
      <description>&lt;P&gt;Thank you! This worked perfectly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 16:36:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-formatting-trouble/m-p/570088#M198703</guid>
      <dc:creator>MikeB</dc:creator>
      <dc:date>2021-10-07T16:36:17Z</dc:date>
    </item>
  </channel>
</rss>

