<?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 to split my input file into multiple events? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-my-input-file-into-multiple-events/m-p/278578#M53330</link>
    <description>&lt;P&gt;sorry but I was still sleeping &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
you have to put SHOULD_LINEMERGE = false in your indexer's props.conf not in inputs.conf.&lt;/P&gt;

&lt;P&gt;inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///tmp/log.txt]
disabled = false
sourcetype = test
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[test]
SHOULD_LINEMERGE = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;remember that if you receive logs from forwarders, you have to put inputs.conf in your forwarders and props.conf in your indexer.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Sat, 04 Feb 2017 08:50:57 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2017-02-04T08:50:57Z</dc:date>
    <item>
      <title>How to split my input file into multiple events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-my-input-file-into-multiple-events/m-p/278575#M53327</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;My input file /tmp/log.txt looks like this.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;192.168.22.5 93.x.x.x 456 2
192.168.22.10 183.x.x.x 63 1
src_ip dest_ip byte packet
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I add this file as an input file in Splunk, I get all data as one large event.&lt;BR /&gt;
I would like these events top be split to separate lines.&lt;/P&gt;

&lt;P&gt;So in &lt;STRONG&gt;props.conf&lt;/STRONG&gt; i added:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::///tmp/log.txt]
SHOULD_LINEMERGE = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But that did not help.&lt;BR /&gt;
Not sure If I need to have &lt;CODE&gt;**/**&lt;/CODE&gt; or &lt;CODE&gt;**///**&lt;/CODE&gt; before file name, but nothing splits the line.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2017 08:13:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-my-input-file-into-multiple-events/m-p/278575#M53327</guid>
      <dc:creator>lakromani</dc:creator>
      <dc:date>2017-02-04T08:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to split my input file into multiple events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-my-input-file-into-multiple-events/m-p/278576#M53328</link>
      <description>&lt;P&gt;Hi  lakromani,&lt;BR /&gt;
in your props.conf use &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///tmp/log.txt]
SHOULD_LINEMERGE = false
index = your_index
sourcetype = your_sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2017 08:19:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-my-input-file-into-multiple-events/m-p/278576#M53328</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-02-04T08:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to split my input file into multiple events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-my-input-file-into-multiple-events/m-p/278577#M53329</link>
      <description>&lt;P&gt;I did find the &lt;CODE&gt;[monitor:///tmp/log.txt]&lt;/CODE&gt; in &lt;CODE&gt;input.conf&lt;/CODE&gt; under my app, so tried to add it there, but lines are still in one event.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///tmp/log.txt]
SHOULD_LINEMERGE = false
disabled = false
sourcetype = test
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also restated splunk&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2017 08:46:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-my-input-file-into-multiple-events/m-p/278577#M53329</guid>
      <dc:creator>lakromani</dc:creator>
      <dc:date>2017-02-04T08:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to split my input file into multiple events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-my-input-file-into-multiple-events/m-p/278578#M53330</link>
      <description>&lt;P&gt;sorry but I was still sleeping &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
you have to put SHOULD_LINEMERGE = false in your indexer's props.conf not in inputs.conf.&lt;/P&gt;

&lt;P&gt;inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///tmp/log.txt]
disabled = false
sourcetype = test
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[test]
SHOULD_LINEMERGE = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;remember that if you receive logs from forwarders, you have to put inputs.conf in your forwarders and props.conf in your indexer.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2017 08:50:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-my-input-file-into-multiple-events/m-p/278578#M53330</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-02-04T08:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to split my input file into multiple events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-my-input-file-into-multiple-events/m-p/278579#M53331</link>
      <description>&lt;P&gt;Now it worked perfectly.  Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2017 11:12:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-my-input-file-into-multiple-events/m-p/278579#M53331</guid>
      <dc:creator>lakromani</dc:creator>
      <dc:date>2017-02-04T11:12:05Z</dc:date>
    </item>
  </channel>
</rss>

