Log in to your Alooma account and add a "Server Logs" input from the Plumbing page.
Give your input a name, and click Next.
Copy the generated token.
Configure Metricbeat according to the example configuration below. Enter your modules and be sure to use the token from step 3 and add the
messagefield. In our example we're using logstash for the output:
metricbeat.modules: # example modules - module: system [ ... ] - module: apache [ ... ] fields: # The token you receive when creating a new # Server Log input in the Alooma UI token: "<YOUR_TOKEN>" message: "stub" output: logstash: hosts: ["inputs.alooma.com:5044"] ssl: enabled: true
Alooma looks for a "message" field and treats it as the event. Any other fields are treated as the metadata. If the "message" field is missing, the events are discarded as invalid events. For Metricbeat, all the metrics information will be under the
_metadataparent field in Alooma.
You can further customize your Metricbeat client by following the example configuration file in Metricbeat's GitHub repository.
metricbeat -c metricbeat.yml
That's it, you're ready to send events to Alooma. Enjoy!