<?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 line break this data source? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-line-break-this-data-source/m-p/250408#M48189</link>
    <description>&lt;P&gt;Does the file have newlines?&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;LINE_BREAKER=([\r\n]+)&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;SHOULD_LINEMERGE = false&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;generally works.&lt;/P&gt;</description>
    <pubDate>Fri, 13 May 2016 23:52:45 GMT</pubDate>
    <dc:creator>ltawfall</dc:creator>
    <dc:date>2016-05-13T23:52:45Z</dc:date>
    <item>
      <title>How do I line break this data source?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-line-break-this-data-source/m-p/250407#M48188</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;ComputerTarget=EDITED; NeededCount=31; DownloadedCount=0; NotApplicableCount=82225; NotInstalledCount=31; InstalledCount=32; FailedCount=0
ComputerTarget=EDITED; NeededCount=202; DownloadedCount=0; NotApplicableCount=81555; NotInstalledCount=202; InstalledCount=154; FailedCount=0
ComputerTarget=EDITED; NeededCount=203; DownloadedCount=0; NotApplicableCount=81921; NotInstalledCount=203; InstalledCount=156; FailedCount=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is my data source. I have it setup in props.conf to linebreak after FailedCount=####### but it doesn't seem to be working (data never reaches Splunk unless I remove the props settings). &lt;/P&gt;

&lt;P&gt;Here's my props:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[NeededCount]
CHARSET = UTF-16LE
is_valid = True
SHOULD_LINEMERGE = True
MUST_BREAK_AFTER = (FailedCount=\d{1,10})
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I need help in making sure it'll break after that failedcount=#### so that each line shows up in Splunk as its own event and not just a giant event of 130+ lines. &lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 23:19:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-line-break-this-data-source/m-p/250407#M48188</guid>
      <dc:creator>BlakeDC</dc:creator>
      <dc:date>2016-05-13T23:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I line break this data source?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-line-break-this-data-source/m-p/250408#M48189</link>
      <description>&lt;P&gt;Does the file have newlines?&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;LINE_BREAKER=([\r\n]+)&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;SHOULD_LINEMERGE = false&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;generally works.&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 23:52:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-line-break-this-data-source/m-p/250408#M48189</guid>
      <dc:creator>ltawfall</dc:creator>
      <dc:date>2016-05-13T23:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do I line break this data source?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-line-break-this-data-source/m-p/250409#M48190</link>
      <description>&lt;P&gt;It's a powershell output to a file. It's basically all the lines at once. &lt;/P&gt;

&lt;P&gt;I've tried to default which you pasted above but when I do that no data is showing up in splunk &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Sat, 14 May 2016 01:01:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-line-break-this-data-source/m-p/250409#M48190</guid>
      <dc:creator>BlakeDC</dc:creator>
      <dc:date>2016-05-14T01:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I line break this data source?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-line-break-this-data-source/m-p/250410#M48191</link>
      <description>&lt;P&gt;I added a "`n" to the end of the output file so each line now has a hard break inserted. It shows up now but it's still just one single event instead of an event for each line &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;/P&gt;

&lt;P&gt;It basically thinks I have 300 fields in this log and I can't parse! &lt;/P&gt;</description>
      <pubDate>Sat, 14 May 2016 01:21:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-line-break-this-data-source/m-p/250410#M48191</guid>
      <dc:creator>BlakeDC</dc:creator>
      <dc:date>2016-05-14T01:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I line break this data source?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-line-break-this-data-source/m-p/250411#M48192</link>
      <description>&lt;P&gt;LINE_BREAKER=(FailedCount=\d+)\s+ComputerTarget&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;/P&gt;

&lt;P&gt;Good luck&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:41:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-line-break-this-data-source/m-p/250411#M48192</guid>
      <dc:creator>mosman_splunk</dc:creator>
      <dc:date>2020-09-29T09:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I line break this data source?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-line-break-this-data-source/m-p/250412#M48193</link>
      <description>&lt;P&gt;bah.. I need to actual output file to to get this correctly.  I've had to do a lot of weird line parsing lately, so it's fresh in the brain.&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2016 18:38:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-line-break-this-data-source/m-p/250412#M48193</guid>
      <dc:creator>ltawfall</dc:creator>
      <dc:date>2016-05-16T18:38:18Z</dc:date>
    </item>
  </channel>
</rss>

