<?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 Indexing XML files from universal forwarder in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-XML-files-from-universal-forwarder/m-p/198118#M39295</link>
    <description>&lt;P&gt;Hi all, attempting to index 44,833 xml files for parsing. I know splunk needs some configuration changes to work better with xml depending on your needs. In my case each file is unique.&lt;/P&gt;

&lt;P&gt;My problem is out of 44,833 xml files about 300 are marked dups. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Log Error&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;06-13-2014 12:43:51.734 -0700 ERROR TailingProcessor - File will not be read, seekptr checksum did not match (file=C:\var\xml\new_production_items\2-10240750-Qti.xml).  Last time we saw this initcrc, filename was different.  You may wish to use a CRC salt on this source.  Consult the documentation or file a support case online at &lt;A href="http://www.splunk.com/page/submit_issue" target="test_blank"&gt;http://www.splunk.com/page/submit_issue&lt;/A&gt; for more info.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So I have used crcSalt and initCrcLength, but failing on the implementation. I have placed them in inputs.conf on the server than changed to the forwarder to no avail.&lt;/P&gt;

&lt;P&gt;This is the inputs.conf settings&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://c:\var\xml\*.xml]
disabled = 0
followTail = 0
crcSalt = &amp;lt;SOURCE&amp;gt;
initCrcLength = 2048
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have tried higher initCrcLength values from 1024 to 10500, nothing seems to take.&lt;/P&gt;

&lt;P&gt;Each time I make a change I run the following commands:&lt;/P&gt;

&lt;P&gt;Splunk universal forwarder:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk stop
splunk clean all
splunk start
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Splunk Server:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk stop
splunk clean eventdata
splunk start
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;

&lt;P&gt;(Update)..&lt;BR /&gt;
Just noticed that even with the error the file is still logged in some cases. My final results still indicate not all files are indexed but maybe the error above is a &lt;STRONG&gt;red herring&lt;/STRONG&gt;!&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jun 2014 21:13:11 GMT</pubDate>
    <dc:creator>lmacneil76</dc:creator>
    <dc:date>2014-06-13T21:13:11Z</dc:date>
    <item>
      <title>Indexing XML files from universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-XML-files-from-universal-forwarder/m-p/198118#M39295</link>
      <description>&lt;P&gt;Hi all, attempting to index 44,833 xml files for parsing. I know splunk needs some configuration changes to work better with xml depending on your needs. In my case each file is unique.&lt;/P&gt;

&lt;P&gt;My problem is out of 44,833 xml files about 300 are marked dups. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Log Error&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;06-13-2014 12:43:51.734 -0700 ERROR TailingProcessor - File will not be read, seekptr checksum did not match (file=C:\var\xml\new_production_items\2-10240750-Qti.xml).  Last time we saw this initcrc, filename was different.  You may wish to use a CRC salt on this source.  Consult the documentation or file a support case online at &lt;A href="http://www.splunk.com/page/submit_issue" target="test_blank"&gt;http://www.splunk.com/page/submit_issue&lt;/A&gt; for more info.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So I have used crcSalt and initCrcLength, but failing on the implementation. I have placed them in inputs.conf on the server than changed to the forwarder to no avail.&lt;/P&gt;

&lt;P&gt;This is the inputs.conf settings&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://c:\var\xml\*.xml]
disabled = 0
followTail = 0
crcSalt = &amp;lt;SOURCE&amp;gt;
initCrcLength = 2048
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have tried higher initCrcLength values from 1024 to 10500, nothing seems to take.&lt;/P&gt;

&lt;P&gt;Each time I make a change I run the following commands:&lt;/P&gt;

&lt;P&gt;Splunk universal forwarder:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk stop
splunk clean all
splunk start
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Splunk Server:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk stop
splunk clean eventdata
splunk start
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;

&lt;P&gt;(Update)..&lt;BR /&gt;
Just noticed that even with the error the file is still logged in some cases. My final results still indicate not all files are indexed but maybe the error above is a &lt;STRONG&gt;red herring&lt;/STRONG&gt;!&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2014 21:13:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-XML-files-from-universal-forwarder/m-p/198118#M39295</guid>
      <dc:creator>lmacneil76</dc:creator>
      <dc:date>2014-06-13T21:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing XML files from universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-XML-files-from-universal-forwarder/m-p/198119#M39296</link>
      <description>&lt;P&gt;Found the solution. Each sub folder needs its own stanza.&lt;/P&gt;

&lt;P&gt;So files at &lt;CODE&gt;C:\var\xml\new_production_items\2-10240750-Qti.xml&lt;/CODE&gt; would look like this.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://c:\var\xml\new_production_items\*.xml]
disabled = 0
followTail = 0
crcSalt = &amp;lt;SOURCE&amp;gt;
initCrcLength = 2048
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And the inputs.conf on the forwarder has this configuration.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2014 23:10:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-XML-files-from-universal-forwarder/m-p/198119#M39296</guid>
      <dc:creator>lmacneil76</dc:creator>
      <dc:date>2014-06-16T23:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing XML files from universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-XML-files-from-universal-forwarder/m-p/198120#M39297</link>
      <description>&lt;P&gt;Thanks, Windows, separate entry for each directory required and 'initCrcLength' stanza error goes away!&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2014 05:37:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-XML-files-from-universal-forwarder/m-p/198120#M39297</guid>
      <dc:creator>briansutherland</dc:creator>
      <dc:date>2014-07-07T05:37:03Z</dc:date>
    </item>
  </channel>
</rss>

