I want to build ELK application to track frontend events from my react application. I having two approaches in mind
- Store events in log file using winston package and later push it to logstash and elastic with filebeats
- Directly send the incoming events data to logstash with UDP protocol and later to elastic.
I want to understand which one is the better way to solve this problem. I am little concerned since beats use IO operations to read data, this might affect my server performance.