I had to re read the replies over and over to finally get an Idea of what you are saying.
First, I don't have any filters configured to parse syslog messages specifically.
I do have a filter that parses messages from a specific host:
Code: Select all
if [host] == '172.30.100.226' {
grok {
match => { "message" => "result=\"%{WORD:result}\" ip=\"%{IP:IP}\" action=\"%{WORD:action}\" params=\"Username: %{USER:params}\" user=\"%{USER:user}\" tenant=\"%{WORD:tenant}\""}
match => { "message" => "result=\"%{WORD:result}\" ip=\"%{IP:IP}\" action=\"%{WORD:action}\" params=\"Username=%{USER:params}\" user=\"%{USER:user}\" tenant=\"%{WORD:tenant}\""}
}
mutate {
replace => { "Ipaddress" => "%{IP}" }
}
geoip {
database => "/usr/share/GeoIP/GeoLiteCity.dat"
source => "Ipaddress"
}
}
looking over my syslog files I see that I have different types of logs:
Cisco asa:
Code: Select all
<164>Mar 18 2019 15:09:58: %ASA-4-113019: Group = DuoVPN, Username = ywalsh, IP = 64.212.90.254, Session disconnected. Session Type: SSL, Duration: 0h:00m:34s, Bytes xmt: 139896, Bytes rcv: 107255, Reason: User Requested
Centos boxes:
Code: Select all
<133>Apr 11 12:00:51 Lkennagiost02 Nagios_ACCESS: 127.0.0.1 - - [11/Apr/2019:12:00:43 -0400] "POST /nagiosxi/backend/ HTTP/1.1" 200 816 "-" "BinGet/1.00.A (http://www.bin-co.com/php/scripts/load/)"
And my ubuntu 14.x box:
Code: Select all
<14>1 2019-04-11T10:41:33.984187-04:00 vidyoprtl1 java - - - VidyoPortal [audit result="SUCCESS" ip="172.22.23.124" action="Login" params="Username: candreoli" user="candreoli" tenant="Connect" timestamp="Thu Apr 11 10:41:33 EDT 2019"]
The ubuntoi machine is the one that is actually the one I am concerned about the most