<?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: Regex of .txt file in Splunk in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Regex-of-txt-file-in-Splunk/m-p/670936#M112478</link>
    <description>&lt;P&gt;Thanks for the response, when I'm using this line breaker regex&amp;nbsp; alot of events are missing attaching screenshot as reference.&lt;BR /&gt;Is there any way i can read that whole file into single payload, If yes this can resolve my issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mukhan1_0-1701845375950.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28389i842510157FA7BAAC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mukhan1_0-1701845375950.png" alt="mukhan1_0-1701845375950.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Dec 2023 06:49:58 GMT</pubDate>
    <dc:creator>mukhan1</dc:creator>
    <dc:date>2023-12-06T06:49:58Z</dc:date>
    <item>
      <title>Regex of .txt file in Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Regex-of-txt-file-in-Splunk/m-p/670812#M112462</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I'm integrating the .txt file in Splunk, however while integrating the file my events are breaking into single line not all events but many of them are breaking into single line. Attaching the log file in comments.&lt;/P&gt;&lt;P&gt;Below is how my data is appearing on Splunk when I add this txt file into Splunk. Is there any way I can limit the starting and ending point of my event. I want my data to be started from&amp;nbsp;@ID and ends on REMARK.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mukhan1_0-1701778570243.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28375iA8BF9B807BBCF2CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mukhan1_0-1701778570243.png" alt="mukhan1_0-1701778570243.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;And if I use regex "(@ID[\s\S]*?REMARK[\s\S]*?)(?=@ID|$)" while adding the data, many of my logs are getting missing attaching the snapshot of it also. not sure how to resolve this issue,&amp;nbsp; if anyone can know how i can integrate this .txt file to get my event start from (@ID to REMARK)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mukhan1_1-1701779229791.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28376iB80AA9382CFA8BA0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mukhan1_1-1701779229791.png" alt="mukhan1_1-1701779229791.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 12:32:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Regex-of-txt-file-in-Splunk/m-p/670812#M112462</guid>
      <dc:creator>mukhan1</dc:creator>
      <dc:date>2023-12-05T12:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Regex of .txt file in Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Regex-of-txt-file-in-Splunk/m-p/670814#M112463</link>
      <description>&lt;P&gt;&amp;#27;[H&amp;#27;[2JLIST F.PROTOCOL @ID PROTOCOL.ID PROCESS.DATE TIME.MSECS K.USER APPLICATION LEVEL.FUNCTION ID REMARK PAGE 1 11:34:02 23 NOV 2023&lt;/P&gt;&lt;P&gt;@ID............ 202309260081340532.21&lt;BR /&gt;@ID............ 202309260081340532.21&lt;BR /&gt;PROTOCOL.ID.... 202309260081340532.21&lt;BR /&gt;PROCESS.DATE... 20230926&lt;BR /&gt;TIME.MSECS..... 11:15:32:934&lt;BR /&gt;K.USER......... INPUTTER&lt;BR /&gt;APPLICATION.... AC.INWARD.ENTRY&lt;BR /&gt;LEVEL.FUNCTION. 1&lt;BR /&gt;ID.............&lt;BR /&gt;REMARK......... ENQUIRY - AC.INTERFACE.REPORT&lt;/P&gt;&lt;P&gt;@ID............ 202309260081340523.16&lt;BR /&gt;@ID............ 202309260081340523.16&lt;BR /&gt;PROTOCOL.ID.... 202309260081340523.16&lt;BR /&gt;PROCESS.DATE... 20230926&lt;BR /&gt;TIME.MSECS..... 11:15:23:649&lt;BR /&gt;K.USER......... INPUTTER&lt;BR /&gt;APPLICATION.... AC.INWARD.ENTRY&lt;BR /&gt;LEVEL.FUNCTION. 1&lt;BR /&gt;ID.............&lt;BR /&gt;REMARK......... ENQUIRY - AC.INTERFACE.REPORT&lt;/P&gt;&lt;P&gt;@ID............ 202309260081340465.12&lt;BR /&gt;@ID............ 202309260081340465.12&lt;BR /&gt;PROTOCOL.ID.... 202309260081340465.12&lt;BR /&gt;PROCESS.DATE... 20230926&lt;BR /&gt;TIME.MSECS..... 11:14:25:781&lt;BR /&gt;K.USER......... INPUTTER&lt;BR /&gt;APPLICATION.... AC.INWARD.ENTRY&lt;BR /&gt;LEVEL.FUNCTION. 1&lt;BR /&gt;ID.............&lt;BR /&gt;REMARK......... ENQUIRY - AC.INTERFACE.REPORT&lt;/P&gt;&lt;P&gt;@ID............ AUTHORISER-8232&lt;BR /&gt;@ID............ AUTHORISER-8232&lt;BR /&gt;PROTOCOL.ID.... AUTHORISER-8232&lt;BR /&gt;PROCESS.DATE... 20230926&lt;BR /&gt;TIME.MSECS..... 09:08:19:962&lt;BR /&gt;K.USER......... AUTHORISER&lt;BR /&gt;APPLICATION.... PGM.BREAK&lt;BR /&gt;LEVEL.FUNCTION. 1&lt;BR /&gt;ID............. &amp;#27;[H&amp;#27;[2JLIST F.PROTOCOL @ID PROTOCOL.ID PROCESS.DATE TIME.MSECS K.USER APPLICATION LEVEL.FUNCTION ID REMARK PAGE 2 11:34:02 23 NOV 2023&lt;/P&gt;&lt;P&gt;REMARK.........&lt;/P&gt;&lt;P&gt;@ID............ 202309260081340530.06&lt;BR /&gt;@ID............ 202309260081340530.06&lt;BR /&gt;PROTOCOL.ID.... 202309260081340530.06&lt;BR /&gt;PROCESS.DATE... 20230926&lt;BR /&gt;TIME.MSECS..... 11:15:30:223&lt;BR /&gt;K.USER......... INPUTTER&lt;BR /&gt;APPLICATION.... AC.INWARD.ENTRY&lt;BR /&gt;LEVEL.FUNCTION. 1&lt;BR /&gt;ID.............&lt;BR /&gt;REMARK......... ENQUIRY - AC.INTERFACE.REPORT&lt;/P&gt;&lt;P&gt;@ID............ 202309269535047401.01&lt;BR /&gt;@ID............ 202309269535047401.01&lt;BR /&gt;PROTOCOL.ID.... 202309269535047401.01&lt;BR /&gt;PROCESS.DATE... 20230926&lt;BR /&gt;TIME.MSECS..... 13:10:01:201&lt;BR /&gt;K.USER......... INPUTTER&lt;BR /&gt;APPLICATION.... DRAWINGS&lt;BR /&gt;LEVEL.FUNCTION. 1 I&lt;BR /&gt;ID.............&lt;BR /&gt;REMARK.........&lt;/P&gt;&lt;P&gt;@ID............ 202309260081340469.10&lt;BR /&gt;@ID............ 202309260081340469.10&lt;BR /&gt;PROTOCOL.ID.... 202309260081340469.10&lt;BR /&gt;PROCESS.DATE... 20230926&lt;BR /&gt;TIME.MSECS..... 11:14:29:654&lt;BR /&gt;K.USER......... INPUTTER&lt;BR /&gt;APPLICATION.... AC.INWARD.ENTRY&lt;BR /&gt;LEVEL.FUNCTION. 1&lt;BR /&gt;ID.............&lt;BR /&gt;REMARK......... ENQUIRY - AC.INTERFACE.REPORT&lt;/P&gt;&lt;P&gt;@ID............ 202309260081340490.06&lt;BR /&gt;@ID............ 202309260081340490.06&lt;BR /&gt;PROTOCOL.ID.... 202309260081340490.06&lt;BR /&gt;PROCESS.DATE... 20230926&lt;BR /&gt;TIME.MSECS..... 11:14:50:299&lt;BR /&gt;K.USER......... INPUTTER&lt;BR /&gt;APPLICATION.... AC.INWARD.ENTRY &amp;#27;[H&amp;#27;[2JLIST F.PROTOCOL @ID PROTOCOL.ID PROCESS.DATE TIME.MSECS K.USER APPLICATION LEVEL.FUNCTION ID REMARK PAGE 3 11:34:02 23 NOV 2023&lt;/P&gt;&lt;P&gt;LEVEL.FUNCTION. 1&lt;BR /&gt;ID.............&lt;BR /&gt;REMARK......... ENQUIRY - AC.INTERFACE.REPORT&lt;/P&gt;&lt;P&gt;@ID............ 202309260081340509.05&lt;BR /&gt;@ID............ 202309260081340509.05&lt;BR /&gt;PROTOCOL.ID.... 202309260081340509.05&lt;BR /&gt;PROCESS.DATE... 20230926&lt;BR /&gt;TIME.MSECS..... 11:15:09:201&lt;BR /&gt;K.USER......... INPUTTER&lt;BR /&gt;APPLICATION.... AC.INWARD.ENTRY&lt;BR /&gt;LEVEL.FUNCTION. 1&lt;BR /&gt;ID.............&lt;BR /&gt;REMARK......... ENQUIRY - AC.INTERFACE.REPORT&lt;/P&gt;&lt;P&gt;@ID............ 202309260081340529.00&lt;BR /&gt;@ID............ 202309260081340529.00&lt;BR /&gt;PROTOCOL.ID.... 202309260081340529.00&lt;BR /&gt;PROCESS.DATE... 20230926&lt;BR /&gt;TIME.MSECS..... 11:15:29:015&lt;BR /&gt;K.USER......... INPUTTER&lt;BR /&gt;APPLICATION.... AC.INWARD.ENTRY&lt;BR /&gt;LEVEL.FUNCTION. 1&lt;BR /&gt;ID.............&lt;BR /&gt;REMARK......... ENQUIRY - AC.INTERFACE.REPORT&lt;/P&gt;&lt;P&gt;@ID............ 202310033834745376.01&lt;BR /&gt;@ID............ 202310033834745376.01&lt;BR /&gt;PROTOCOL.ID.... 202310033834745376.01&lt;BR /&gt;PROCESS.DATE... 20230926&lt;BR /&gt;TIME.MSECS..... 12:36:16:380&lt;BR /&gt;K.USER......... ASHWIN.KUMAR&lt;BR /&gt;APPLICATION.... CATEGORY&lt;BR /&gt;LEVEL.FUNCTION. 1 S&lt;BR /&gt;ID.............&lt;BR /&gt;REMARK.........&lt;/P&gt;&lt;P&gt;@ID............ 202309260081340496.06&lt;BR /&gt;@ID............ 202309260081340496.06&lt;BR /&gt;PROTOCOL.ID.... 202309260081340496.06&lt;BR /&gt;PROCESS.DATE... 20230926&lt;BR /&gt;TIME.MSECS..... 11:14:56:370 &amp;#27;[H&amp;#27;[2JLIST F.PROTOCOL @ID PROTOCOL.ID PROCESS.DATE TIME.MSECS K.USER APPLICATION LEVEL.FUNCTION ID REMARK PAGE 4 11:34:02 23 NOV 2023&lt;/P&gt;&lt;P&gt;K.USER......... INPUTTER&lt;BR /&gt;APPLICATION.... AC.INWARD.ENTRY&lt;BR /&gt;LEVEL.FUNCTION. 1&lt;BR /&gt;ID.............&lt;BR /&gt;REMARK......... ENQUIRY - AC.INTERFACE.REPORT&lt;/P&gt;&lt;P&gt;@ID............ 202310031395145227.00&lt;BR /&gt;@ID............ 202310031395145227.00&lt;BR /&gt;PROTOCOL.ID.... 202310031395145227.00&lt;BR /&gt;PROCESS.DATE... 20230926&lt;BR /&gt;TIME.MSECS..... 12:33:47:173&lt;BR /&gt;K.USER......... ASHWIN.KUMAR&lt;BR /&gt;APPLICATION.... SIGN.ON&lt;BR /&gt;LEVEL.FUNCTION.&lt;BR /&gt;ID.............&lt;BR /&gt;REMARK.........&lt;/P&gt;&lt;P&gt;@ID............ TEST1-70226&lt;BR /&gt;@ID............ TEST1-70226&lt;BR /&gt;PROTOCOL.ID.... TEST1-70226&lt;BR /&gt;PROCESS.DATE... 20230926&lt;BR /&gt;TIME.MSECS..... 12:52:55:808&lt;BR /&gt;K.USER......... TEST1&lt;BR /&gt;APPLICATION.... PGM.BREAK&lt;BR /&gt;LEVEL.FUNCTION. 1&lt;BR /&gt;ID.............&lt;BR /&gt;REMARK.........&lt;/P&gt;&lt;P&gt;@ID............ 202309264115451975.00&lt;BR /&gt;@ID............ 202309264115451975.00&lt;BR /&gt;PROTOCOL.ID.... 202309264115451975.00&lt;BR /&gt;PROCESS.DATE... 20230926&lt;BR /&gt;TIME.MSECS..... 14:26:15:315&lt;BR /&gt;K.USER......... INPUTTER&lt;BR /&gt;APPLICATION.... ENQUIRY.SELECT&lt;BR /&gt;LEVEL.FUNCTION. 1&lt;BR /&gt;ID............. TRADE.POS.VALUATION_BH0010001_INPUTTER&lt;BR /&gt;REMARK......... 1&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 12:33:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Regex-of-txt-file-in-Splunk/m-p/670814#M112463</guid>
      <dc:creator>mukhan1</dc:creator>
      <dc:date>2023-12-05T12:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Regex of .txt file in Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Regex-of-txt-file-in-Splunk/m-p/670823#M112466</link>
      <description>&lt;P&gt;Generally, you should avoid using SHOULD_LINEMERGE=true whenever you can.&lt;/P&gt;&lt;P&gt;In your case it seems&amp;nbsp; like something like this (along with SHOULD_LINEMERGE=false) should work&lt;/P&gt;&lt;P&gt;LINE_BREAKER = ^REMARK[^\r\n]+([\r\n]+)@ID&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 13:40:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Regex-of-txt-file-in-Splunk/m-p/670823#M112466</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-12-05T13:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Regex of .txt file in Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Regex-of-txt-file-in-Splunk/m-p/670936#M112478</link>
      <description>&lt;P&gt;Thanks for the response, when I'm using this line breaker regex&amp;nbsp; alot of events are missing attaching screenshot as reference.&lt;BR /&gt;Is there any way i can read that whole file into single payload, If yes this can resolve my issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mukhan1_0-1701845375950.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28389i842510157FA7BAAC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mukhan1_0-1701845375950.png" alt="mukhan1_0-1701845375950.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 06:49:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Regex-of-txt-file-in-Splunk/m-p/670936#M112478</guid>
      <dc:creator>mukhan1</dc:creator>
      <dc:date>2023-12-06T06:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Regex of .txt file in Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Regex-of-txt-file-in-Splunk/m-p/670949#M112480</link>
      <description>&lt;P&gt;That is kinda strange.&lt;/P&gt;&lt;P&gt;If you check it on regex101 - &lt;A href="https://regex101.com/r/Bavlui/1" target="_blank"&gt;https://regex101.com/r/Bavlui/1&lt;/A&gt; (I have no idea how long the saved regexes are kept) - it seems to work. As you can see, the group 1 is properly matched to the space between events.&lt;/P&gt;&lt;P&gt;So there might be something not 100% copy-pasteable and your events might actually look a bit different (maybe have some hanging spaces/tabs or something like that).&lt;/P&gt;&lt;P&gt;In general, your LINE_BREAKER should match the place on which you want to break the stream into separate events and must contain a capturing group which will match the part which separates one event from another. That group will be discarded as the "spacer" between events.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 08:09:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Regex-of-txt-file-in-Splunk/m-p/670949#M112480</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-12-06T08:09:30Z</dc:date>
    </item>
  </channel>
</rss>

