Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tracecompass-dev] Hello

Hi Florian,

Welcome!

Right now a specific custom parser generates a single event type, which has the name of the custom parser.

For the custom text parser, you can define more than one 'root line' regular expressions. Then each of those can parse it's own fields, some unique and some common. In the end the events will all have the same event type, and the columns (fields) of every event will be a merge of the fields from all lines, and therefore some events can have blanks in some columns. You might have noticed that already.

We have thought about allowing the custom parser wizard to define different event types, either by parsing it as a field from the log (captured in a regex group), or defining it directly with the root line. But this has not made it to the top of our priority list yet. We will see if we can work on that in the near future, this would probably be useful for many users.

As far as I can tell, event types are considered equal if they have the same string 'type id'. So if we update the parser to decouple the type id from the custom parser name, you might be able to use similar event types from different parsers in analyses.

For the null-pointer safety, they might not be valid warnings. We are early adopters of JDT null annotations and external annotations, and sometimes there are JDT glitches. We'd have to see which warnings you get.

Patrick

On Sat, Apr 30, 2016 at 11:11 AM, Florian Mösch <florian@xxxxxxxxxx> wrote:
Hi everyone,

I have just recently started to use Tracecomppass a little more and written a couple of parsers for different kinds of logfiles and some XML analysis configurations to derive e.g. system and alarming states in a pretty nice visual fashion.
Because the logfiles I'm dealing with typically contain all kinds of different events, parsing them with a custom text parser is getting more and more complex and the rules a bit difficult to maintain. It would be very nice if one could generate different event types from one logfile instead of just one type for all events with many different, often unrelated properties. Has that ever been discussed?
I'd like to generate the same kinds of events on the other hand from different parsers for differentl formatted logfiles to be able to use the same state analysis and visualization for different sources of data.
To get around that limitation, I have now started to write my first "real" parser. While doing so, I recognized many null-pointer safety warning during compilation. Many of which seem to be straight forward to fix. Would you be interested in patches for those?

Best regards,
  Florian

BTW: I forgot to introduce myself... I am a software engineer with a medical devices company in northern Germany. Personally, I have been using Linux for ages and always been using Eclipse as my preferred IDE during the last years. I'm writing C/C++ for embedded systems most of the times but am also familiar with Java although I'd prefer other (JVM)-Languages over Java if I'd have to switch from C/C++ to something else.

_______________________________________________
tracecompass-dev mailing list
tracecompass-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tracecompass-dev



Back to the top