[syslog-ng] Adding specific information from Syslog-ng to Redis

johnsc301 at gmail.com johnsc301 at gmail.com
Sat Dec 24 00:17:21 UTC 2016


I am trying to send information from Syslog-ng to Redis. In /etc/syslog-ng/syslog-ng.conf I added this: destination d_redis { redis( host("127.0.0.1") port(6379) command("RPUSH", "sensor_name", "${sensor_name}")); };

I am trying to create a list of variables, hopefully one being timestamp. Here is an example of my syslog that I am trying to pull: http://pastebin.com/Hx5vW4VA
Here's is syslog-ng.conf, for reference: http://pastebin.com/2VQFBNmK
Those are logs being sent from Snort to Syslog-ng through Snort. I want to connect to Redis.
I saw that the command parameters are: comma-separated list of strings ("<redis-command>", "<first-command-parameter>", "<second-command-parameter>", "<third-command-parameter>") from: https://www.balabit.com/documents/syslog-ng-ose-latest-guides/en/syslog-ng-ose-guide-admin/html/reference-destination-redis.html
 I'm assuming I'd say RPUSH <something>... However, I am unsure of how to find the correct parameters.
Specifically, for now, I want to create a list (RPUSH) of timestamps, IP addresses (to and from), and event type (ICMP, for example).
I did find this list of parameters:
https://www.balabit.com/documents/syslog-ng-ose-latest-guides/en/syslog-ng-ose-guide-admin/html/syslog-ng-parameter-index.html
A good first try, I'd like to make a list of timestamps. How can I set the d_redis(command()) within syslog-ng.conf to do this?


Sent from Mail for Windows 10

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.balabit.hu/pipermail/syslog-ng/attachments/20161223/3ee1b6f5/attachment.html>


More information about the syslog-ng mailing list