We are ingesting wineventlog into Splunk Cloud from all our client servers.
And the majority of the ingested data seems to be in XML format and few hosts are reporting with normal log structure.
So I want to know whether we can ingest the data in XML format itself or can I modify it to the normal structure by adding some stanza in the input .conf file of the wineventlog app.
Which one would be considered as a best practice and a recommended one as well?
inputs.conf command you are looking for is:
renderXML = false or
renderXML = true under a stanza similar to this:
See more information here: https://docs.splunk.com/Documentation/WindowsAddOn/latest/User/Configuration
I can't comment on best practice. It's up to you and your environment as to which one works better for you - the important thing is to be consistent (ideally using a deployment server). We do not render XML since most of our users are more familiar with the standard way Windows displays Windows Events.