简体   繁体   English

在 ELK (Logstash) 中记录客户端/Javascript 的最佳方式

[英]Best Way to Log Client-Side/Javascript in ELK (Logstash)

We are looking to use ELK for our backend system logging.我们希望将 ELK 用于我们的后端系统日志记录。 I'd also like to log the following:我还想记录以下内容:

  • (Browser) Console tab (浏览器)控制台选项卡
  • (Browser) Network tab (浏览器)网络选项卡
  • User Actions (we use React)用户操作(我们使用 React)

Are there any tools/add-ons/libraries that make this possible?是否有任何工具/附加组件/库使这成为可能?

At the end, you'll need a backend system to store the logged events.最后,您需要一个后端系统来存储记录的事件。 This backend should also be secured.这个后端也应该受到保护。 You can also implement some listeners in your react app and forward the events to a endpoint of your backend in order to (optionally enrich and) forward to ELK.您还可以在 React 应用程序中实现一些侦听器并将事件转发到后端的端点,以便(可选地丰富和)转发到 ELK。

Have a look on this: https://github.com/jamesjara/react-native-remote-logger and https://www.elastic.co/solutions/apm (probably not the only solution out there).看看这个: https : //github.com/jamesjara/react-native-remote-loggerhttps://www.elastic.co/solutions/apm (可能不是唯一的解决方案)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 Redux、React、NextAuth 在登录时调度操作客户端的最佳方式 - Best way to dispatch an action client-side upon Sign In using Redux, React, NextAuth 没有客户端 javascript 的服务器端渲染 - serverside rendering with no client-side javascript 为客户端搜索进行多参数过滤的优雅方式 - Elegant way to do multiple parameter filter for client-side search 有什么方法可以在客户端使用电极confippet配置变量? - Is there any way to use the electrode confippet config variables client-side? 在客户端应用程序中实现 Github OAuth 的正确方法? - Correct way to implement Github OAuth in client-side application? 有没有办法在 React 18 的客户端完成`renderToStaticMarkup` - Is there a way to accomplish `renderToStaticMarkup` on the client-side in React 18 有没有一种安全的方法可以在客户端存储登录凭据等数据? - Is there a secure way to store data like login credentials on client-side? Sinatra和客户端路由 - Sinatra and a client-side routing Next JS:在功能组件中获取仅客户端数据的正确方法 - Next JS: Right way to fetch client-side only data in a Functional Component 有没有办法传输客户端 React 状态/道具来完成后端 express(api 调用) - Is there a way to transfer client-side React state/props to complete a backend express(api call)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM