<?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: Multiple lines with the same time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Multiple-lines-with-the-same-time/m-p/78225#M19798</link>
    <description>&lt;P&gt;dobarnes, did you restart splunk (indexer) after editing line breaking on props.conf?&lt;/P&gt;</description>
    <pubDate>Mon, 27 Feb 2012 15:16:06 GMT</pubDate>
    <dc:creator>_d_</dc:creator>
    <dc:date>2012-02-27T15:16:06Z</dc:date>
    <item>
      <title>Multiple lines with the same time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-lines-with-the-same-time/m-p/78221#M19794</link>
      <description>&lt;P&gt;I have logs from a custom application being streamed into splunk usinig a unverisal forwarder. The probelem I have there is multiple lines with the same time. See below.&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;19:12:51.790,&lt;STRONG&gt;16526719&lt;/STRONG&gt;,TCP,2,3404,2226&lt;BR /&gt;
19:12:51.790,66870655,TCP,10,53743,355114&lt;BR /&gt;
19:12:51.790,199246079,TCP,5,2937,5715&lt;BR /&gt;
19:12:51.790,281972991,TCP,2,55722,43156&lt;BR /&gt;
19:12:51.790,282382591,TCP,11,2458,11480&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;I have extracted the fields of there data using the props.conf and the transforms.com files however when I do a search by what we call Cust_id it only pulls out the information from the first line logged for a time stamp. In the above example it would only find &lt;STRONG&gt;Cust_id = 16526719&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;How can I adjust my query to find the Cust_id per every line that is indexed in Splunk?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:26:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-lines-with-the-same-time/m-p/78221#M19794</guid>
      <dc:creator>dobarnes</dc:creator>
      <dc:date>2020-09-28T11:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple lines with the same time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-lines-with-the-same-time/m-p/78222#M19795</link>
      <description>&lt;P&gt;Do you need to keep it as multiline ? because i would get splunk to treat each line as single event and use delims to extract fields.&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your_data_sourcetype]
SHOULD_LINEMERGE=false
LINE_BREAKER=([\r\n]+)
REPORT-delims=commalist
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[commalist] 
DELIMS = "," 
FIELDS = field1, field2, field3, ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 26 Feb 2012 10:55:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-lines-with-the-same-time/m-p/78222#M19795</guid>
      <dc:creator>MarioM</dc:creator>
      <dc:date>2012-02-26T10:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple lines with the same time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-lines-with-the-same-time/m-p/78223#M19796</link>
      <description>&lt;P&gt;It is more efficient, faster and easier for Splunk to break on every line than to line merge for each event. Try the following stanza on props.conf - it will both break the stream of data at every line AND extract a cust_id field per each event: &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[my_sourcetype]&lt;BR /&gt;
SHOULD_LINEMERGE=false&lt;BR /&gt;
LINE_BREAKER=([\r\n]+)&lt;BR /&gt;
EXTRACT-cust_id = (?i)\.\d{3},(?&amp;lt;cust_id&amp;gt;\d+),&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&amp;gt; please upvote and accept answer if you find it useful - thanks!&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2012 00:13:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-lines-with-the-same-time/m-p/78223#M19796</guid>
      <dc:creator>_d_</dc:creator>
      <dc:date>2012-02-27T00:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple lines with the same time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-lines-with-the-same-time/m-p/78224#M19797</link>
      <description>&lt;P&gt;I tried the both suggestions however I am unable to have Splunk break every line&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2012 15:14:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-lines-with-the-same-time/m-p/78224#M19797</guid>
      <dc:creator>dobarnes</dc:creator>
      <dc:date>2012-02-27T15:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple lines with the same time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-lines-with-the-same-time/m-p/78225#M19798</link>
      <description>&lt;P&gt;dobarnes, did you restart splunk (indexer) after editing line breaking on props.conf?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2012 15:16:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-lines-with-the-same-time/m-p/78225#M19798</guid>
      <dc:creator>_d_</dc:creator>
      <dc:date>2012-02-27T15:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple lines with the same time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-lines-with-the-same-time/m-p/78226#M19799</link>
      <description>&lt;P&gt;and it will only apply to new data&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2012 15:22:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-lines-with-the-same-time/m-p/78226#M19799</guid>
      <dc:creator>MarioM</dc:creator>
      <dc:date>2012-02-27T15:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple lines with the same time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-lines-with-the-same-time/m-p/78227#M19800</link>
      <description>&lt;P&gt;I restarted Splunk and ran a real time search to see if the new index data would be line breaked. It did not address the issue. &lt;/P&gt;

&lt;P&gt;FYI - I am using a search head and multiple indexer. I have only made the adjustment on the search head. Do I need to do this on the indexers as well?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2012 15:29:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-lines-with-the-same-time/m-p/78227#M19800</guid>
      <dc:creator>dobarnes</dc:creator>
      <dc:date>2012-02-27T15:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple lines with the same time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-lines-with-the-same-time/m-p/78228#M19801</link>
      <description>&lt;P&gt;YES! The LINE_BREAKER and SHOULD_LINEMERGE settings are effective only at index-time (read indexer) and ignored by the search head :). On the other hand, EXTRACT-cust_id is used by the search head to performs the extraction of the field at search time.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:26:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-lines-with-the-same-time/m-p/78228#M19801</guid>
      <dc:creator>_d_</dc:creator>
      <dc:date>2020-09-28T11:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple lines with the same time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-lines-with-the-same-time/m-p/78229#M19802</link>
      <description>&lt;P&gt;Thanks for the answer. It did work when I applied the line break to the indexer.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2012 14:12:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-lines-with-the-same-time/m-p/78229#M19802</guid>
      <dc:creator>dobarnes</dc:creator>
      <dc:date>2012-03-12T14:12:35Z</dc:date>
    </item>
  </channel>
</rss>

