I have a single page web application based on a react/redux stack as the frontend and Java (Jetty) server as the backend. All server side logs are written to files and filebeat transfers them to a centralized ELK.
What is the best practice method for sending client (browser) logs to the same centralized ELK?
-------------- EDIT --------------
One possibility is to create a new entry in Nginx which will write the logs and access it from the client. How can I config Nginx to such functionality? (links in comments)