Skip to content

Instantly share code, notes, and snippets.

@hortonew
Created December 9, 2015 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hortonew/9f30f8b938ff9bcc53cb to your computer and use it in GitHub Desktop.
Save hortonew/9f30f8b938ff9bcc53cb to your computer and use it in GitHub Desktop.
index=winevents* sourcetype="WinEventLog:System"
| dedup ComputerName, host
| rex field=ComputerName "(?<RealHostName>[\w\d\-]+)\..+"
| eval RealHostName=lower(RealHostName) | eval ReportedHostName=lower(host)
| where RealHostName!=ReportedHostName
| table RealHostName, ReportedHostName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment