<?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: How do I extract a string from my sample log using the rex command? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-string-from-my-sample-log-using-the-rex/m-p/193163#M55568</link>
    <description>&lt;P&gt;This works on regex101.com:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "(?s)MSG:(?P&amp;lt;string&amp;gt;.*):EL" | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 06 Jul 2015 11:50:18 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2015-07-06T11:50:18Z</dc:date>
    <item>
      <title>How do I extract a string from my sample log using the rex command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-string-from-my-sample-log-using-the-rex/m-p/193162#M55567</link>
      <description>&lt;P&gt;How do I extract the string from &lt;CODE&gt;MSG:&lt;/CODE&gt; till &lt;CODE&gt;EL&lt;/CODE&gt; from the sample log below using the rex command?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;BL: | LL: ERROR | TS: 2015-06-05 13:42:28,544 | AR: RxC_15.01.24.01 | STORE: 09560:wks02 | USER: 0589263 | HOST: wks02 | APPSERVER: rri1rxappa60/10.92.227.28 | MSGID: 09560-wks02-SCRRXDE01NewPrescriptionP-1433526148422: |SC: [com.cvs.rxconnect.web.RxConnectWebEntry.doPost] | MSG: EXCP Error completing service call com.cvs.rxconnect.rx.service.RxFillService.saveAIDetail | java.lang.NullPointerException
                at com.cvs.rxconnect.modeleValue194)
                at com.cvs.rxconnect.ai.boundary.(RxpAdditionalInfoBoundaryImpl.java:331)
                at com.cvs.rxconnect.ai.persistor.(istorImpl.java:9626)
                at com.cvs.rxconnect.ai.service.(AdditionalInfoServiceImpl.java:998)
                at com.cvs.rxconnect.rx.service.R(FillServiceImpl.java:11319)
                at com.cvs.rxconnect.rx.service.Re(&amp;lt;generated&amp;gt;)
                at net.sf.cglib.reflect.FastMethod.invoke(53)

:EL
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Jul 2015 07:10:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-string-from-my-sample-log-using-the-rex/m-p/193162#M55567</guid>
      <dc:creator>kumina</dc:creator>
      <dc:date>2015-07-06T07:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I extract a string from my sample log using the rex command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-string-from-my-sample-log-using-the-rex/m-p/193163#M55568</link>
      <description>&lt;P&gt;This works on regex101.com:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "(?s)MSG:(?P&amp;lt;string&amp;gt;.*):EL" | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Jul 2015 11:50:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-string-from-my-sample-log-using-the-rex/m-p/193163#M55568</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-07-06T11:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I extract a string from my sample log using the rex command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-string-from-my-sample-log-using-the-rex/m-p/193164#M55569</link>
      <description>&lt;P&gt;If this solved your problem, please accept the answer.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2015 11:52:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-string-from-my-sample-log-using-the-rex/m-p/193164#M55569</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-07-10T11:52:33Z</dc:date>
    </item>
  </channel>
</rss>

