<?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: Searching a line from text file in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Searching-a-line-from-text-file/m-p/101688#M21318</link>
    <description>&lt;P&gt;Thanks, this is working. But I guess it will affect all the indexes. Is it possible to index only this file with semi colon ; as line_breaker ?&lt;/P&gt;</description>
    <pubDate>Wed, 02 Nov 2011 02:54:22 GMT</pubDate>
    <dc:creator>shantanuo</dc:creator>
    <dc:date>2011-11-02T02:54:22Z</dc:date>
    <item>
      <title>Searching a line from text file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Searching-a-line-from-text-file/m-p/101686#M21316</link>
      <description>&lt;P&gt;I have a file with semi colon ; line breaks text file. It has been indexed in splunk.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; INSERT INTO `account` VALUES ('abc');
 INSERT INTO `account` VALUES ('xyz');
 INSERT INTO `account` VALUES ('pqr');
 INSERT INTO `account` VALUES ('mnp');
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I search for "pqr" it should show only 1 line. It is currently showing the next line "mnp" as well. There is no timestamp in the file and splunk still is grouping the lines by date-time. for e.g. all the lines mentioned above listed as a group under 06/09/2011 19:01:17.000&lt;/P&gt;

&lt;P&gt;How do I return only one line while searching for 'pqr' ?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2011 12:02:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Searching-a-line-from-text-file/m-p/101686#M21316</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2011-11-01T12:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Searching a line from text file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Searching-a-line-from-text-file/m-p/101687#M21317</link>
      <description>&lt;P&gt;You should tell Splunk how to break the lines in the file into individual events. By default Splunk creates a new event whenever it sees a timestamp. If your file looks exactly like you pasted I'm a bit surprised you're only getting two lines in one event - there should be even more.&lt;/P&gt;

&lt;P&gt;You want to set &lt;CODE&gt;SHOULD_LINEMERGE&lt;/CODE&gt; to "false" in &lt;CODE&gt;props.conf&lt;/CODE&gt; (default is true). That way Splunk will not merge lines into combined events.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2011 13:05:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Searching-a-line-from-text-file/m-p/101687#M21317</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2011-11-01T13:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: Searching a line from text file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Searching-a-line-from-text-file/m-p/101688#M21318</link>
      <description>&lt;P&gt;Thanks, this is working. But I guess it will affect all the indexes. Is it possible to index only this file with semi colon ; as line_breaker ?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2011 02:54:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Searching-a-line-from-text-file/m-p/101688#M21318</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2011-11-02T02:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Searching a line from text file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Searching-a-line-from-text-file/m-p/101689#M21319</link>
      <description>&lt;P&gt;Sure, just define which source or sourcetype you want this setting to apply to in props.conf, e.g. for a source you would do&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source:///path/to/file]
SHOULD_LINEMERGE = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or to do it on a sourcetype level,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your_sourcetype]
SHOULD_LINEMERGE = false
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Nov 2011 07:17:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Searching-a-line-from-text-file/m-p/101689#M21319</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2011-11-02T07:17:29Z</dc:date>
    </item>
  </channel>
</rss>

