These days I am engaged to show real time log on a page when user deploy their apps.but meet some problem.
here is my solution:
1.Using Logstash to drain log from loggregator. my logstash config file is in the end of the email.
2.Invoke Elasticsearch RestAPI to read the most recent log(in 3 seconds) every 3 seconds and show it on a webpage.
The follow is the problem I meet:
1.the logs of [STG] kind never been drained. (I query it bothing using REST API and Kibana).
2.Other kind of logs sometimes not the same with the log I got from CLI(less than CLI,example is in eht end of email).
It seems there are someting wrong with my solution, because the CLI got the right logs.but after searching for days I still don't know where the problem is.
Any kind of advice will be helpful. Because I am a novice to CF.
ps. Please forgive my poor English...