2 node cluster, 1.4.2 One is the VM from Nagios the other is scratch build on RHEL 7. Both indicate they are running nomally.
I have checked the /usr/local/nagioslogserver/logstash/etc/conf.d/500_filters.conf file and the is there on both systems:
Code: Select all
if [program] == 'apache_access' {
grok {
match => [ 'message', '%{COMBINEDAPACHELOG}']
}
date {
match => [ 'timestamp', 'dd/MMM/yyyy:HH:mm:ss Z' ]
}
mutate {
replace => [ 'type', 'apache_access' ]
convert => [ 'bytes', 'integer' ]
convert => [ 'response', 'integer' ]
}
}
if [program] == 'apache_error' {
grok {
match => [ 'message', '\[(?<timestamp>%{DAY:day} %{MONTH:month} %{MONTHDAY} %{TIME} %{YEAR})\] \[%{WORD:class}\] \[%{WORD:originator} %{IP:clientip}\] %{GREEDYDATA:errmsg}']
}
mutate {
replace => [ 'type', 'apache_error' ]
}
}Code: Select all
133>Sep 15 09:13:59 igarh7webcache01 apache_access: 5.9.6.51 - - [15/Sep/2016:09:13:57 -0400] "GET /legislative/2014/bills/house/1113 HTTP/1.1" 200 9419 "-" "Mozilla/5.0 (compatible; MegaIndex.ru/2.0; +http://megaindex.com/crawler)"Any help would be greatly appreciated.
See-ya
Mitch