Hi,
I Have been trying for many months and no luck on getting this to
work to filter the logs from pfSense and Send them to ELK. I am not
sure where i should be looking at? This is what I have
filter{ if [type] == "OpenVPN_log" { #drop{} grok{ match => { "message" => "%{DAY} %{MONTH} %{MONTHDAY} %{TIME} %{YEAR} %{USERNAME}/%{IP:src_ip}:%{BASE10NUM} TLS: Username/Password authentication succeeded for username '%{USERNAME:username}' [CN SET]"} add_tag => "VPN_Success" } }}
But on ELK it showsing something differnt on the RAW
{ "_index": "logstash-2016.06.08", "_type": "syslog", "_id": "Jo75DVZpR-iVZ6yBmFu2dg", "_score": null, "_source": { "message": "181.137.XXX.XXX:52777 [casa] Peer Connection Initiated with [AF_INET]181.137.XXX.XXX:52777", "@version": "1", "@timestamp": "2016-06-08T22:28:53.000Z", "type": "syslog", "host": "192.168.3.254", "tags": [ "PFSense", "firewall" ], "evtid": "29", "prog": "openvpn[50853]" }, "sort": [ 1465424933000, 1465424933000 ] }
and this
{ "_index": "logstash-2016.06.08", "_type": "syslog", "_id": "KkzovBpTRFS53tIxFYUHmA", "_score": null, "_source": { "message": "user 'casa' authenticated", "@version": "1", "@timestamp": "2016-06-08T22:28:53.000Z", "type": "syslog", "host": "192.168.3.254", "tags": [ "PFSense", "firewall" ], "evtid": "37", "prog": "openvpn" }, "sort": [ 1465424933000, 1465424933000 ] }
Thank you