Please open a new thread with the new question with all the details.
You'll need to use filebeat or the elastic agent. I would suggest that you read about those. That's pretty common way to ship logs.
If you're very new to all these concepts, I might just start with filebeat.