This scenario demonstrates how to send TCP logs to Alloy within a JSON format. We then use log.process
to parse the logs and extract the fields from the JSON logs. These fields are used to generate labels and structured metadata for the logs.
git clone https://github.com/grafana/alloy-scenarios.git
cd alloy-scenarios/logs-tcp
docker-compose up -d
Open your browser and go to http://localhost:12345
.
Open your browser and go to http://localhost:3000
.