<?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: Windows event log XML not parsing with KV_MODE = xml in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Windows-event-log-XML-not-parsing-with-KV-MODE-xml/m-p/274648#M52680</link>
    <description>&lt;P&gt;I figured that KV_MODE = xml for any XmlWinEventLog is not working somehow. Maybe it is not prober XML. I could not find something in answer. But as I have the same problem I found a lot of suggestions using KV_MODE = xml. But it just does not work ;-).&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/302711/how-to-configure-splunk-to-extract-xml-fields-from.html" target="_blank"&gt;https://answers.splunk.com/answers/302711/how-to-configure-splunk-to-extract-xml-fields-from.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/402872/how-do-i-parse-applocker-windows-event-log-renderx.html" target="_blank"&gt;https://answers.splunk.com/answers/402872/how-do-i-parse-applocker-windows-event-log-renderx.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I personally would use Splunk_TA_windows Transforms. They do extract the fields perfect. But  the stanza in the splunk App [(?::){0}XmlWinEventLog:*] does not work for me. &lt;BR /&gt;
So I copied the Transforms directly to the sourcetype and created a local/props.conf:&lt;/P&gt;

&lt;P&gt;e.g. &lt;BR /&gt;
[XmlWinEventLog:Microsoft-Windows-WindowsUpdateClient/Operational]&lt;BR /&gt;
KV_MODE = none&lt;BR /&gt;
REPORT-0xml_block_extract = system_xml_block,eventdata_xml_block,userdata_xml_block,debugdata_xml_block,renderinginfo_xml_block&lt;BR /&gt;
REPORT-0xml_kv_extract = system_props_xml_kv,system_props_xml_attributes,eventdata_xml_data,rendering_info_xml_data&lt;/P&gt;

&lt;P&gt;Maybe somebody can comment on this issue? But the above solution works perfectly for me.&lt;/P&gt;

&lt;P&gt;Have a good day.&lt;BR /&gt;
Ben&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 12:58:25 GMT</pubDate>
    <dc:creator>benlc</dc:creator>
    <dc:date>2020-09-29T12:58:25Z</dc:date>
    <item>
      <title>Windows event log XML not parsing with KV_MODE = xml</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-event-log-XML-not-parsing-with-KV-MODE-xml/m-p/274645#M52677</link>
      <description>&lt;P&gt;I have made the following change to a forwarder to send JUST applocker data as XML:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog://Microsoft-Windows-AppLocker/EXE and DLL]
disabled = 0
renderXml=1

[WinEventLog://Microsoft-Windows-AppLocker/MSI and Script]
disabled = 0
renderXml=1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am able to parse the field values if I use  &lt;CODE&gt;| xmlkv&lt;/CODE&gt;, but when adding KV_MODE = xml to the props.conf on the forwarder (like so):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[XmlWinEventLog:Microsoft-Windows-AppLocker/EXE and DLL]
KV_MODE = xml
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I do not get parsed results in Splunk. Am I missing something?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2016 18:19:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-event-log-XML-not-parsing-with-KV-MODE-xml/m-p/274645#M52677</guid>
      <dc:creator>jpolcari</dc:creator>
      <dc:date>2016-09-12T18:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Windows event log XML not parsing with KV_MODE = xml</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-event-log-XML-not-parsing-with-KV-MODE-xml/m-p/274646#M52678</link>
      <description>&lt;P&gt;KV_MODE is a search-time field extractor, so it will need to go in props.conf on your search head instead of the forwarder.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2016 20:48:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-event-log-XML-not-parsing-with-KV-MODE-xml/m-p/274646#M52678</guid>
      <dc:creator>jconger</dc:creator>
      <dc:date>2016-09-12T20:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Windows event log XML not parsing with KV_MODE = xml</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-event-log-XML-not-parsing-with-KV-MODE-xml/m-p/274647#M52679</link>
      <description>&lt;P&gt;I've added the KV_MODE section to prop.conf (the one in %SPLUNK_Home%\etc\system\local) on my search head and restarted but I am still getting the same results. The fields are not getting extracted. Any other idea?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:57:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-event-log-XML-not-parsing-with-KV-MODE-xml/m-p/274647#M52679</guid>
      <dc:creator>jpolcari</dc:creator>
      <dc:date>2020-09-29T10:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Windows event log XML not parsing with KV_MODE = xml</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-event-log-XML-not-parsing-with-KV-MODE-xml/m-p/274648#M52680</link>
      <description>&lt;P&gt;I figured that KV_MODE = xml for any XmlWinEventLog is not working somehow. Maybe it is not prober XML. I could not find something in answer. But as I have the same problem I found a lot of suggestions using KV_MODE = xml. But it just does not work ;-).&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/302711/how-to-configure-splunk-to-extract-xml-fields-from.html" target="_blank"&gt;https://answers.splunk.com/answers/302711/how-to-configure-splunk-to-extract-xml-fields-from.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/402872/how-do-i-parse-applocker-windows-event-log-renderx.html" target="_blank"&gt;https://answers.splunk.com/answers/402872/how-do-i-parse-applocker-windows-event-log-renderx.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I personally would use Splunk_TA_windows Transforms. They do extract the fields perfect. But  the stanza in the splunk App [(?::){0}XmlWinEventLog:*] does not work for me. &lt;BR /&gt;
So I copied the Transforms directly to the sourcetype and created a local/props.conf:&lt;/P&gt;

&lt;P&gt;e.g. &lt;BR /&gt;
[XmlWinEventLog:Microsoft-Windows-WindowsUpdateClient/Operational]&lt;BR /&gt;
KV_MODE = none&lt;BR /&gt;
REPORT-0xml_block_extract = system_xml_block,eventdata_xml_block,userdata_xml_block,debugdata_xml_block,renderinginfo_xml_block&lt;BR /&gt;
REPORT-0xml_kv_extract = system_props_xml_kv,system_props_xml_attributes,eventdata_xml_data,rendering_info_xml_data&lt;/P&gt;

&lt;P&gt;Maybe somebody can comment on this issue? But the above solution works perfectly for me.&lt;/P&gt;

&lt;P&gt;Have a good day.&lt;BR /&gt;
Ben&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:58:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-event-log-XML-not-parsing-with-KV-MODE-xml/m-p/274648#M52680</guid>
      <dc:creator>benlc</dc:creator>
      <dc:date>2020-09-29T12:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Windows event log XML not parsing with KV_MODE = xml</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-event-log-XML-not-parsing-with-KV-MODE-xml/m-p/704023#M116444</link>
      <description>&lt;P&gt;I got the same parsing issue like you using the KV_MODE parameter&amp;nbsp; but&amp;nbsp; i found the cause and the solution&lt;/P&gt;&lt;P&gt;Tested on splunk enterprise 9.2.1, in the props.conf,&amp;nbsp; you should specify the source field and value in the stanza like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[source::WinEventLog]&lt;/STRONG&gt;&lt;BR /&gt;KV_MODE = xml&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NB: you can adapt the source value to match to you logs source value&lt;/P&gt;&lt;P&gt;***Since the post is old, I hope this solution will be useful to those who encounter the problem again.***&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2024 00:23:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-event-log-XML-not-parsing-with-KV-MODE-xml/m-p/704023#M116444</guid>
      <dc:creator>amara</dc:creator>
      <dc:date>2024-11-10T00:23:43Z</dc:date>
    </item>
  </channel>
</rss>

