Created
January 11, 2021 23:20
-
-
Save jasonadsit/51745111318bcfe9e1b2e19ec77fd58d to your computer and use it in GitHub Desktop.
ZeekConnLogToObjects.ps1
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
| Get-ChildItem -Filter conn.log*.log | | |
| Get-Content | | |
| Where-Object { $_ -notmatch '#' } | | |
| ConvertFrom-Csv -Delimiter "`t" -Header 'ts','uid','id.orig_h','id.orig_p','id.resp_h', | |
| 'id.resp_p','proto','service','duration','orig_bytes', | |
| 'resp_bytes','conn_state','local_orig','local_resp', | |
| 'missed_bytes','history','orig_pkts','orig_ip_bytes', | |
| 'resp_pkts','resp_ip_bytes','tunnel_parents' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment