Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date format error #6

Open
hregis opened this issue Oct 26, 2024 · 3 comments
Open

Date format error #6

hregis opened this issue Oct 26, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@hregis
Copy link

hregis commented Oct 26, 2024

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."
@YosfanEilay YosfanEilay self-assigned this Oct 27, 2024
@YosfanEilay YosfanEilay added the bug Something isn't working label Oct 27, 2024
@YosfanEilay YosfanEilay linked a pull request Oct 27, 2024 that will close this issue
@YosfanEilay YosfanEilay removed a link to a pull request Oct 27, 2024
@YosfanEilay
Copy link
Collaborator

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.

@bentalm
Copy link

bentalm commented Oct 28, 2024

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

@YosfanEilay
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants