hawk
hawk copied to clipboard
Get-IPGeolocation : Cannot bind argument to parameter 'IPAddress' because it is null.
Describe the bug I'm getting multiple instances of this error when running a user analysis.
[6/9/2022 3:57:17 PM] - Converting AuditData [6/9/2022 3:57:17 PM] - [ERROR] - 0 Entries failed JSON Conversion [6/9/2022 3:57:17 PM] - No Data Found Get-IPGeolocation : Cannot bind argument to parameter 'IPAddress' because it is null. At line:109 char:62
- ... Get-IPGeolocation -ipaddress $ExpandedUserLogonLogs.item($i).clientip
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : InvalidData: (:) [Get-IPGeolocation], ParameterBindingValidationException
- FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Get-IPGeolocation
Additional context When I ran this yesterday I was seeing a lot of output messages that just said failed to look up geo information, but that was before I acquired an API key so was to be expected. I've since added an API key to the Hawk.json file in my AppData folder.