<?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: Help sending header and footer of CSV to nullqueue in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-sending-header-and-footer-of-CSV-to-nullqueue/m-p/62004#M15311</link>
    <description>&lt;P&gt;Are any of the pieces in the header/footer static? If so which?&lt;/P&gt;</description>
    <pubDate>Mon, 22 Aug 2011 20:12:16 GMT</pubDate>
    <dc:creator>ftk</dc:creator>
    <dc:date>2011-08-22T20:12:16Z</dc:date>
    <item>
      <title>Help sending header and footer of CSV to nullqueue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-sending-header-and-footer-of-CSV-to-nullqueue/m-p/62003#M15310</link>
      <description>&lt;P&gt;Hey everyone.&lt;BR /&gt;
The source files I am currently working with each contain a large amount of records. The problem is they follow a weird format. They begin with some numbers and symbols on a line. There is then a blank line. Then the actual body data starts.&lt;/P&gt;

&lt;P&gt;After the body data, there is a blank line.&lt;BR /&gt;
Finally, there is a footer line made of up some numbers and symbols.&lt;/P&gt;

&lt;P&gt;Here is an example.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;001;06.0.0;2011-08-01 09:31:02;CA114

DATA
...

10000;2011-08-01 09:34:18
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm not sure how to ignore the header and footer lines. Any help would be very much appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2011 18:10:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-sending-header-and-footer-of-CSV-to-nullqueue/m-p/62003#M15310</guid>
      <dc:creator>msarro</dc:creator>
      <dc:date>2011-08-22T18:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help sending header and footer of CSV to nullqueue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-sending-header-and-footer-of-CSV-to-nullqueue/m-p/62004#M15311</link>
      <description>&lt;P&gt;Are any of the pieces in the header/footer static? If so which?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2011 20:12:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-sending-header-and-footer-of-CSV-to-nullqueue/m-p/62004#M15311</guid>
      <dc:creator>ftk</dc:creator>
      <dc:date>2011-08-22T20:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help sending header and footer of CSV to nullqueue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-sending-header-and-footer-of-CSV-to-nullqueue/m-p/62005#M15312</link>
      <description>&lt;P&gt;Realized that the header always starts with 001;, and the footer line always starts with 10000. Looks like it is working now. Thanks guys!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2011 15:53:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-sending-header-and-footer-of-CSV-to-nullqueue/m-p/62005#M15312</guid>
      <dc:creator>msarro</dc:creator>
      <dc:date>2011-08-23T15:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help sending header and footer of CSV to nullqueue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-sending-header-and-footer-of-CSV-to-nullqueue/m-p/62006#M15313</link>
      <description>&lt;P&gt;Maybe you can post an answer to this question with what you did in order to make it work, so that other users can benefit from it? Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2011 16:41:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-sending-header-and-footer-of-CSV-to-nullqueue/m-p/62006#M15313</guid>
      <dc:creator>ftk</dc:creator>
      <dc:date>2011-08-23T16:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help sending header and footer of CSV to nullqueue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-sending-header-and-footer-of-CSV-to-nullqueue/m-p/62007#M15314</link>
      <description>&lt;P&gt;In props.conf (items to the left and right of = can be changed to suit your needs):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TRANSFORMS-PBTS-set1=setnull_pbts_head_cdr
TRANSFORMS-PBTS-set2=setnull_pbts_foot_cdr
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In transforms.conf (added two stanzas, the regex just removes lines that start with 001 and 10000):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull_pbts_head_cdr]
REGEX=^001;.*$
DEST_KEY=queue
FORMAT=nullQueue

[setnull_pbts_foot_cdr]
REGEX=^10000;.*$
DEST_KEY=queue
FORMAT=nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Aug 2011 13:19:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-sending-header-and-footer-of-CSV-to-nullqueue/m-p/62007#M15314</guid>
      <dc:creator>msarro</dc:creator>
      <dc:date>2011-08-25T13:19:46Z</dc:date>
    </item>
  </channel>
</rss>

