| With the development of distributed computing, hardware virtualization technology as well as the development of massive data computation and storage requirements, the cloud computing technology is widely used in industry. PaaS (Platform as a Service) is a service provided in the form of cloud computing, Cloud Foundry is one of the popular PaaS platform for the industry, which can provide elastic and reliable computing, storage and network resources. Developers can develop and deploy applications in the platform rapidly.Applications deployed on Cloud Foundry will generate log during running, the contents of the log records the user access behavior and browsing history, application program running state information, the application of abnormal situation etc..However,the application log processing work of Cloud Foundry is relatively lack, when the application is restarted, the application log data will be lost which is the basis of the application debugging and performance optimization and the deep processing of the application log data plans can’t be realized; applications runs in the cloud, the running environment of the application is transparent to developer, application developers can’t manage and use their application log conveniently; there are a lot of applications in the cloud and these applications will generate massive logs,Cloud Foundry doesn’t store these logs and cann’t find target history logs quickly.The proposed Cloud Foundry platform application log retrieval service mainly includes the following aspects of work:design and implement LogService Node to gather, transmit, store,index and retrieve application logs; design and implement LogService Broker to provide the service interface for LogService instances management; Do some experiments to verify the availability and rationality of each module and the entire log retrieval service.This paper solves the problem of history logs loss after restarting the application, stores and indexes massive application log and provides interfaces for user to retrieve log by keyword and time interval, which provides useful information for developer user debugging and performance tuning for cloud applications.Meanwhile,the log service can provide log data source for data mining and analysis,which follows the PaaS service standards and is a reference and guidance to integrating services and PaaS improvement. |