The following Logsense forwarder image can be used to set up your
fluentd forwarder as Docker container.
The source code can be found in our GitHub repository
It can be run as follow:
$ docker run \ --env "LOGSENSE_TOKEN=your logsense token" \ -p 127.0.0.1:24224:24224 \ logsenseapp/fluentd-forwarder
Please remember to replace the
"your logsense token" string with your token.
It can also be run using Docker Compose with the following yaml file:
version: "3" services: logsense-forwarder: image: logsenseapp/fluentd-forwarder environment: - "LOGSENSE_TOKEN=your logsense token" ports: - "127.0.0.1:24224:24224"
-p 127.0.0.1:24224:24224 will make Docker container to listen on the local interface only.