MasterParser icon indicating copy to clipboard operation
MasterParser copied to clipboard

Date format error

Open hregis opened this issue 1 year ago • 3 comments

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."

hregis avatar Oct 26 '24 09:10 hregis

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.

YosfanEilay avatar Oct 27 '24 13:10 YosfanEilay

Hello, Same here but on Windows with french language and the language of the log file system is C.UTF-8

bentalm avatar Oct 28 '24 08:10 bentalm

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

YosfanEilay avatar Oct 28 '24 09:10 YosfanEilay