7.2 Setup Environment
Exercise
Start the Log Generator: In the Test terminal window, navigate to the [WORKSHOP]/7-transform-data
directory and start the appropriate log-gen
script for your system. We want to work with structured JSON logs, so add the -json
flag.
./log-gen.sh -json
The script will begin writing lines to a file named ./quotes.log
, while displaying a single line of output in the console.
Writing logs to quotes.log. Press Ctrl+C to stop.
Start the Gateway: In the Gateway terminal window navigate to the [WORKSHOP]/7-transform-data
directory and run:
../otelcol --config=gateway.yaml
Start the Agent: In the Agent terminal window navigate to the [WORKSHOP]/7-transform-data
directory and run:
../otelcol --config=agent.yaml