This is POC python code that will subscribe to an OCI flowlog stream and send it to Kentik. It is currently recomended that this be run as a container for ease of use. This can be run as commandline script if the python3 requirements in requirements.txt are installed. All testing done on Ubuntu 22.04.
- Copy config.example.yaml to config.yaml
- Populate all the config variables for Kentik and OCI
- run python3 kentik-oci.py
##installing as a systemd service
- Create config.yaml as seen above
- Edit the kentik.env file and put in your tokens
- Install python(if not installed)
- run "pip install -r requirements.txt" in order to install any required python libraries.
- chmod +x service.sh
- Run ./service.sh
- Check service by running "systemctl status kentik-oci.service"