<?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 does Splunk calculate linecount? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-does-Splunk-calculate-linecount/m-p/85598#M97191</link>
    <description>&lt;P&gt;@mloven now that you work for Splunk did you get an answer? I'm seeing the same behavior&lt;/P&gt;</description>
    <pubDate>Wed, 02 Mar 2016 15:12:08 GMT</pubDate>
    <dc:creator>jplumsdaine22</dc:creator>
    <dc:date>2016-03-02T15:12:08Z</dc:date>
    <item>
      <title>How does Splunk calculate linecount?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-does-Splunk-calculate-linecount/m-p/85596#M97189</link>
      <description>&lt;P&gt;I have logs that are linebreaking correctly, and are single line events, but the linecount is showing as "2".&lt;/P&gt;

&lt;P&gt;I poked around in the original file and there seems to only be single line endings on each line (per vi :set list)&lt;/P&gt;

&lt;P&gt;What does Splunk use to calculate linecount?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2013 17:29:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-does-Splunk-calculate-linecount/m-p/85596#M97189</guid>
      <dc:creator>mloven_splunk</dc:creator>
      <dc:date>2013-10-07T17:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: How does Splunk calculate linecount?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-does-Splunk-calculate-linecount/m-p/85597#M97190</link>
      <description>&lt;P&gt;I dont know if this answers your question, but you might find your answer here..&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.1/Data/Indexmulti-lineevents"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.1/Data/Indexmulti-lineevents&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2014 23:53:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-does-Splunk-calculate-linecount/m-p/85597#M97190</guid>
      <dc:creator>twistedsixty4</dc:creator>
      <dc:date>2014-02-05T23:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: How does Splunk calculate linecount?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-does-Splunk-calculate-linecount/m-p/85598#M97191</link>
      <description>&lt;P&gt;@mloven now that you work for Splunk did you get an answer? I'm seeing the same behavior&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2016 15:12:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-does-Splunk-calculate-linecount/m-p/85598#M97191</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2016-03-02T15:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: How does Splunk calculate linecount?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-does-Splunk-calculate-linecount/m-p/85599#M97192</link>
      <description>&lt;P&gt;Also seeing the same behavior where one line events are showing up at 2.  Also only seeing single line endings when checking out the log on the forwarder host&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 20:27:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-does-Splunk-calculate-linecount/m-p/85599#M97192</guid>
      <dc:creator>cramasta</dc:creator>
      <dc:date>2016-08-15T20:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: How does Splunk calculate linecount?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-does-Splunk-calculate-linecount/m-p/641629#M109414</link>
      <description>&lt;P&gt;Hello from the future!&lt;/P&gt;&lt;P&gt;I ran into this exact thing working with OpenTelemetry's HEC exporter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It turns out if the "raw" field contains a "\n" it will increment the linecount to 2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is likely because Splunk's default line breaker behaviour is to drop any new lines as part of the capture group it uses "([\r\n]+)" so the logic assumes new lines would be removed.&lt;/P&gt;&lt;P&gt;so if it somehow sneaks into raw (in my case it skips linebreaking due to hec event endpoint)&amp;nbsp; even tho you dont see it in the raw even on screen it looks to trigger the linecount to be 2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 16:27:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-does-Splunk-calculate-linecount/m-p/641629#M109414</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2023-04-27T16:27:25Z</dc:date>
    </item>
  </channel>
</rss>

