This utility was designed to generate logs for winston or pino. It can be used to do performance testing of the application log forwarding in agent.
Note: You must have a New Relic license key.
cp env.example .env
Edit the NEW_RELIC_LICENSE_KEY
and NEW_RELIC_APP_NAME
values in .env
, as well as the NEW_RELIC_LOG_LEVEL
if you prefer more detailed logs.
docker compose up --build
In another terminal, you can generate server responses by executing
curl http://localhost:3000/
or
wget -o stdout http://localhost:3000/
Look for your logs in your application in NR One by clicking on the Logs link. You can compare the value returned from the server to the value logged in NR One.