<?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 Inconsistent line breaking in Security</title>
    <link>https://community.splunk.com/t5/Security/Inconsistent-line-breaking/m-p/40913#M13789</link>
    <description>&lt;P&gt;I am very new to Splunk and this may be a rookie question but I cannot find this anywhere. I have a custom generated demo log file with 1000 similarly structured lines. For some reason, Splunk reads in the first 257 lines as one event, and then the next 743 lines as separate events.&lt;/P&gt;

&lt;P&gt;I figured it had something to do with either LINE _ BREAKER or MAX _ EVENTS but the strange thing is that it's not consistent. I would be less surprised if it grouped all my events per 257 in stead of just the first 257 and then single event per line from there on.&lt;/P&gt;

&lt;P&gt;Could it perhaps have something to do with the fact that I don't have a timestamp added yet?&lt;/P&gt;</description>
    <pubDate>Tue, 21 May 2013 12:38:05 GMT</pubDate>
    <dc:creator>vanaepi</dc:creator>
    <dc:date>2013-05-21T12:38:05Z</dc:date>
    <item>
      <title>Inconsistent line breaking</title>
      <link>https://community.splunk.com/t5/Security/Inconsistent-line-breaking/m-p/40913#M13789</link>
      <description>&lt;P&gt;I am very new to Splunk and this may be a rookie question but I cannot find this anywhere. I have a custom generated demo log file with 1000 similarly structured lines. For some reason, Splunk reads in the first 257 lines as one event, and then the next 743 lines as separate events.&lt;/P&gt;

&lt;P&gt;I figured it had something to do with either LINE _ BREAKER or MAX _ EVENTS but the strange thing is that it's not consistent. I would be less surprised if it grouped all my events per 257 in stead of just the first 257 and then single event per line from there on.&lt;/P&gt;

&lt;P&gt;Could it perhaps have something to do with the fact that I don't have a timestamp added yet?&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2013 12:38:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Inconsistent-line-breaking/m-p/40913#M13789</guid>
      <dc:creator>vanaepi</dc:creator>
      <dc:date>2013-05-21T12:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent line breaking</title>
      <link>https://community.splunk.com/t5/Security/Inconsistent-line-breaking/m-p/40914#M13790</link>
      <description>&lt;P&gt;Yes. If there is no timestamp Splunk will have problems to automatically create/break events.&lt;/P&gt;

&lt;P&gt;If you &lt;EM&gt;really&lt;/EM&gt; want to index the events anyway you should set the following in props.conf;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your sourcetype]
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)
DATETIME_CONFIG = CURRENT
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Read more about that here:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;/k&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2013 12:48:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Inconsistent-line-breaking/m-p/40914#M13790</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-05-21T12:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent line breaking</title>
      <link>https://community.splunk.com/t5/Security/Inconsistent-line-breaking/m-p/40915#M13791</link>
      <description>&lt;P&gt;Try the truncate option in the props.conf stanza for the sourcetype.  Truncate is needed when the file you're consuming is abnormally large or the lines in the file are abnormally long (no line breaks etc). From the &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.2/Data/Indexmulti-lineevents"&gt;doc&lt;/A&gt;, "Change the default maximum line length (in bytes)"&lt;/P&gt;

&lt;P&gt;For instance, if you were to consume the applicationHost.config files for IIS servers you could use the following stanza in props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[iisconfig]
SHOULD_LINEMERGE = True
MAX_EVENTS = 400960
LINE_BREAKER = &amp;lt;/configuration&amp;gt;
NO_BINARY_CHECK = true
TRUNCATE = 1000000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And in inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://C:\Windows\System32\inetsrv\config\applicationHost.conf]
disabled = 0
host = hostname
index = main
sourcetype = iisconfig
crcSalt = &amp;lt;SOURCE&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 May 2013 14:32:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Inconsistent-line-breaking/m-p/40915#M13791</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2013-05-21T14:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent line breaking</title>
      <link>https://community.splunk.com/t5/Security/Inconsistent-line-breaking/m-p/40916#M13792</link>
      <description>&lt;P&gt;Who down voted my solution?  It would solve his problem if his issue was long lines.  The issue that truncate solves can be explained the exact same way he explained his problem.  So without a example of the data he's consuming both answers could be correct.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2013 18:30:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Inconsistent-line-breaking/m-p/40916#M13792</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2013-05-21T18:30:47Z</dc:date>
    </item>
  </channel>
</rss>

