<?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: trouble breaking log events in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/trouble-breaking-log-events/m-p/51682#M9908</link>
    <description>&lt;P&gt;&lt;A href="http://shes.fr/"&gt;http://shes.fr/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Feb 2013 22:36:55 GMT</pubDate>
    <dc:creator>emcollections</dc:creator>
    <dc:date>2013-02-08T22:36:55Z</dc:date>
    <item>
      <title>trouble breaking log events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/trouble-breaking-log-events/m-p/51678#M9904</link>
      <description>&lt;P&gt;&lt;STRONG&gt;I have several text format log files in which I need help in linebreaking them into the appropriate events that I need. This is an exmaple of what my file looks like:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;====================================================&lt;/P&gt;

&lt;P&gt;LOGS_BEGIN: DO_LOG&lt;/P&gt;

&lt;P&gt;====================================================&lt;/P&gt;

&lt;P&gt;====================================================&lt;/P&gt;

&lt;P&gt;-rw------- 1 root root 3505 Apr 23 12:58 /var/adm/sulog&lt;/P&gt;

&lt;P&gt;====================================================&lt;/P&gt;

&lt;P&gt;SU 02/12 16:53 - pts/1 hkim-root&lt;/P&gt;

&lt;P&gt;SU 02/12 16:53 + pts/1 hkim-root&lt;/P&gt;

&lt;P&gt;SU 02/13 13:10 + ??? root-sys&lt;/P&gt;

&lt;P&gt;SU 02/16 13:10 + ??? root-sys&lt;/P&gt;

&lt;P&gt;SU 02/17 13:10 + ??? root-sys&lt;/P&gt;

&lt;P&gt;SU 02/20 13:10 + ??? root-sys&lt;/P&gt;

&lt;P&gt;====================================================&lt;/P&gt;

&lt;P&gt;====================================================&lt;/P&gt;

&lt;P&gt;-rw-------  1 root root 99999999 Apr 24 15:25 /var/log/messages&lt;/P&gt;

&lt;P&gt;====================================================&lt;/P&gt;

&lt;P&gt;Apr 24 14:30:01 999999999999 crond(pam_unix)[13043]: session opened for user root by (uid=0)&lt;/P&gt;

&lt;P&gt;Apr 24 14:30:01 999999999999 crond(pam_unix)[13045]: session opened for user root by (uid=0)&lt;/P&gt;

&lt;P&gt;Apr 24 14:30:01 999999999999 su(pam_unix)[13049]: session opened for user iscan by (uid=0)&lt;/P&gt;

&lt;P&gt;Apr 24 14:30:01 999999999999 crond(pam_unix)[13043]: session closed for user root&lt;/P&gt;

&lt;P&gt;====================================================&lt;/P&gt;

&lt;P&gt;====================================================&lt;/P&gt;

&lt;P&gt;-rw------- 1 root sys 2984 Apr 11 2006 /var/adm/loginlog&lt;/P&gt;

&lt;P&gt;====================================================&lt;/P&gt;

&lt;P&gt;vkaliya:/dev/pts/1:Wed May 4 11:14:34 2005&lt;/P&gt;

&lt;P&gt;vkaliaya:/dev/pts/1:Wed May 4 11:14:43 2005&lt;/P&gt;

&lt;P&gt;vkaliya:/dev/pts/1:Wed May  4 11:14:34 2005&lt;/P&gt;

&lt;P&gt;vkaliaya:/dev/pts/1:Wed May  4 11:14:43 2005&lt;/P&gt;

&lt;P&gt;vkaliya:/dev/pts/1:Wed May  4 11:14:55 2005&lt;/P&gt;

&lt;P&gt;vkaliya:/dev/pts/1:Wed May  4 11:15:06 2005&lt;/P&gt;

&lt;P&gt;====================================================&lt;/P&gt;

&lt;P&gt;====================================================&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;I need to be able to filter out the top part of the log,which consist of the 1st line till the 6th line (shown below)this applies to the messagelog and loginlog as well&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;====================================================&lt;/P&gt;

&lt;P&gt;LOGSBEGIN: DOLOG&lt;/P&gt;

&lt;P&gt;====================================================&lt;/P&gt;

&lt;P&gt;====================================================&lt;/P&gt;

&lt;P&gt;-rw------- 1 root root 3505 Apr 23 12:58 /var/adm/sulog&lt;/P&gt;

&lt;P&gt;====================================================&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;After which,I will need each and every line to be a seperate event (shown below)&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;SU 02/15 10:28 + pts/1 hkim-root&lt;/P&gt;

&lt;P&gt;SU 02/15 13:10 + ??? root-sys&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;I would also have to filter out the last part of the log(shown below)&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;====================================================&lt;/P&gt;

&lt;P&gt;====================================================&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;I have tried several props.conf but it doesn't to be working!! Please help me!&lt;/STRONG&gt;&lt;BR /&gt;
&lt;STRONG&gt;TAKE NOTE: at the loginlog section,the time format is different from the message and sulog section!!!!&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:49:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/trouble-breaking-log-events/m-p/51678#M9904</guid>
      <dc:creator>JeffTanYH</dc:creator>
      <dc:date>2020-09-28T11:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: trouble breaking log events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/trouble-breaking-log-events/m-p/51679#M9905</link>
      <description>&lt;P&gt;&lt;A href="http://www.emcollections.net/"&gt;http://www.emcollections.net/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2012 06:35:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/trouble-breaking-log-events/m-p/51679#M9905</guid>
      <dc:creator>emcollections</dc:creator>
      <dc:date>2012-05-15T06:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: trouble breaking log events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/trouble-breaking-log-events/m-p/51680#M9906</link>
      <description>&lt;P&gt;&lt;A href="http://www.emcollections.net/"&gt;http://www.emcollections.net/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2012 06:35:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/trouble-breaking-log-events/m-p/51680#M9906</guid>
      <dc:creator>emcollections</dc:creator>
      <dc:date>2012-05-15T06:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: trouble breaking log events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/trouble-breaking-log-events/m-p/51681#M9907</link>
      <description>&lt;P&gt;&lt;A href="http://shes.fr/"&gt;http://shes.fr/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2013 22:36:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/trouble-breaking-log-events/m-p/51681#M9907</guid>
      <dc:creator>emcollections</dc:creator>
      <dc:date>2013-02-08T22:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: trouble breaking log events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/trouble-breaking-log-events/m-p/51682#M9908</link>
      <description>&lt;P&gt;&lt;A href="http://shes.fr/"&gt;http://shes.fr/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2013 22:36:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/trouble-breaking-log-events/m-p/51682#M9908</guid>
      <dc:creator>emcollections</dc:creator>
      <dc:date>2013-02-08T22:36:55Z</dc:date>
    </item>
  </channel>
</rss>

