Example of running Otel collector in an Ubuntu container with a Python app generating logs only.
Logs are sent directly via Otel to Coralogix.
The deployment script reads the config.yaml file when the docker container launches so you can configure it and relaunch the container without having to rebuild it.
- Configure
config.yamlwith your domain and key - Build the container:
source buildcontainer.sh
- Deploy container to generate logs:
source deploy.sh
- Delete running container instance:
source delete.sh
Experiment with various log configs in the config.yaml file and then re-deploy container.