How to deploy Graylog on Hidora?
What is Graylog?
Graylog is a powerful open-source application that allows managing and storing logs from different parts of your application. It collects and saves logs in Elasticsearch databases. Graylog is able to receive messages via multiple input protocols like HTTP, UDP, TCP and others. Also it has integration with popular programming languages such as Java, PHP and Node.js.
Thanks to its friendly user interface, you will be able to analyse your different logs from several Hidora environments and to make a dashboard for all nodes. The dashboard can include for example graphs or diagram depending on the critical level of messages, number of messages, source, timestamp, etc.
How to deploy Graylog Server?
You will be able to deploy your Graylog Server on Hidora in only a few minutes.
First, click on Deploy Graylog, then enter your email address and finally click on the link that you receive on your email. Or you can deploy it directly via the Hidora marketplace, in Monitoring section. The installation wizard will send you an email with access credentials to Graylog server and show them at the last step once deployment process is completed.
This article covers a topic on how to configure syslog messages forwarding to Graylog, however, you can analyze much more log types using Graylog.
After the installation of your Graylog Server, you need to configure an input to be able to receive syslog sent by the “agent”.
To create an input, go to your Graylog Server (http://@publicIP:9000), then Systems – Inputs.
For example, select Syslog TCP, choose a title (ex : tcp syslog), set the Bind Address to the private IP of your Graylog Server (ex: 10.102.0.10), set the port to some port which is above of 1024 (ex: 2512).
Next, you need to configure Gralylog agents that will forward syslog messages from your containers to Graylog server.
How to deploy Graylog agent?
Same as the deployment of Graylog server you can click on Deploy agent below, or deploy it via the marketplace of Hidora on Monitoring section.
It will ask you the private IP of your Graylog Server, its port used (ex: 2512), the target Hidora environment and the node type (e.g. MySQL, Tomcat, Nginx, etc.) which should be configured to send logs to Graylog.
Once the agent is deployed, you can browse syslog messages in the Graylog web interface, view graphs, configure notification triggers and install agents to other environments.
Advantages of using Graylog on Hidora
Thanks to the web interface you can get the possibility to have all logs of your different environments in one place. Moreover, you will be able to deploy a complex system in only a few minutes absolutely free. And, more importantly, your environment will be exclusively stored in Switzerland.