<?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: Splunk chews XML Input in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-chews-XML-Input/m-p/89193#M97295</link>
    <description>&lt;P&gt;If you don't want the date and IP appended, add the following to your inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;no_priority_stripping = true
no_appending_timestamp = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Splunk defaults these values to false, telling splunk to strip the first field in &amp;lt;&amp;gt; and then append the host IP and the date to the event.&lt;/P&gt;

&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
    <pubDate>Tue, 26 Apr 2011 16:44:16 GMT</pubDate>
    <dc:creator>bbingham</dc:creator>
    <dc:date>2011-04-26T16:44:16Z</dc:date>
    <item>
      <title>Splunk chews XML Input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-chews-XML-Input/m-p/89192#M97294</link>
      <description>&lt;P&gt;Hello there,&lt;BR /&gt;
I have a number of applications that I want to log to Splunk.  I will be sending the data in an XML format via a UDP listener.  The data that is being sent looks like:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&amp;lt;log4j:event logger="ASP.global_asax" level="INFO" timestamp="1303830487907"    thread="15"&amp;gt;&amp;lt;log4j:message&amp;gt;New session started&amp;lt;/log4j:message&amp;gt;&amp;lt;log4j:properties&amp;gt;&amp;lt;log4j:data name="log4japp" value="4ef113dd-9-129483040292873753(4644)" /&amp;gt;&amp;lt;log4j:data name="log4jmachinename" value="W7-SUN-JSTANTON" /&amp;gt;&amp;lt;/log4j:properties&amp;gt;&amp;lt;/log4j:event&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;However when it is processed by Splunk it appears like:&lt;/P&gt;

&lt;P&gt;`Apr 26 16:18:09 127.0.0.1 &lt;A href="log4j:message"&gt;log4j:message&lt;/A&gt;New session started&lt;A href="https://answers.splunk.comlog4j:message"&gt;/log4j:message&lt;/A&gt;&lt;A href="log4j:properties"&gt;log4j:properties&lt;/A&gt;&lt;DATA name="log4japp" value="4ef113dd-9-129483040292873753(4644)"&gt;&lt;/DATA&gt;&lt;DATA name="log4jmachinename" value="W7-SUN-JSTANTON"&gt;&lt;/DATA&gt;&lt;A href="https://answers.splunk.comlog4j:properties"&gt;/log4j:properties&lt;/A&gt;&lt;A href="https://answers.splunk.comlog4j:event"&gt;/log4j:event&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Basically it looks like Splunk looks like it has overwritten the opening node, and as a result lossing the log level data, with the datetime that it received it.  The applications that are sending it are using nLog with a log4j type target (with an Log4JXmlEventLayout layout).  I have configured the sourcetype as log4jxml (custom name) but I think I need to tell it not to do something with the date/time field in the props.conf file (but not too sure what that something is).&lt;/P&gt;

&lt;P&gt;I am also using the windows version of Splunk so the file paths are slightly different to the online manuals.&lt;/P&gt;

&lt;P&gt;Any help would be most welcome.&lt;/P&gt;

&lt;P&gt;Kind regards&lt;/P&gt;

&lt;P&gt;Jonathan&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2011 15:52:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-chews-XML-Input/m-p/89192#M97294</guid>
      <dc:creator>ac931274</dc:creator>
      <dc:date>2011-04-26T15:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk chews XML Input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-chews-XML-Input/m-p/89193#M97295</link>
      <description>&lt;P&gt;If you don't want the date and IP appended, add the following to your inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;no_priority_stripping = true
no_appending_timestamp = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Splunk defaults these values to false, telling splunk to strip the first field in &amp;lt;&amp;gt; and then append the host IP and the date to the event.&lt;/P&gt;

&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2011 16:44:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-chews-XML-Input/m-p/89193#M97295</guid>
      <dc:creator>bbingham</dc:creator>
      <dc:date>2011-04-26T16:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk chews XML Input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-chews-XML-Input/m-p/89194#M97296</link>
      <description>&lt;P&gt;Thanks for this.  I have also learnt that you have to put the files in the directory C:\Program Files\Splunk\etc\apps\search\local and NOT C:\Program Files\Splunk\etc\system\local &lt;EM&gt;doh&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2011 18:01:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-chews-XML-Input/m-p/89194#M97296</guid>
      <dc:creator>ac931274</dc:creator>
      <dc:date>2011-04-26T18:01:25Z</dc:date>
    </item>
  </channel>
</rss>

