title: How can I query the event log for a specific source using xpath?
body: <p>I want to query the whole Windows event log (e.g. application) for events, that were written by a specific source (e.g. MSSQL$SQLEXPRESS). I have already written working code to search for event id's:</p>
  
  <pre><code>string xpathQuery = string.Format("*[System/EventID={0}]", intFilter);
  EventLogQuery query = new EventLogQuery(eventLogName, PathType.LogName, xpathQuery);
  EventLogReader reader = new EventLogReader(query);
  for (EventRecord eventInstance = reader.ReadEvent(); null != eventInstance; eventInstance = reader.ReadEvent())
  {
      lisRecords.Add(eventInstance);
  }
  </code></pre>
  
  <p>How I have to alter the xpathQuery, that I'm able to search 4 eventlog-entry-sources?</p>