<?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: Removing Garbled logs by linecount before indexing in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Removing-Garbled-logs-by-linecount-before-indexing/m-p/163726#M33170</link>
    <description>&lt;P&gt;thanks for your help, i've adjusted my script, oh well.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Feb 2014 22:54:34 GMT</pubDate>
    <dc:creator>twistedsixty4</dc:creator>
    <dc:date>2014-02-24T22:54:34Z</dc:date>
    <item>
      <title>Removing Garbled logs by linecount before indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Removing-Garbled-logs-by-linecount-before-indexing/m-p/163723#M33167</link>
      <description>&lt;P&gt;Hey everyone,&lt;BR /&gt;
So I have a script that generates status logs for a few network devices that my Splunk forwarder grabs, but every now and again something screws it up and it garbles the entry. The garbled entry is always a smaller linecount, this accounts for roughly 1% of my logs from the script. Is there a way to tell Splunk in the props file to throw away the entry if it's less than 23 lines long? Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2014 18:31:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Removing-Garbled-logs-by-linecount-before-indexing/m-p/163723#M33167</guid>
      <dc:creator>twistedsixty4</dc:creator>
      <dc:date>2014-02-24T18:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Garbled logs by linecount before indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Removing-Garbled-logs-by-linecount-before-indexing/m-p/163724#M33168</link>
      <description>&lt;P&gt;Not if you monitor the log file with a [monitor]&lt;BR /&gt;
and the nullQueue filtering will only work on a line per line basis.&lt;/P&gt;

&lt;P&gt;If you were using a scripted input, then you could add some logic when you generate the logs to drop the invalid ones.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2014 18:37:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Removing-Garbled-logs-by-linecount-before-indexing/m-p/163724#M33168</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2014-02-24T18:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Garbled logs by linecount before indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Removing-Garbled-logs-by-linecount-before-indexing/m-p/163725#M33169</link>
      <description>&lt;P&gt;yes, something like if result count &amp;lt; 23 don't write anything (to file or to script output)&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2014 18:58:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Removing-Garbled-logs-by-linecount-before-indexing/m-p/163725#M33169</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-02-24T18:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Garbled logs by linecount before indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Removing-Garbled-logs-by-linecount-before-indexing/m-p/163726#M33170</link>
      <description>&lt;P&gt;thanks for your help, i've adjusted my script, oh well.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2014 22:54:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Removing-Garbled-logs-by-linecount-before-indexing/m-p/163726#M33170</guid>
      <dc:creator>twistedsixty4</dc:creator>
      <dc:date>2014-02-24T22:54:34Z</dc:date>
    </item>
  </channel>
</rss>

