I'm by no means an XML expert. Ergo, I'm having trouble importing Windows event XML from wevtutil into an SQL database. Prior to Server 2008, we exported event log data to the database directly using Log Parser 2.2, but logparser hasn't been upgraded to handle Server 2008 event logs gracefully.
Here's what I know how to handle:
<Field1>text</Field1>
<Field2>text</Field2>
<Field3>text</Field3>
<Field4>text</Field4>
Here's the somewhat different format that wevtutil creates when exporting event logs to XML:
<Field1>text</Field1>
<Field2>text</Field2>
<EventData>
<Data Name='Field3'>text</Data>
<Data Name='Field4'>text</Data>
</EventData>
Is there a relatively straightforward way to import this stuff into a database, mapping <Data Name='Field3'> to [Field3] and so on? I'm OK with writing a VB script (or whatever) to parse through the data one row at a time and insert it into the database one row at a time, if I really need to reinvent the wheel. However, I would prefer to stand on the shoulders of giants. Any suggestions, other than to check my question for mixed metaphors?
(note: this would be a recurring process, so it can't require GUI-only tools.)