I am going to start this blog with a post about the blog itself. In my opinion, simple text files and command line tools is where it’s at, so after some googling, I stumbled about Hexo, and just decided to try it out, because I wanted to get experience with blogging and the accompanying software. Hexo is not actually a complete blogging platform, but simply a static site generator. It takes markdown files, and turns them into nice HTML files with CSS and everything.
This post will detail my setup that uses rsyslog to send JSON-formatted log messages to an ELK stack. The result Let’s start with an overview of what we get in the end: The log structure The setup uses rsyslog to send two different kinds of logs to the logserver: the good old syslog, and logfiles written by applications, for example nginx access logs. Both will be formatted as JSON and sent to the logserver via TCP for further processing.