简体   繁体   中英

How to collect access logs from different nodes?

We have a lot of nodes (about 18) on Production, and it is necessary to find out if the specific user made requests from the mobile app (access logs have this info).

SAP Hybris doesn't store such info in the database, so it is necessary to search the logs. Each node has a file like log/tomcat/access.2018-11-22.log . It would be unreasonable to check each file manually.

Maybe there is a well-known solution for the situations like this?

有第三方解决方案,例如Splunk和ELK,它们将从日志文件中收集数据。

Take a look on it

Its a ELK stack, very common and easy to use in production

If you want to use a tool then i would recommend to use Splunk else you can log request in database as per the requirements.

If you can share the requirements in detail then i am happy to help you providing better solution.

We are developing micro service projects and have about 20 services. All the services connect to ELK(Elastic search,Logstash,Kibana) . We are viewing all the log though Kibana.It is very easy make queries to search what we want.

如果您有兴趣,Hybris帮助还提供了有关如何在具有集中式日志记录功能的Docker容器中设置B2C加速器的指南: https : //help.hybris.com/1808/hcd/af36215ea1e34c22a1e3cbb2d550f733.html

Use ELK - elasticsearch logstash and kibana stack with filebeat. Filebeat -will share the log file content with logstash Logstash-will scan, filter and share the needed content to elastic search Elasticsearch- will work as a db, store the content from logstash in json format as documents. Kibana- with kibana you can search the required info. Also you can plot graphs and other visuals with the relevant data.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM