Files
robot-shop/fluentd/Docker-Compose
Steve Waterworth 4c5903048c fix perms
2021-05-12 09:53:13 +01:00
..
2021-03-19 10:17:14 +00:00
2021-03-19 10:50:34 +00:00
2021-05-12 09:53:13 +01:00

Configuration

Edit fluent.conf setting the parameters to match either your Humio account or Elasticsearch instance. See the fluentd documentation and/or Humio documentation for details.

Start fluentd in a Docker container using the run.sh script.

Docker Compose

To have all the containers in Stan's Robot Shop use fluentd for logging, the docker-compose.yaml needs to be edited. Change the logging section at the top of the file.

services:
  mongodb:
    build:
      context: mongo
    image: ${REPO}/rs-mongodb:${TAG}
    networks:
      - robto-shop
    logging: &logging
      driver: "fluentd"
      options:
        fluentd-address: localhost:24224
        tag: "{{.ImageName}}"
  redis:

If Robot Shop is already running, shut it down docker-compose down

Start Robot Shop with docker-compose up -d. It takes a few minutes to start, after that check with Humio or ELK for log entries.

Set up logging integration in Instana.