Rookout + Graylog
- Start by setting up a Graylog environment. You can use your existing setup, or, for a quick test, you can use the Docker Compose template supplied:
docker-compose up -d
You can access Graylog's management interface on http://localhost:9000 with the
username and password
Add a new input: On the menu bar, go to
System > Inputs. From the dropdown, select the kind of input you would like to set up. Currently, Rookout only supports
GELF UDPand press
Launch new input. Choose a node, a title, and also which port to use. Click
On the Rookout management interface, in the Breakpoints pane, from the "Breakpoint Actions" drop down, select "Create New Template".
Copy the contents of rule.json to the template editor. Note the target parameters on line 38, and the message to log on line 33. You can edit this as you wish, using data from your app (see general documentation).
Select your new template from the "Breakpoint type" drop down, and click next to the line in the code you wish to use this Breakpoint one.
Check that the messages have arrived to your Graylog server.