Syslog Configuration on logstash pfSense

(Killmasta93) #1

I was wondering if someone could help me out or guide me.
So I got everything up and running my only issue that when im trying to filter my syslog dashboard (the system logs of pfSense) it shows nothing while on my other dashboard of pfSense firewall it shows everything perfect see pics.
I was wondering on my 10-syslog.conf what could be the issue?

Thank you

(Killmasta93) #2


(Killmasta93) #3

BUMP? anyone? :frowning:

(Killmasta93) #4

So been trying to get the system logs to filter correctly I was getting some help from someone but Cant seem to get it. This is what he told me to do but theres conflict because pfsense is sending the logs at port 5140. Now i guess I was wondering if it could be possible to add a default filter for the 10-syslog.conf instead of using rsyslog?

Thank you

  1. Install Puppet.

  2. Apply this module:

The module will install rsyslog, it is basically only a role
module to apply this module: saz/rsyslog. The config file that will be set up
and used is /etc/rsyslog.d/server.conf. If you start the service sudo
service rsyslog start, it will listen on port 514 for syslog messages. You can
check this by going to the /srv/log/ directory. There should be a file called
messages. It will be created at the moment the first messages are received. If
you open the file, you should see your pfsense syslog messages coming in.

  1. On the same machine install Logstash.

I am using version 1.4, and did this with this module, again
a role module: Parameter
$configfile = 'logstash-syslog-pfsense-02.conf'. In the file you can see that I
use a simple file input, which looks at /srv/log/messages. The results are than
send to Elasticsearch.

  1. Check settings in Kibana. Is your index setting correct.
    I use a non default index name, see the logstash output filter. My queries in
    Kibana look like this:

All events:

tags: "syslog-pfsense" AND program:


tags: "syslog-pfsense" AND action:


tags: "syslog-pfsense" AND action:

Inbound traffic by IP:

tags:"syslog-pfsense" AND direction:
"in" AND action: "pass"

(system) #5