I want to transfer logs from nxlog to AWS S3 using python.

Asked 1 years ago, Updated 1 years ago, 267 views

I would like to collect EC2 (Windows) logs in nxlog and forward them to S3 in AWS.
The knowledge is not circulating much on the Internet, and the following sites were barely available, so I am proceeding with it as a reference.
https://docs.nxlog.co/addons/amazon-s3.html
But I'm struggling because I'm a beginner at IT.

nxlog, python must be installed
1. Install Boto3 2.Edit nxlog.conf
3. Write the logic for the transfer in python and place it where nxlog can access it
4.nxlog Launch

I understand that this is the flow, but I don't understand procedure at all.
I don't know what code to write or where to put it.

If anyone knows a hint, could you please let me know?

python amazon-s3

2022-11-19 01:53

1 Answers

Official Documentation

This add-on can be downloaded from the nxlog-public/contrib repository recording the license and terms specified there.

As you can see, s3_write.py is already provided, and you only need to specify BUCKET and SERVER.


2022-11-19 06:05

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.