This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
index=osquery sourcetype="osquery:interface*" NOT interface=lo | |
| rename address AS ip | |
| stats values(*) as * by host | |
| stats count by host interface ip mac |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
index=windows sourcetype=WinHostMon source=networkadapter | |
| stats count by host MACAddress | |
| rename MACAddress as mac host as hostname | |
| outputlookup windows_mac_addresses.csv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tstats `summariesonly` count from datamodel=Network_Resolution.DNS where DNS.record_type="A*" NOT DNS.query="SomeHostNames*" NOT DNS.query="*.arpa" NOT DNS.query="_ldap*" NOT DNS.query="_gc*" NOT DNS.query="_kerberos*" by DNS.query DNS.src | |
| rename DNS.query as query DNS.src as src | |
| eval query_punct=query | |
| rex mode=sed field=query_punct "s/\w+//g" | |
| search NOT query_punct="--.-.----" | |
| `ut_shannon(query)` | |
| stats sum(ut_shannon) as ut_shannon_sum values(query) as query by src | |
| where ut_shannon_sum<1000 | |
| sort - ut_shannon_sum |
NewerOlder