<?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 extract first string in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/rex-extract-first-string/m-p/569529#M198510</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;How can I extract first occured this "User ABC123 invalid"&amp;nbsp; with rex?&lt;/P&gt;&lt;P&gt;Here is the log:&lt;/P&gt;&lt;P&gt;2021-10-03 13:26:44,441 ERROR [APP] User ABC123 invalid: javax.security.auth.login.LoginException: User ABC123 invalid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Mon, 04 Oct 2021 10:31:00 GMT</pubDate>
    <dc:creator>indeed_2000</dc:creator>
    <dc:date>2021-10-04T10:31:00Z</dc:date>
    <item>
      <title>rex extract first string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-extract-first-string/m-p/569529#M198510</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;How can I extract first occured this "User ABC123 invalid"&amp;nbsp; with rex?&lt;/P&gt;&lt;P&gt;Here is the log:&lt;/P&gt;&lt;P&gt;2021-10-03 13:26:44,441 ERROR [APP] User ABC123 invalid: javax.security.auth.login.LoginException: User ABC123 invalid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 10:31:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-extract-first-string/m-p/569529#M198510</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2021-10-04T10:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: rex extract first string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-extract-first-string/m-p/569530#M198511</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex "\]\s(?&amp;lt;error&amp;gt;[^:]+):"&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 04 Oct 2021 10:44:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-extract-first-string/m-p/569530#M198511</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-10-04T10:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: rex extract first string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-extract-first-string/m-p/569531#M198512</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/217339"&gt;@indeed_2000&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if your want to extract the message after "LoginException", you could use the following regex:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "LoginException:\s+(?&amp;lt;message&amp;gt;.*)"&lt;/LI-CODE&gt;&lt;P&gt;that you can test at&amp;nbsp;&lt;A href="https://regex101.com/r/Gz7glo/1" target="_blank"&gt;https://regex101.com/r/Gz7glo/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 10:44:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-extract-first-string/m-p/569531#M198512</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-10-04T10:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: rex extract first string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-extract-first-string/m-p/569536#M198513</link>
      <description>&lt;P&gt;Doesn't this give the second occurrence not the first?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 11:31:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-extract-first-string/m-p/569536#M198513</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-10-04T11:31:47Z</dc:date>
    </item>
  </channel>
</rss>

