Manually Switching to Next Parser

Notes, tips, and other usefull things on how to use LogMX

Moderator: admin

Post Reply
obarak
Posts: 10
Joined: Thu Jul 10, 2014 1:26 pm

Manually Switching to Next Parser

Post by obarak » Thu Jul 10, 2014 1:29 pm

There are situations where LogMX incorrectly recognizes my file as one log format, where it actually uses a different one. Is there a way I can manually choose a parser or manually switch to the next parser on the list?

Thanks,
Omer

admin
Site Admin
Posts: 418
Joined: Sun Dec 17, 2006 10:30 pm

Re: Manually Switching to Next Parser

Post by admin » Thu Jul 10, 2014 8:13 pm

Hello Omer,

At this time, you can't directly switch to next parser manually. LogMX will try to parse the file with the first defined Parser, then automatically switch to the second if the first one didn't parse any log entry. And so it goes until the last Parser is reached. If it sometimes uses the wrong Parser, you may want to go in menu "Tools", then "Options", "Parsers", and use the following tips:
  1. If the wrong parser is used by LogMX, and if you never use this Parser, you can simply disable it (by clicking on the checkbox in the "Active" column). It will not be selected again by LogMX.
  2. Re-order your parsers: put your most format-constraint parsers on top. For example, if you have a log format X for which all log event fields are separated with the same character, and another format Y for which is field has a different separator, put Y on top of the Parsers list in "Options" > "Parsers".
  3. Before switching to net Parser, LogMX will try to read the N first lines, and the value of N can be configured in "Options" > "Parsers"
But I agree it is not very simple. I've just added a new item in our road-map: a new feature so that you can directly choose the Parser to use in the "Open log file" dialog :wink:

Xavier

obarak
Posts: 10
Joined: Thu Jul 10, 2014 1:26 pm

Re: Manually Switching to Next Parser

Post by obarak » Mon Jul 14, 2014 2:43 pm

Thanks!

Post Reply