Skip to content

Instantly share code, notes, and snippets.

@faststeak
Last active October 31, 2017 16:26
Show Gist options
  • Save faststeak/00fe3e2819d9a99cd20155f10ca3dc10 to your computer and use it in GitHub Desktop.
Save faststeak/00fe3e2819d9a99cd20155f10ca3dc10 to your computer and use it in GitHub Desktop.
Splunk - Create a list of host to mac pairs and output to a csv
index=windows sourcetype=WinHostMon source=networkadapter
| stats count by host MACAddress
| rename MACAddress as mac host as hostname
| outputlookup windows_mac_addresses.csv
@faststeak
Copy link
Author

This assumes that you have the WinHostMon input enabled and configured to pull network adapter information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment