<?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: stop splunk from splitting a file. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/stop-splunk-from-splitting-a-file/m-p/44104#M8246</link>
    <description>&lt;P&gt;Can you please clarify, are you using Splunk forwarders to monitor files, or are you sending data in to a plain TCP input port? Or really, what do you mean by "using a tcp monitor"?&lt;/P&gt;</description>
    <pubDate>Sun, 05 Sep 2010 07:20:33 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2010-09-05T07:20:33Z</dc:date>
    <item>
      <title>stop splunk from splitting a file.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/stop-splunk-from-splitting-a-file/m-p/44101#M8243</link>
      <description>&lt;P&gt;I'm trying to read some config files into splunk, ala change management. I'm not using fschange, I'm using a tcp monitor, and pushing them into splunk from different hosts. &lt;/P&gt;

&lt;P&gt;I use a &lt;CODE&gt;***SPLUNK***&lt;/CODE&gt; header to set &lt;CODE&gt;source&lt;/CODE&gt;, &lt;CODE&gt;sourcetype&lt;/CODE&gt;, &lt;CODE&gt;host&lt;/CODE&gt; properly. As that info isn't &lt;EM&gt;in&lt;/EM&gt; the files anywhere. Those values get picked up fine.&lt;/P&gt;

&lt;P&gt;Some of the files are left  as one huge event, as they should be. Other files are getting split by line, which is what I don't want. How can I tell splunk I don't want a sourcetype split up at all. One tcp connection = one event.&lt;/P&gt;

&lt;P&gt;I've tried various combinations of things. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[database_config]
LINE_BREAKER = disable_linebreaking_with_impossible_regex
BREAK_ONLY_BEFORE = disable_linebreaking_with_impossible_regex
LEARN_MODEL = false
SHOULD_LINEMERGE = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;addition info.&lt;/P&gt;

&lt;P&gt;I tried rsyncing the files over and using &lt;CODE&gt;fschange&lt;/CODE&gt; (for the &lt;CODE&gt;fullEvent&lt;/CODE&gt; parameter), but that was worse, I got the same line breaking results, but couldn't override the &lt;CODE&gt;sourcetype&lt;/CODE&gt; using conf files. And was left with 20 random ones splunk invented, for the same file type. I tried a large volume of different configurations on multiple different OSes.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;btool&lt;/CODE&gt; reports nothing is overriding my sourcetype definition.&lt;/P&gt;

&lt;P&gt;I don't trust what &lt;CODE&gt;splunk test sourcetype&lt;/CODE&gt; says. When I give it a file it ends up creating stuff in the 'learned' app, which doesn't happen when I import via tcp.&lt;/P&gt;

&lt;P&gt;splunk is doing splitting fine for the logs I push into it.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Sep 2010 16:06:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/stop-splunk-from-splitting-a-file/m-p/44101#M8243</guid>
      <dc:creator>jstillwell</dc:creator>
      <dc:date>2010-09-04T16:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: stop splunk from splitting a file.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/stop-splunk-from-splitting-a-file/m-p/44102#M8244</link>
      <description>&lt;P&gt;You need to increase/set &lt;CODE&gt;TRUNCATE&lt;/CODE&gt; and &lt;CODE&gt;MAX_EVENTS&lt;/CODE&gt; to be large enough to fit your entire file.&lt;/P&gt;

&lt;P&gt;Also, a regex that will be guaranteed to never match is &lt;CODE&gt;(?!)&lt;/CODE&gt; that is open-paren, question-mark, exclamation-mark, close-paren. An equivalent is &lt;CODE&gt;(*FAIL)&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Sep 2010 23:18:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/stop-splunk-from-splitting-a-file/m-p/44102#M8244</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-09-04T23:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: stop splunk from splitting a file.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/stop-splunk-from-splitting-a-file/m-p/44103#M8245</link>
      <description>&lt;P&gt;This doesn't work. I suspect splunk is ignoring my sourcetype stanza in props.conf.  I don't know how to verify this.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Sep 2010 03:17:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/stop-splunk-from-splitting-a-file/m-p/44103#M8245</guid>
      <dc:creator>jstillwell</dc:creator>
      <dc:date>2010-09-05T03:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: stop splunk from splitting a file.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/stop-splunk-from-splitting-a-file/m-p/44104#M8246</link>
      <description>&lt;P&gt;Can you please clarify, are you using Splunk forwarders to monitor files, or are you sending data in to a plain TCP input port? Or really, what do you mean by "using a tcp monitor"?&lt;/P&gt;</description>
      <pubDate>Sun, 05 Sep 2010 07:20:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/stop-splunk-from-splitting-a-file/m-p/44104#M8246</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-09-05T07:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: stop splunk from splitting a file.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/stop-splunk-from-splitting-a-file/m-p/44105#M8247</link>
      <description>&lt;P&gt;And if using forwarders, are these light or heavy forwarders?&lt;/P&gt;</description>
      <pubDate>Sun, 05 Sep 2010 07:20:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/stop-splunk-from-splitting-a-file/m-p/44105#M8247</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-09-05T07:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: stop splunk from splitting a file.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/stop-splunk-from-splitting-a-file/m-p/44106#M8248</link>
      <description>&lt;P&gt;plain TCP input port. no forwarders anywhere. I just have a [tcp://:port] stanza in inputs.conf, and homebrew scripts that connect and send the data into that port.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Sep 2010 13:39:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/stop-splunk-from-splitting-a-file/m-p/44106#M8248</guid>
      <dc:creator>jstillwell</dc:creator>
      <dc:date>2010-09-05T13:39:01Z</dc:date>
    </item>
  </channel>
</rss>

