Depends on how do you want to design your architecture ? There must be many blogposts written about it.
If you really want to use out-of-box feature (palletes, activites) from TIBCO, then move to TIBCO BWCE (Businessworks container edition) or TIBCO BW 6.x :)
It is also possible to do it in BW 5.x by write clients java code, keep some reference client jars.
1) You can use Redis Client (input plugin) ; then you can generate logs to this Redis Client (which normal listens on a tcp port). You need to generate json message, and java logic to call tcp port and send msg. content.
2) you can read from application logs and throw it to the LogStash Elasticsearch cluster.
3) You can read from database and throw it to the LogStask Elasticsearc cluster.