Please take a look at this document:TalendHelpCenter:Monitoring ESB Routes (Camel Plugin)
Let us know if it is what you are looking for.
It looks like it gives you metrics. But concretely, how can you track errors and get informations (Body and headers of the error message) about them ? Or how can you look for informations about messages (Body and headers) that go through your routes according to an execution timeframe ?
We use cOnException on all routes to manae exceptions, then a cProcessor to send email with all the usefull data : message body, headers, route name, file or MQ name etc ...
Exceptions car be generated by our route when a data is missing, or java un-handled exceptions, both will be monitored the same way
And if you want to track data ? For instance, you process XML order files through a route and you want to look for a purchase order reference and get the XML of this order.
For this, we use some System.out.println() lines in some cProcessor (or you could write your own custom component to do this), it appears in the Karaf logs with the XML data and the message ID too so you can retrieve all the path of your message.
We use ELK (Elastiic search / Logstatch / Kibana) to search and easiily retrieve into many logs, but it's a bit difficult to set up.