<?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 ignore footer from forwarding in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/how-to-ignore-footer-from-forwarding/m-p/133776#M27503</link>
    <description>&lt;P&gt;Lets say the footer looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# Hey, Im a footer #
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Use this in your props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TRANSFORMS-null = sourcetype_NullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Use this in your transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype_NullQueue]
REGEX=^#\sHey\,Im.a.footer.#$
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then restart and test.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Jul 2014 19:43:20 GMT</pubDate>
    <dc:creator>jkat54</dc:creator>
    <dc:date>2014-07-08T19:43:20Z</dc:date>
    <item>
      <title>how to ignore footer from forwarding</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-ignore-footer-from-forwarding/m-p/133775#M27502</link>
      <description>&lt;P&gt;Using this which ignores header (and also retrieves field names from header): &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.2/Data/Extractfieldsfromfileheadersatindextime"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.2/Data/Extractfieldsfromfileheadersatindextime&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;But how to ignore footer from forwarding, now it is ending up with this error as footers doesn't have date/time.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;07-08-2014 16:35:11.591 +0000 WARN  DateParserVerbose - Failed to parse timestamp. Defaulting to timestamp of previous event (Sat Jul  5 15:54:07 2014). Context: source::/usr/PATHOFFILE/filename_c105.log.20140704-163507-00|host::105|file_type_access|50
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Jul 2014 16:43:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-ignore-footer-from-forwarding/m-p/133775#M27502</guid>
      <dc:creator>sathiyamoorthy</dc:creator>
      <dc:date>2014-07-08T16:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to ignore footer from forwarding</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-ignore-footer-from-forwarding/m-p/133776#M27503</link>
      <description>&lt;P&gt;Lets say the footer looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# Hey, Im a footer #
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Use this in your props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TRANSFORMS-null = sourcetype_NullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Use this in your transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype_NullQueue]
REGEX=^#\sHey\,Im.a.footer.#$
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then restart and test.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2014 19:43:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-ignore-footer-from-forwarding/m-p/133776#M27503</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2014-07-08T19:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to ignore footer from forwarding</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-ignore-footer-from-forwarding/m-p/133777#M27504</link>
      <description>&lt;P&gt;I'd like both header and footer to be removed, and have the following in props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype_access]
HEADER_FIELD_LINE_NUMBER = 2
FIELD_HEADER_REGEX = ^#Fields:\s(.*)
FIELD_DELIMITER = \t
TIMESTAMP_FIELDS = date, time
PREAMBLE_REGEX = #.*
TRANSFORMS-to_trash1 = remove_comments
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;in transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[remove_comments]
DEST_KEY = queue
REGEX = ^(?:#)
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It removes only the header but not footer. I tried using REGEX instead of PREAMBLE_REGEX but that doesn't help. What should be done to remove both header and footer?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2014 09:20:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-ignore-footer-from-forwarding/m-p/133777#M27504</guid>
      <dc:creator>sathiyamoorthy</dc:creator>
      <dc:date>2014-07-09T09:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to ignore footer from forwarding</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-ignore-footer-from-forwarding/m-p/133778#M27505</link>
      <description>&lt;P&gt;Please refer my comment, I'd like both header and footer to be removed, and use the fields from header.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2014 09:21:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-ignore-footer-from-forwarding/m-p/133778#M27505</guid>
      <dc:creator>sathiyamoorthy</dc:creator>
      <dc:date>2014-07-09T09:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to ignore footer from forwarding</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-ignore-footer-from-forwarding/m-p/133779#M27506</link>
      <description>&lt;P&gt;We don't know what your footer looks like, so it's hard to say. What jkat54 has said is how I get rid of headers/footers.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2014 10:20:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-ignore-footer-from-forwarding/m-p/133779#M27506</guid>
      <dc:creator>alekksi</dc:creator>
      <dc:date>2014-07-09T10:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to ignore footer from forwarding</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-ignore-footer-from-forwarding/m-p/133780#M27507</link>
      <description>&lt;P&gt;Yes, please give examples of your header and footer.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2014 13:15:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-ignore-footer-from-forwarding/m-p/133780#M27507</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2014-07-10T13:15:50Z</dc:date>
    </item>
  </channel>
</rss>

