Search code examples
log4japache-chainsaw

Apache Chainsaw read in user defined properties


I'm using the snapshot version of apache chainsaw http://people.apache.org/~sdeboy and I just need to read in a text log file. It works fine when I'm reading in keyword columns ex: LEVEL, MESSAGE ect... but when I want to add in a user defined column, it doesn't work.

To read in the text file, I use TIMESTAMP: LOGGER: LEVEL : MESSAGE : PROP(TIER) as my log format where tier is my user defined property.


Solution

  • User-specified properties via PROP work fine in general - I'm pretty sure the issue is that the MESSAGE field is not the last field in your log format.

    Can you reformat your log format to make MESSAGE the last field?

    If you can't, I'd try replacing the MESSAGE entry in your log format with a user-defined property like PROP(TEXT).

    Either option may work for you.