syslog-ng + Kibana

Hi guys.

I've been using stock syslog for years now mostly due to it being in base and not needing extra stuff.
Recently I switched to sysutils/syslog-ng and would like to have this stored in textproc/elasticsearch and visualized in textproc/kibana3.
sysutils/syslog-ng documentation says:

Code:
Note the following limitations when using the syslog-ng OSE elasticsearch destination:
[LIST]
[*]This destination is only supported on the Linux platform.[/LIST]

If this could be done on FreeBSD could someone kindly point me to some easy to follow tutorials.

Regards!
 
Hi,

It is possible to use elasticsearch using the sysutils/syslog-ng port, but only version 1.X is supported and I only tested it once almost a year ago. So, it's not really well tested. You need to build syslog-ng yourself, enable the JAVA option, which needs an active Internet connection, as it downloads many JAR files from Marvel repos. Once that is ready, you will need some hacking about libjvm.so, https://czanik.blogs.balabit.com/2016/03/troubleshooting-java-support-in-syslog-ng/ can give you some hints. And you need to configure syslog-ng, where the documentation can help you.

Good luck!
 
Last edited by a moderator:
Hello

I installed ELK onto our FreeBSD system. It works fine but I'm having an issue with the way kibana handles Number fields.

I declared some fields as float using logstash, but kibana recognises them as '?', and not '#'. Making it impossible to make a usable diagram or data analysis. I tried to address this with the folks of elastic.co but all I get is static.

Does any one have an idea?
 
Last edited by a moderator:
I installed this for a client and remembered this thread. Client already had a complete centralized logging based on syslog-ng. I didn't use the ElasticSearch addon for Syslog-NG, we have a central repository and all servers use the same syslog-ng package.

In syslog-ng.conf I simply defined a destination:
Code:
destination d_logstash { tcp("127.0.0.1" port(9999)); };
And added an additional log line:
Code:
log { source(s_central); destination(central); };

Then for logstash.conf you need to create something that will accept the logs:
Code:
input {
  tcp {
    mode => server
    port => 9999
    type => "syslog-relay"
  }
}
The rest of the configuration of Logstash, ElasticSearch and Kibana is pretty much standard.
 
  • Thanks
Reactions: Oko
Back
Top