<?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 to create a regex or rex in a search to extract each line in a log event to separate events? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-or-rex-in-a-search-to-extract-each-line-in/m-p/444528#M126062</link>
    <description>&lt;P&gt;Hi Mani.. this whole logs is a single event?!?! &lt;BR /&gt;
by using regex, do you want to get single line as a separate "event"?!?!?&lt;/P&gt;

&lt;P&gt;Need a REX or REGEX to split every line as individual events // &lt;BR /&gt;
once indexed, we can not use rex/regex to split the events to individual events.. &lt;/P&gt;

&lt;P&gt;by rex/regex, we can "extract" the lines and then do some calculations/reportings, etc.. &lt;/P&gt;</description>
    <pubDate>Thu, 06 Sep 2018 12:09:26 GMT</pubDate>
    <dc:creator>inventsekar</dc:creator>
    <dc:date>2018-09-06T12:09:26Z</dc:date>
    <item>
      <title>How to create a regex or rex in a search to extract each line in a log event to separate events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-or-rex-in-a-search-to-extract-each-line-in/m-p/444526#M126060</link>
      <description>&lt;P&gt;Hi Splunk Gurus - I am new to splunk, need your help on the below.&lt;/P&gt;

&lt;P&gt;Below is how the events are getting into splunk, every event have multiple lines. Need a REX or REGEX to split every line as individual events. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;15:44:26,951  INFO ALPSessionListener:21 - Session destroyed
15:44:27,437  INFO HomeController:121 - mapping -----/home
15:44:27,451  INFO AccessCardUtility:98 - In query payment method {https://alp.doc.company.com/doc/ccpwebservice/ServiceWeb.svc}
15:44:27,586  INFO HomeController:497 - User roles ----[Supervisor]
15:44:27,617  INFO ALPFilter:49 - User name:{InitialLogin}, Session Id:{x71d4QsDMRp0tpUAYH-LnEn-KRPdDPmsbgQpBLi7}, Login Date Time:{2018-09-05T15:44:27.617}, Resource accessing:{http://alp.doc.company.com/doc/WEB-INF/layout/GenericLayout.jsp}, Time Taken:{181ms}
15:44:27,904  INFO ALPInterceptor:70 - User has access to the URL/alp/ReconcileCashDrawer:{true}
15:44:27,904  INFO ReconcileCashDrawerController:121 - mapping -----/ReconcileCashDrawer
15:44:27,932  INFO ALPFilter:49 - User name:{JP19630}, Session Id:{fVrI3lxJKtjsd-IsoEr7An-14xrq}, Login Date Time:{2018-09-05T15:44:27.932}, Resource accessing:{http://alp.doc.company.com/doc/WEB-INF/layout/GenericLayout.jsp}, Time Taken:{28ms}
15:44:28,152  INFO ALPSessionListener:15 - ALP session created
15:44:28,207  INFO HandleDlsPaymentController:634 - payment response is ---org.datacontract.schemas._2004._07.Common_Payment_Common.GetPaymentInfoResponse@468bfb00
15:44:28,214  INFO RecPaymentController:71 - XML recieved {
15:44:28,214  INFO XMLUtility:51 - IN XML UTILITY
15:44:28,234  INFO ALPFilter:49 - User name:{InitialLogin}, Session Id:{gg6KJGawjksfdklafklto9ju8aQTzvaP2PLRum}, Login Date Time:{2018-09-05T15:44:28.234}, Resource accessing:{http://alp.doc.company.com/doc/settleSuccessful}, Time Taken:{783ms}
15:44:28,266  INFO ALPProductLlpsDAO:130 - number of products passed are {2}
15:44:28,346  INFO ALPSessionListener:15 - ALP session created
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Sep 2018 23:52:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-or-rex-in-a-search-to-extract-each-line-in/m-p/444526#M126060</guid>
      <dc:creator>mani3033</dc:creator>
      <dc:date>2018-09-05T23:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a regex or rex in a search to extract each line in a log event to separate events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-or-rex-in-a-search-to-extract-each-line-in/m-p/444527#M126061</link>
      <description>&lt;P&gt;try this in props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype_name]
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Sep 2018 11:52:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-or-rex-in-a-search-to-extract-each-line-in/m-p/444527#M126061</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-09-06T11:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a regex or rex in a search to extract each line in a log event to separate events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-or-rex-in-a-search-to-extract-each-line-in/m-p/444528#M126062</link>
      <description>&lt;P&gt;Hi Mani.. this whole logs is a single event?!?! &lt;BR /&gt;
by using regex, do you want to get single line as a separate "event"?!?!?&lt;/P&gt;

&lt;P&gt;Need a REX or REGEX to split every line as individual events // &lt;BR /&gt;
once indexed, we can not use rex/regex to split the events to individual events.. &lt;/P&gt;

&lt;P&gt;by rex/regex, we can "extract" the lines and then do some calculations/reportings, etc.. &lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2018 12:09:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-or-rex-in-a-search-to-extract-each-line-in/m-p/444528#M126062</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2018-09-06T12:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a regex or rex in a search to extract each line in a log event to separate events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-or-rex-in-a-search-to-extract-each-line-in/m-p/444529#M126063</link>
      <description>&lt;P&gt;Try in props.conf.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype_name]
LINE_BREAKER =  ([\r\n]+)\d{1,2}\:\d{1,2}\:\d{1,2}
SHOULD_LINEMERGE = false
TIME_FORMAT = %H:%M:%S,%3N
TIME_PREFIX = ^
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Sep 2018 13:30:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-or-rex-in-a-search-to-extract-each-line-in/m-p/444529#M126063</guid>
      <dc:creator>imthesplunker</dc:creator>
      <dc:date>2018-09-06T13:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a regex or rex in a search to extract each line in a log event to separate events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-or-rex-in-a-search-to-extract-each-line-in/m-p/444530#M126064</link>
      <description>&lt;P&gt;Yes the app team writes the dump in to log file so many lines in one event, i used props.conf finally&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2018 17:18:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-or-rex-in-a-search-to-extract-each-line-in/m-p/444530#M126064</guid>
      <dc:creator>mani3033</dc:creator>
      <dc:date>2018-09-06T17:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a regex or rex in a search to extract each line in a log event to separate events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-or-rex-in-a-search-to-extract-each-line-in/m-p/444531#M126065</link>
      <description>&lt;P&gt;Thanks for all you responses, Finally i used the props.conf instead of trying to parse in the runtime search. It worked.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2018 17:19:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-or-rex-in-a-search-to-extract-each-line-in/m-p/444531#M126065</guid>
      <dc:creator>mani3033</dc:creator>
      <dc:date>2018-09-06T17:19:36Z</dc:date>
    </item>
  </channel>
</rss>

