<?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 Extracting wineventlog from Azure EventHub WindowsEventLogsTable in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Extracting-wineventlog-from-Azure-EventHub-WindowsEventLogsTable/m-p/709968#M117271</link>
    <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;We are currently ingesting wineventlog from some of our Azure VMs via Eventhub. As such, their assigned sourcetype is the eventhub sourcetype, which means they are not subject to the wineventlog field extractions.&lt;/P&gt;&lt;P&gt;These logs do contain a "raw xml" data field, which is like xmlwineventlog, however, using things such as xmlkv, spath or xpath don't work as intended, and require additional work to extract the data correctly. Unfortunately due to this, we are unable to dump this extra SPL into a field extraction or calculated field.&lt;/P&gt;&lt;P&gt;Please find the SPL below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=azure sourcetype=mscs:azure:eventhub category="WindowsEventLogsTable"
| fields properties.RawXml
| spath input=properties.RawXml 
| eval test=mvzip('Event.EventData.Data{@Name}', 'Event.EventData.Data', "=")
| mvexpand test
| rex field=test max_match=0 "^(?&amp;lt;kv_key&amp;gt;[^=]+)=(?&amp;lt;kv_value&amp;gt;[^=]+)$"
| eval {kv_key}=kv_value&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The end goal with this is to successfully extract the relevant windows event fields so that it can be datamodel mapped. It's not possible to install UFs onto these VMs, so unfortunately not the solution here. We'd ideally also want to avoid using "collect" to duplicate the data to a separate index/sourcetype.&lt;/P&gt;&lt;P&gt;Has anyone else encountered this and managed to come up with a solution? Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jan 2025 14:11:25 GMT</pubDate>
    <dc:creator>kajmaple</dc:creator>
    <dc:date>2025-01-28T14:11:25Z</dc:date>
    <item>
      <title>Extracting wineventlog from Azure EventHub WindowsEventLogsTable</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extracting-wineventlog-from-Azure-EventHub-WindowsEventLogsTable/m-p/709968#M117271</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;We are currently ingesting wineventlog from some of our Azure VMs via Eventhub. As such, their assigned sourcetype is the eventhub sourcetype, which means they are not subject to the wineventlog field extractions.&lt;/P&gt;&lt;P&gt;These logs do contain a "raw xml" data field, which is like xmlwineventlog, however, using things such as xmlkv, spath or xpath don't work as intended, and require additional work to extract the data correctly. Unfortunately due to this, we are unable to dump this extra SPL into a field extraction or calculated field.&lt;/P&gt;&lt;P&gt;Please find the SPL below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=azure sourcetype=mscs:azure:eventhub category="WindowsEventLogsTable"
| fields properties.RawXml
| spath input=properties.RawXml 
| eval test=mvzip('Event.EventData.Data{@Name}', 'Event.EventData.Data', "=")
| mvexpand test
| rex field=test max_match=0 "^(?&amp;lt;kv_key&amp;gt;[^=]+)=(?&amp;lt;kv_value&amp;gt;[^=]+)$"
| eval {kv_key}=kv_value&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The end goal with this is to successfully extract the relevant windows event fields so that it can be datamodel mapped. It's not possible to install UFs onto these VMs, so unfortunately not the solution here. We'd ideally also want to avoid using "collect" to duplicate the data to a separate index/sourcetype.&lt;/P&gt;&lt;P&gt;Has anyone else encountered this and managed to come up with a solution? Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 14:11:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extracting-wineventlog-from-Azure-EventHub-WindowsEventLogsTable/m-p/709968#M117271</guid>
      <dc:creator>kajmaple</dc:creator>
      <dc:date>2025-01-28T14:11:25Z</dc:date>
    </item>
  </channel>
</rss>

