i'm trying to simply parse a json log generated with the configuration below (which is pretty basic) but i can't get it to work. Always getting "No suitable Log Parser found for logs in:...". If i remove the settings of the JsonLayout i actually get it to open but it's definitely bugged: https://i.imgur.com/oAHiJxz.png
Anyone has any ideas what i'm doing wrong here? Because i've tried so many different thigns now...
Replace "compact="true"" with "compact="false"" in the Log4j config file you shared in your message (inside the "<JsonLayout>" element): The LogMX Java parser "Log4j2JSONLogFileParser" only supports this format for now, and according to your screenshot, this is the one you're using.
Create your own Parser to handle your current logs (i.e. 1 giant line of JSON per log entry, instead of 1 line per field). If you can't use Option 1 because you can't change your log format, please let me know and I'll create a Parser for you (probably a Regex parser - which you will be able to import and modify in LogMX)
Wait for LogMX v8 that should be available in a couple of weeks, as it now provides a JSON Parser natively:
json-parser.png (65.7 KiB) Viewed 11454 times
Please let me know if you want to go with Option 2 and I will create a Parser for you
Overall i can wait a few weeks, good to know the new version is just around the corner. So i'm going with option 3
Regarding option 1: I actually did that (to be more precise: it looked liked this "<JsonLayout />") and get the view shown in the imgur link. It was generated with this file content:
You are right, the new version of Log4j2 now uses an { instant } object instead of "timeMillis" (I used Log4j2 v2.10 to generate these logs, but v2.11 introduced this new JSON format). We will then also update the current "Log4j2JSONLogFileParser" shipped with LogMX. But the good news is that the generic JSON parser in LogMX v8 handles it smoothly :
json-parser-2.png (66.7 KiB) Viewed 11449 times
I will post a message here when LogMX v8 will be available!
As promised, LogMX v8.1.0 is now available for download, and includes the support of Log4j v2.11+ JSON format ("compacted" or not, "complete" or not, as well as exceptions and stack traces)