<?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 Break Log file with header and details into events in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Break-Log-file-with-header-and-details-into-events/m-p/89493#M18574</link>
    <description>&lt;P&gt;I have a log file that looks generally like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Header data  time=xxxxxx  databasename=yyyyyyy  numberortables=xx
Detail tablename=table1  rowsread=1111
Detail tablename=table2  rowsread=2222
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I know I could break events on each detail record.  However is there a way to configure my props.conf file so it pushes/collect the Data from the header into the detail events somehow? &lt;/P&gt;

&lt;P&gt;This is so I could do a search on say databasename=xxx and tablename=yyy?&lt;/P&gt;</description>
    <pubDate>Wed, 27 Apr 2011 01:11:06 GMT</pubDate>
    <dc:creator>warrenpage</dc:creator>
    <dc:date>2011-04-27T01:11:06Z</dc:date>
    <item>
      <title>Break Log file with header and details into events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Break-Log-file-with-header-and-details-into-events/m-p/89493#M18574</link>
      <description>&lt;P&gt;I have a log file that looks generally like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Header data  time=xxxxxx  databasename=yyyyyyy  numberortables=xx
Detail tablename=table1  rowsread=1111
Detail tablename=table2  rowsread=2222
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I know I could break events on each detail record.  However is there a way to configure my props.conf file so it pushes/collect the Data from the header into the detail events somehow? &lt;/P&gt;

&lt;P&gt;This is so I could do a search on say databasename=xxx and tablename=yyy?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2011 01:11:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Break-Log-file-with-header-and-details-into-events/m-p/89493#M18574</guid>
      <dc:creator>warrenpage</dc:creator>
      <dc:date>2011-04-27T01:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Break Log file with header and details into events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Break-Log-file-with-header-and-details-into-events/m-p/89494#M18575</link>
      <description>&lt;P&gt;Generally speaking there is no way to force that Header into each Detail record such that you have:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Event 1:
Header 1
Detail A

Event 2:
Header 1
Detail B
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Depending on the number of "Detail" records you could create a multi-line event.  I wouldn't recommend creating events w/ linecount&amp;gt;500. Given that the row count for an event = (# of tables) + 1 (header) you should be under that mark.  You would essentially be creating a single event for each database.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Event 1:
Header 1
Detail A
Detail B
Detail C

Event 2:
Header 2
Detail X
Detail Y
Detail Z
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Apr 2011 06:32:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Break-Log-file-with-header-and-details-into-events/m-p/89494#M18575</guid>
      <dc:creator>hazekamp</dc:creator>
      <dc:date>2011-04-27T06:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Break Log file with header and details into events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Break-Log-file-with-header-and-details-into-events/m-p/89495#M18576</link>
      <description>&lt;P&gt;Thanks I suspected as much.  &lt;/P&gt;

&lt;P&gt;I think I will just need to run the file through awk first to create full detail records like &lt;/P&gt;

&lt;P&gt;time=xxxxxx  databasename=yyyyyyy  tablename=table1  rowsread=1111&lt;BR /&gt;
time=xxxxxx  databasename=yyyyyyy  tablename=table2  rowsread=2222&lt;/P&gt;

&lt;P&gt;In the meantime just doing without the header fields and marking the details as events separately.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2011 01:38:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Break-Log-file-with-header-and-details-into-events/m-p/89495#M18576</guid>
      <dc:creator>warrenpage</dc:creator>
      <dc:date>2011-04-29T01:38:27Z</dc:date>
    </item>
  </channel>
</rss>

