<?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: Netapp XML audit data makes the file monitor stop reading before end of file. Is there a workaround? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Netapp-XML-audit-data-makes-the-file-monitor-stop-reading-before/m-p/250888#M15641</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;We did in fact end up reading the rotated file.  Works fine, but we miss being able to get real time info.&lt;/P&gt;</description>
    <pubDate>Wed, 25 May 2016 14:34:48 GMT</pubDate>
    <dc:creator>jplumsdaine22</dc:creator>
    <dc:date>2016-05-25T14:34:48Z</dc:date>
    <item>
      <title>Netapp XML audit data makes the file monitor stop reading before end of file. Is there a workaround?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Netapp-XML-audit-data-makes-the-file-monitor-stop-reading-before/m-p/250884#M15637</link>
      <description>&lt;P&gt;We are trying to index NetApp XML audit logs. The look like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;Events xmlns=blah&amp;gt;
&amp;lt;Event&amp;gt;stuff&amp;lt;/Event&amp;gt;
&amp;lt;Event&amp;gt;stuff&amp;lt;/Event&amp;gt;
&amp;lt;Event&amp;gt;stuff&amp;lt;/Event&amp;gt;
&amp;lt;Event&amp;gt;stuff&amp;lt;/Event&amp;gt;
&amp;lt;/Events&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Unfortunately, new events are INSERTED BEFORE the final tag. &lt;BR /&gt;
So the next time it reads the file, the value of scrc will be different and Splunk reindexes the entire file. The error message is &lt;EM&gt;"Checksum for seekptr didn't match, will re-read entire file"&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;This is expected behaviour from Splunk, but I'm wondering if anyone has managed to work around it?  One method that comes to mind is can the seekptr be told to ignore a regex? If it ignored the final  element, then there would be no scrc mismatch.&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 16:54:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Netapp-XML-audit-data-makes-the-file-monitor-stop-reading-before/m-p/250884#M15637</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2016-01-28T16:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Netapp XML audit data makes the file monitor stop reading before end of file. Is there a workaround?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Netapp-XML-audit-data-makes-the-file-monitor-stop-reading-before/m-p/250885#M15638</link>
      <description>&lt;P&gt;Hello! Have you fixed it? &lt;/P&gt;

&lt;P&gt;Are you monitoring the files directly? How about exclude the "filerXYZ-last.xml" and getting only the one that was already rotated? That could fix your issue, right?&lt;BR /&gt;
You could set it to rotate every 5 minutes (or something like that) and keep only the 10, 15 files (loglimit).&lt;BR /&gt;
If you need the cDot commands, I can help you with this.&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 19:45:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Netapp-XML-audit-data-makes-the-file-monitor-stop-reading-before/m-p/250885#M15638</guid>
      <dc:creator>geraldomagella</dc:creator>
      <dc:date>2016-05-13T19:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Netapp XML audit data makes the file monitor stop reading before end of file. Is there a workaround?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Netapp-XML-audit-data-makes-the-file-monitor-stop-reading-before/m-p/250886#M15639</link>
      <description>&lt;P&gt;Did you ever fix this? I have tried (to no avail):&lt;/P&gt;

&lt;P&gt;INPUTS (only monitoring last .xml file)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ontap]
initCrcLength = 2048
multiline_event_extra_waittime = true
disabled = 0
sourcetype = ontap
index = ontap
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PROPS:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ontap]
SHOULD_LINEMERGE = false
KV_MODE = xml
LINE_BREAKER = ()
MUST_BREAK_AFTER = \
TRANSFORMS-t1 = remove_header_footer
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;TRANSFORMS:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[remove_header_footer]
REGEX=^&amp;lt;(\/|)Events(\s|&amp;gt;)
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Still getting &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;WatchedFile - Checksum for seekptr didn't match, will re-read entire file=(.xml file)
WatchedFile - Will begin reading at offset=0 for file= (.xml file)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 May 2016 17:39:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Netapp-XML-audit-data-makes-the-file-monitor-stop-reading-before/m-p/250886#M15639</guid>
      <dc:creator>kapanig</dc:creator>
      <dc:date>2016-05-20T17:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Netapp XML audit data makes the file monitor stop reading before end of file. Is there a workaround?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Netapp-XML-audit-data-makes-the-file-monitor-stop-reading-before/m-p/250887#M15640</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;CORRECTION:
LINE_BREAKER = (&amp;lt;Event&amp;gt;)
MUST_BREAK_AFTER = \&amp;lt;/Event\&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 May 2016 17:41:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Netapp-XML-audit-data-makes-the-file-monitor-stop-reading-before/m-p/250887#M15640</guid>
      <dc:creator>kapanig</dc:creator>
      <dc:date>2016-05-20T17:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Netapp XML audit data makes the file monitor stop reading before end of file. Is there a workaround?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Netapp-XML-audit-data-makes-the-file-monitor-stop-reading-before/m-p/250888#M15641</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;We did in fact end up reading the rotated file.  Works fine, but we miss being able to get real time info.&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2016 14:34:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Netapp-XML-audit-data-makes-the-file-monitor-stop-reading-before/m-p/250888#M15641</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2016-05-25T14:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Netapp XML audit data makes the file monitor stop reading before end of file. Is there a workaround?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Netapp-XML-audit-data-makes-the-file-monitor-stop-reading-before/m-p/250889#M15642</link>
      <description>&lt;P&gt;We ended up reading the rotated log files instead of the live file, as there is no way to manipulate seekptr&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2016 14:35:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Netapp-XML-audit-data-makes-the-file-monitor-stop-reading-before/m-p/250889#M15642</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2016-05-25T14:35:32Z</dc:date>
    </item>
  </channel>
</rss>

