<?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 Input First Line of File in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Input-First-Line-of-File/m-p/82473#M17080</link>
    <description>&lt;P&gt;I have the requirement of inputing only the first line of a file.  The first line is of interest then the rest of the file is not needed.  The file will be rewritten with new values and again I require just to input the first line of the file.&lt;/P&gt;

&lt;P&gt;Is there a way to just take in the first line and then dump the rest of the file each time Splunk looks at the file?&lt;/P&gt;</description>
    <pubDate>Fri, 04 Oct 2013 04:46:47 GMT</pubDate>
    <dc:creator>cdobie</dc:creator>
    <dc:date>2013-10-04T04:46:47Z</dc:date>
    <item>
      <title>Input First Line of File</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Input-First-Line-of-File/m-p/82473#M17080</link>
      <description>&lt;P&gt;I have the requirement of inputing only the first line of a file.  The first line is of interest then the rest of the file is not needed.  The file will be rewritten with new values and again I require just to input the first line of the file.&lt;/P&gt;

&lt;P&gt;Is there a way to just take in the first line and then dump the rest of the file each time Splunk looks at the file?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2013 04:46:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Input-First-Line-of-File/m-p/82473#M17080</guid>
      <dc:creator>cdobie</dc:creator>
      <dc:date>2013-10-04T04:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Input First Line of File</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Input-First-Line-of-File/m-p/82474#M17081</link>
      <description>&lt;P&gt;Nope, not easily with the regular file monitor. If you can identify the data you want through some sort of pattern you can setup rules for throwing all the other events (see &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/Forwarding/Routeandfilterdatad"&gt;http://docs.splunk.com/Documentation/Splunk/6.0/Forwarding/Routeandfilterdatad&lt;/A&gt; ). Otherwise your best bet is to setup a scripted input so you can put your case-specific logic in the script that you use for retrieving the events.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2013 06:16:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Input-First-Line-of-File/m-p/82474#M17081</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-10-04T06:16:00Z</dc:date>
    </item>
  </channel>
</rss>

