Skip to content

Date format error #6

Description

@hregis

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

Activity

  1. self-assigned this
    on Oct 27, 2024
  2. linked a pull request that will close this issueImprove Linux compatibility #5on Oct 27, 2024
  3. YosfanEilay commented on Oct 27, 2024

    @YosfanEilay
    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.

  4. bentalm commented on Oct 28, 2024

    @bentalm

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

  5. YosfanEilay commented on Oct 28, 2024

    @YosfanEilay
    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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions