<?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 filter text using rex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/filter-text-using-rex/m-p/643143#M222788</link>
    <description>&lt;P&gt;i can't extract the exact text using rex command .&amp;nbsp;&lt;BR /&gt;e.g&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;User:&amp;nbsp; This is my user Name\n&amp;nbsp; This is just some random text&lt;BR /&gt;&lt;BR /&gt;i want to extract a new filed which values is "This is my user Name"&lt;/P&gt;</description>
    <pubDate>Fri, 12 May 2023 06:50:02 GMT</pubDate>
    <dc:creator>nwayoonyanmin</dc:creator>
    <dc:date>2023-05-12T06:50:02Z</dc:date>
    <item>
      <title>filter text using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/filter-text-using-rex/m-p/643143#M222788</link>
      <description>&lt;P&gt;i can't extract the exact text using rex command .&amp;nbsp;&lt;BR /&gt;e.g&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;User:&amp;nbsp; This is my user Name\n&amp;nbsp; This is just some random text&lt;BR /&gt;&lt;BR /&gt;i want to extract a new filed which values is "This is my user Name"&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 06:50:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/filter-text-using-rex/m-p/643143#M222788</guid>
      <dc:creator>nwayoonyanmin</dc:creator>
      <dc:date>2023-05-12T06:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: filter text using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/filter-text-using-rex/m-p/643145#M222790</link>
      <description>&lt;LI-CODE lang="markup"&gt;|rex "User:\"(?&amp;lt;username&amp;gt;[^\"]*)"&lt;/LI-CODE&gt;&lt;P&gt;will extract from the _raw field starting from the character following the first quote after &lt;STRONG&gt;User&lt;/STRONG&gt;: up to the first quote.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 06:40:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/filter-text-using-rex/m-p/643145#M222790</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-05-12T06:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: filter text using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/filter-text-using-rex/m-p/643146#M222791</link>
      <description>&lt;P&gt;oh my bad , "" will not exist everytime , the thing for sure and&amp;nbsp;&lt;BR /&gt;will start from ':' and end with '\n' . I try using this&amp;nbsp;| rex field=msg "User:\s(?&amp;lt;user&amp;gt;.+)"&lt;BR /&gt;but can't get rid of \n&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 06:43:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/filter-text-using-rex/m-p/643146#M222791</guid>
      <dc:creator>nwayoonyanmin</dc:creator>
      <dc:date>2023-05-12T06:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: filter text using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/filter-text-using-rex/m-p/643150#M222793</link>
      <description>&lt;P&gt;Is the \n 2 characters or a line feed?&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 06:55:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/filter-text-using-rex/m-p/643150#M222793</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-05-12T06:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: filter text using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/filter-text-using-rex/m-p/643151#M222794</link>
      <description>&lt;P&gt;in my log it's literally "\n" not next line when i extract something it looks like this&lt;BR /&gt;&lt;BR /&gt;user1\n&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;but i want only user1 , not \n&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 06:57:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/filter-text-using-rex/m-p/643151#M222794</guid>
      <dc:creator>nwayoonyanmin</dc:creator>
      <dc:date>2023-05-12T06:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: filter text using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/filter-text-using-rex/m-p/643152#M222795</link>
      <description>&lt;P&gt;If it's a literal \n then&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "User:\s+?(?&amp;lt;username&amp;gt;.*)\\\\n"&lt;/LI-CODE&gt;&lt;P&gt;If it's a line feed then&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "User:\s+?(?&amp;lt;username&amp;gt;.*)\n"&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 12 May 2023 06:58:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/filter-text-using-rex/m-p/643152#M222795</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-05-12T06:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: filter text using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/filter-text-using-rex/m-p/643153#M222796</link>
      <description>&lt;P&gt;You need 4 slashes in the regex for a single match&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 06:58:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/filter-text-using-rex/m-p/643153#M222796</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-05-12T06:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: filter text using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/filter-text-using-rex/m-p/643155#M222798</link>
      <description>&lt;P&gt;i don't know what is wrong i can't get it work&amp;nbsp;&lt;BR /&gt;| rex field=msg "User:\s(?&amp;lt;user&amp;gt;.*)\\\\n"&amp;nbsp;&lt;BR /&gt;this is my query and it doesn't stop at \n&lt;BR /&gt;&lt;BR /&gt;user\n and this text also&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 07:02:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/filter-text-using-rex/m-p/643155#M222798</guid>
      <dc:creator>nwayoonyanmin</dc:creator>
      <dc:date>2023-05-12T07:02:39Z</dc:date>
    </item>
  </channel>
</rss>

