OPNsense and Graylog

Started by Sugarfly, March 14, 2017, 10:32:31 AM

Previous topic - Next topic
Hello.

I feel stupid.
My OPNsense is up and running.
I setup a graylog server because I found it hard to work with the logginginterface from the OPNsense. (maybe that is my real problem)
So now my greylog server is getting the logs from the OPNsene but it is impossible to work with that input.

For example my graylog get this input en mass:

2017-03-14 10:19:12.000   filterlog:
filterlog: 57,16777216,,0,em0,match,pass,out,4,0x0,,63,35571,0,DF,17,udp,74, {MY IP} ,8.8.8.8,30480,53,54

but I can't search or filter because this is a single line of data.

Is there anything wrong with the OPNsense sending the data?
Does anyone know wich field is what information?

There is nothing wrong with the log line. There is only one issue in your setup: You are collecting the logs but you are not processing it. As a hint: There is a software called Logstash which can manipulate logging data (for example add field information) and put it into another output like an elastic search server which can be queried by kibana.
Another hint: If you read the Line from left to right, you will find out, that the left are system information and then it will be the data from layer 1 to layer 4. Note that the lines look different in case of IPv6.

March 15, 2017, 09:16:13 PM #2 Last Edit: March 15, 2017, 09:21:08 PM by Nnyan
Soon as I have some time I want to spin up a VM and install an ELK (Elasticsearch, Logstash, and Kibana) Stack on it.  I don't know the differences between greylog and Kibana so I don't know which one would better suit your needs. I was planning on using the Bitnami ELK stack since they have an OVA.

Did you get the Elk stack up and running ?

Just throwing this out there, I developed PFMonitor for just this very reason, it not only captures the data, but indexes it, makes it searchable, and cross-reference able.

https://pfmonitor.com

Member of FBIs Infragard Program
Certified Information Systems Security Officer
Certified Vulnerability Assessor
PFMonitor Remote Management, Backup, & Live Monitoring for PFSense and OPNSense
OPNSense Units: R720XD XL, R720XD XL, R720XD, R720XD, R710, DL360G7, QNAP