I would recommend logstash. It would be easier to set up, more examples, and they were tested to match each other.
In addition, there are some advantages, in logstash you can filter and modify your logs.
- You can expand the logs with useful data: server name, timestamp, ...
- Role types, string for int, etc. (useful for proper elasticity index)
- Filter logs by some rules
In addition, you can adjust the batch size to optimize savings to elastic. Another feature, if something went wrong and there are crazy logs per second that the elastic cannot handle, you can configure logstash to keep a certain queue of events or delete events that cannot be saved.
Andrew Andrew
source share