<?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 multiple lines of data into a single individual line in splunk? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-of-data-into-a-single-individual/m-p/397483#M70862</link>
    <description>&lt;P&gt;Hi All, &lt;/P&gt;

&lt;P&gt;Got how to split the multiple event in to single individual event using the Line_Breaker stanza in props.conf &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [who]
 SHOULD_LINEMERGE=false
 LINE_BREAKER=([\r\n]+)
 TRUNCATE=1000000
 DATETIME_CONFIG = CURRENT

[lastlog]
 ## Override system/default lastlog sourcetype invalidation
 invalid_cause =
 SHOULD_LINEMERGE=false
 LINE_BREAKER=([\r\n]+)
 TRUNCATE=1000000
 DATETIME_CONFIG = CURRENT
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 20 Jun 2018 14:53:00 GMT</pubDate>
    <dc:creator>Hemnaath</dc:creator>
    <dc:date>2018-06-20T14:53:00Z</dc:date>
    <item>
      <title>How to split multiple lines of data into a single individual line in splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-of-data-into-a-single-individual/m-p/397482#M70861</link>
      <description>&lt;P&gt;Hi All,  We are monitoring the wtmpx data from the Unix machines via splunk using the Splunk add-on for Unix, based on this add-on we could see the data from the wtmpx file in splunk, but currently we could see the data ingesting from the wtmpx file into splunk with multiple line like shown below.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  6/20/18
6:26:03.000 AM  
USERNAME        LINE        HOSTNAME                                  TIME
HXXX019        pts/1       w442xty1.XXXX.com                     Jun 19 18:40
Hxxx007        pts/5       yb33gnn1.XXXX.com                     Jun 19 08:53


6/20/18
6:23:33.000 AM  
USERNAME        LINE        HOSTNAME                                  TIME
HXXX019        pts/1       w442xty1.XXXX.com                     Jun 19 18:40
HXXX007        pts/5       yb33gnn1.XXXX.com                     Jun 19 08:53
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But instead of multiple line we want to have it as single event like this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;USERNAME        LINE        HOSTNAME                                  TIME
HXXX019        pts/1       w442xty1.XXXX.com                     Jun 19 18:40

USERNAME        LINE        HOSTNAME                                  TIME
HXXX007        pts/5       yb33gnn1.XXXX.com                    Jun 19 08:53
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And also if there is no content in the log then it should be removed from splunk. &lt;BR /&gt;
example: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    USERNAME        LINE        HOSTNAME                                  TIME

host=r3crp00   source=who        sourcetype=who
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Props.conf details for the sourcetype=who &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[who]
SHOULD_LINEMERGE=false
LINE_BREAKER=^()$
TRUNCATE=1000000
DATETIME_CONFIG = CURRENT
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;sourcetype=lastlog&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[lastlog]
## Override system/default lastlog sourcetype invalidation
invalid_cause =
SHOULD_LINEMERGE=false
LINE_BREAKER=^()$
TRUNCATE=1000000
DATETIME_CONFIG = CURRENT
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Kindly guide me how to configure this in the props.conf file.&lt;/P&gt;

&lt;P&gt;thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 12:33:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-of-data-into-a-single-individual/m-p/397482#M70861</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2018-06-20T12:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to split multiple lines of data into a single individual line in splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-of-data-into-a-single-individual/m-p/397483#M70862</link>
      <description>&lt;P&gt;Hi All, &lt;/P&gt;

&lt;P&gt;Got how to split the multiple event in to single individual event using the Line_Breaker stanza in props.conf &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [who]
 SHOULD_LINEMERGE=false
 LINE_BREAKER=([\r\n]+)
 TRUNCATE=1000000
 DATETIME_CONFIG = CURRENT

[lastlog]
 ## Override system/default lastlog sourcetype invalidation
 invalid_cause =
 SHOULD_LINEMERGE=false
 LINE_BREAKER=([\r\n]+)
 TRUNCATE=1000000
 DATETIME_CONFIG = CURRENT
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Jun 2018 14:53:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-of-data-into-a-single-individual/m-p/397483#M70862</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2018-06-20T14:53:00Z</dc:date>
    </item>
  </channel>
</rss>

