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

I get empty results and Can't parse error #646

Open
PavelTurk opened this issue Aug 5, 2024 · 3 comments
Open

I get empty results and Can't parse error #646

PavelTurk opened this issue Aug 5, 2024 · 3 comments
Assignees

Comments

@PavelTurk
Copy link

This is my first attempt to start working with otroslogviewer but I can't make it work. What I did:

  1. I imported by log4j2 file:
    Screenshot from 2024-08-05 11-05-11

  2. I open log file I get:
    Screenshot from 2024-08-05 11-06-35

  3. When I press open I get:
    Screenshot from 2024-08-05 11-07-26

Could anyone say what I am doing wrong?

@PavelTurk
Copy link
Author

Nobody knows? Could anyone provide a piece of working log so I could at least understand how it works.

@svennissel
Copy link
Collaborator

Can you add some lines of the of the logfile and the log4j2 configuration?

@svennissel svennissel self-assigned this Aug 16, 2024
@svennissel
Copy link
Collaborator

svennissel commented Aug 16, 2024

In .otroslogviewer\plugins\logimporters you find all paterns. You can create a pattern by your own.
Like:

type=log4j
pattern=TIMESTAMP [LEVEL] [THREAD] LOGGER MESSAGE
dateFormat=yyyy-MM-dd HH:mm:ss.SSS
name=My Pattern
charset=windows-1252

see also: https://github.com/otros-systems/otroslogviewer/wiki/Log4jPatternLayout#the-log4j-patternlayout-parser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants