<?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 stop a file from being segmented? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-i-stop-a-file-from-being-segmented/m-p/172427#M34734</link>
    <description>&lt;P&gt;That helps a lot. the file is now broken up into two segments. the first line and the second which contains the timestamp.&lt;BR /&gt;
I can make do with this but if needed how do I get the previous line included?&lt;/P&gt;</description>
    <pubDate>Thu, 13 Aug 2015 15:16:22 GMT</pubDate>
    <dc:creator>MikeBertelsen</dc:creator>
    <dc:date>2015-08-13T15:16:22Z</dc:date>
    <item>
      <title>How do i stop a file from being segmented?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-i-stop-a-file-from-being-segmented/m-p/172425#M34732</link>
      <description>&lt;P&gt;This is the beginning of the file, line numbers for clarity:&lt;BR /&gt;
1. Log File for: BatchJobOutput_20150801-0139_13516_MonthlyBatchJob_SAMM191.log&lt;BR /&gt;
2. Started: Sat Aug  1 01:39:22 CDT 2015&lt;BR /&gt;
3. Using path to access.properties: /opt/WebSphere/AppServer/lib/app&lt;BR /&gt;
4. --------------------------&lt;BR /&gt;
5. /usr/java64/jdk1.6.0_43/bin:/bin:/usr/bin:/opt/gnome/bin:/usr/X11/bin:/home/cd7543/scripts&lt;/P&gt;

&lt;P&gt;This is the end of the file:&lt;BR /&gt;
159. Ended: Sat Aug  1 01:40:55 CDT 2015&lt;BR /&gt;
160.&lt;/P&gt;

&lt;P&gt;There are many date references between these two sections and Splunk takes this one file and splits it up which is then displayed to the end user segmented, in reverse order.&lt;/P&gt;

&lt;P&gt;How do I get Splunk to index this as one contiguous file?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:59:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-i-stop-a-file-from-being-segmented/m-p/172425#M34732</guid>
      <dc:creator>MikeBertelsen</dc:creator>
      <dc:date>2020-09-29T06:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do i stop a file from being segmented?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-i-stop-a-file-from-being-segmented/m-p/172426#M34733</link>
      <description>&lt;P&gt;Add this to your props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = ^Started:\s+
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This won't work if the other timestamps start with the same RegEx.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2015 21:51:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-i-stop-a-file-from-being-segmented/m-p/172426#M34733</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-08-12T21:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do i stop a file from being segmented?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-i-stop-a-file-from-being-segmented/m-p/172427#M34734</link>
      <description>&lt;P&gt;That helps a lot. the file is now broken up into two segments. the first line and the second which contains the timestamp.&lt;BR /&gt;
I can make do with this but if needed how do I get the previous line included?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2015 15:16:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-i-stop-a-file-from-being-segmented/m-p/172427#M34734</guid>
      <dc:creator>MikeBertelsen</dc:creator>
      <dc:date>2015-08-13T15:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do i stop a file from being segmented?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-i-stop-a-file-from-being-segmented/m-p/172428#M34735</link>
      <description>&lt;P&gt;You want all 160 lines to appear into one big single event with timestamp being taken from line 2?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2015 15:37:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-i-stop-a-file-from-being-segmented/m-p/172428#M34735</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-08-13T15:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do i stop a file from being segmented?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-i-stop-a-file-from-being-segmented/m-p/172429#M34736</link>
      <description>&lt;P&gt;Yes that is correct.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2015 15:42:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-i-stop-a-file-from-being-segmented/m-p/172429#M34736</guid>
      <dc:creator>MikeBertelsen</dc:creator>
      <dc:date>2015-08-13T15:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do i stop a file from being segmented?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-i-stop-a-file-from-being-segmented/m-p/172430#M34737</link>
      <description>&lt;P&gt;Try something like this for your props.conf &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[YourSourceType]
BREAK_ONLY_BEFORE=^Log\s*File\s*for:
MAX_TIMESTAMP_LOOKAHEAD=150
NO_BINARY_CHECK=1
SHOULD_LINEMERGE=true
TIME_PREFIX=Started:\s*
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Aug 2015 15:58:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-i-stop-a-file-from-being-segmented/m-p/172430#M34737</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-08-13T15:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do i stop a file from being segmented?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-i-stop-a-file-from-being-segmented/m-p/172431#M34738</link>
      <description>&lt;P&gt;Add these, too:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; BREAK_ONLY_BEFORE_DATE = false
 BREAK_ONLY_BEFORE = ^Log File for:\s+
 SHOULD_LINEMERGE = true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Aug 2015 16:12:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-i-stop-a-file-from-being-segmented/m-p/172431#M34738</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-08-13T16:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do i stop a file from being segmented?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-i-stop-a-file-from-being-segmented/m-p/172432#M34739</link>
      <description>&lt;P&gt;Of the solutions offered, this one works the best.&lt;BR /&gt;
But I am exceeding the 10000 byte limit and the file is being truncated.&lt;BR /&gt;
Suggestions?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2015 17:29:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-i-stop-a-file-from-being-segmented/m-p/172432#M34739</guid>
      <dc:creator>MikeBertelsen</dc:creator>
      <dc:date>2015-08-13T17:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do i stop a file from being segmented?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-i-stop-a-file-from-being-segmented/m-p/172433#M34740</link>
      <description>&lt;P&gt;10000 bytes limits in the preview screen? If you see data truncated in Preview, don't worry actual data will not get truncated. &lt;BR /&gt;
If you see the actual data getting truncated, add following to props.conf stanza.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TRUNCATE = 0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Aug 2015 17:50:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-i-stop-a-file-from-being-segmented/m-p/172433#M34740</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-08-13T17:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do i stop a file from being segmented?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-i-stop-a-file-from-being-segmented/m-p/172434#M34741</link>
      <description>&lt;P&gt;yes in the preview screen&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2015 17:52:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-i-stop-a-file-from-being-segmented/m-p/172434#M34741</guid>
      <dc:creator>MikeBertelsen</dc:creator>
      <dc:date>2015-08-13T17:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do i stop a file from being segmented?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-i-stop-a-file-from-being-segmented/m-p/172435#M34742</link>
      <description>&lt;P&gt;Do &lt;EM&gt;not&lt;/EM&gt; set settings such as &lt;CODE&gt;TRUNCATE&lt;/CODE&gt; to zero, ever.&lt;/P&gt;

&lt;P&gt;Pick a value that seems outlandishly large, sure - but not zero. If something breaks at your source, Splunk will attempt to build infinitely large events...&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2015 19:11:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-i-stop-a-file-from-being-segmented/m-p/172435#M34742</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-08-18T19:11:32Z</dc:date>
    </item>
  </channel>
</rss>

