Search found 9 matches

by rodb
Tue Mar 17, 2020 6:19 pm
Forum: Writing a Parser
Topic: Help with JSON parser
Replies: 6
Views: 12387

Re: Help with JSON parser

Hey Xavier

That works a treat - thank you.

Rod
by rodb
Mon Mar 16, 2020 8:47 am
Forum: Writing a Parser
Topic: Help with JSON parser
Replies: 6
Views: 12387

Re: Help with JSON parser

Hey Xavier This actually works pretty well, but is missing capturing the emitter. This is optional, depending on if it's in the message field or not, and always looks like: "m":"[VidyoMediaManager] So in this case, the emitter is VidyoMediaManager . Note, sometimes the message contains [object Objec...
by rodb
Sun Mar 15, 2020 10:42 pm
Forum: Writing a Parser
Topic: Help with JSON parser
Replies: 6
Views: 12387

Re: Help with JSON parser

Hi Xavier Ths log file is from the Sococo application and unfortunately, I can't change it. I could pre-format the log file by formatting it with jsonlint.com but that adds an extra step that I was hoping to avoid, especially if the file is larger. We could also remove the opening and closing square...
by rodb
Fri Mar 13, 2020 7:19 pm
Forum: Writing a Parser
Topic: Help with JSON parser
Replies: 6
Views: 12387

Help with JSON parser

Hello I have tried using the standard JSON parser for the below log file, but it doesn't work. I also tried to create a regex parser, but the problem I think is that the file lacks any newline characters. Logmx picks up the first set of tags, but then logs the rest of the file as the message as if i...
by rodb
Fri Mar 13, 2020 6:34 pm
Forum: Writing a Parser
Topic: Help with multi-line regex parser
Replies: 9
Views: 18878

Re: Help with multi-line regex parser

sorry yes that is a typo. Process ID is usually surrounded by square brackets.
by rodb
Thu Mar 12, 2020 2:31 am
Forum: Writing a Parser
Topic: Help with multi-line regex parser
Replies: 9
Views: 18878

Re: Help with multi-line regex parser

Code: Select all

Task 9032 handler BEGIN
This one is for the message field.

And for the string

Code: Select all

(Request..." after the ErrorCode and ErrorType?:
That needs to be appended to the message (if there is already data in it).

thanks again!

Rod
by rodb
Wed Mar 11, 2020 5:29 pm
Forum: Writing a Parser
Topic: Help with multi-line regex parser
Replies: 9
Views: 18878

Re: Help with multi-line regex parser

Now I have three more questions: 1. How about if the logs can have timestamps done in two different ways? Is it possible to configure a single java parser to cope with this? [10/01/2020 12:57:46.733] [11/Mar/2020 12:08:24] 2. Can I make some fields optional? For example, the errorlevel field is not ...
by rodb
Wed Mar 11, 2020 9:09 am
Forum: Writing a Parser
Topic: Help with multi-line regex parser
Replies: 9
Views: 18878

Re: Help with multi-line regex parser

Thanks so much, this works perfect, and now I have a template to start learning how to make the Java parsers!

best, Rod
by rodb
Tue Mar 10, 2020 1:03 am
Forum: Writing a Parser
Topic: Help with multi-line regex parser
Replies: 9
Views: 18878

Help with multi-line regex parser

Hello I'm evaluating LogMX and I am having trouble with parsing a debug log for Kerio Connect. Sometimes the logs run over two lines, sometimes three, and sometimes four. I can't figure it out with regex and can't find the fields that are supported by Log4j format. Here is a sample of the log: [10/0...