Disable Parser

Posted on Jan 1, 2024 at 1:37 PM
Hello everyone,

Is there a way to disable the parser?
Especially during development, we sometimes output log messages that do not correspond to any structure.
It would therefore be helpful if only the message was displayed.
Posted on Jan 1, 2024 at 1:41 PM
Hi Icho,

There is no way to completely disable parsing.  At a minimum, all log entries must have a date

Have you tried using the Basic Parser?  This parser requires no configuration, so it is more resilient to change.  If that doesn't help, I may be able to help you come up with a better parser if you could tell me more about the structure of your log entries.

Hope that helps,

Toby
Posted on Jan 9, 2024 at 8:17 AM
Hello Toby,

thanks for the info.
A date should not be a problem, A date should not be a problem, only everything after that would possibly be without structure.

Best regards
Icho

Posted on Jan 9, 2024 at 8:52 AM
In that case, I would recommend either the Basic Parser, or the Pattern Parser with a broadly defined format. 

You should be able to configure a Pattern Parser with something like:
%d %m%n
%d: %m%n
%d{yyyy-MM-dd HH:mm:ss.fff} %m%n
 
Basically, just a date (%d) a message (%m) and an end of message (%n).  Defining the date format is useful if you are dealing with large log files and more accurate file parsing - but it is not required.  If there are log messages you would like to parse, consider a Message Parser (which is separate from the log file parse).
Posted on Jan 9, 2024 at 9:19 AM
Great support, thanks for that :-)
Posted on Jan 9, 2024 at 9:42 AM
Glad that helped. :)  If you have any further issues, ping me a few log entries and I should be able to help with the configuration (if needed). 

This topic is closed and cannot receive new replies.