Date format error
Hello @YosfanEilay thanks for your work. i have this error, i use powershell for Mac with logs of Debian
MethodInvocationException: /Users/regis/Downloads/MasterParser-main/MasterParser-main/03-Options/05-functions.ps1:46
Line |
46 | $StartTimeConverted = [datetime]::ParseExact($start_time,'MMM …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Exception calling "ParseExact" with "3" argument(s): "String 'Oct 21 16:59:12' was not recognized as a valid DateTime."
MethodInvocationException: /Users/regis/Downloads/MasterParser-main/MasterParser-main/03-Options/05-functions.ps1:53
Line |
53 | $EndTimeConverted = [datetime]::ParseExact($end_time,'MMM dd …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Exception calling "ParseExact" with "3" argument(s): "String 'Oct 21 16:59:14' was not recognized as a valid DateTime."
I haven't tested whether MasterParser works on Mac, so there may be some issues, as you've already noticed. Could you please let me know what language your computer is set to and the Log file? I’ve seen similar errors in the past when the operating system language of the log file or the machine running the tool is not set to English. These types of issues can occur.
Hello, Same here but on Windows with french language and the language of the log file system is C.UTF-8
Hi @bentalm, sorry that you too have problems, the tool was built for operation systems in English only, as this tools is "word parser" because logs are basically lines of words, in will only work good on operation system's that use English on logs that captured in English