configurations could not be verified
configurations could not be verified
Hi
I have two nodes NLS cluster. when I'm trying to apply a filter, it always fails and saying that "configurations could not be verified". Can you help me to fix it?
Regards
Luke
I have two nodes NLS cluster. when I'm trying to apply a filter, it always fails and saying that "configurations could not be verified". Can you help me to fix it?
Regards
Luke
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: configurations could not be verified
Can you share what you are adding in the new filter?
Re: configurations could not be verified
Hi
Its a very basic filter.
Input:
tcp {
type => 'syslog'
port => 5544
}
Test Filters:
if [type] == "syslog" {
dns {
reverse => [ "host" ]
action => "replace"
}
mutate {
add_tag => [ "syslog" ]
}
}
OR
dns {
reverse => ["host"]
action => ["append"]
add_tag => ["dns"]
}
Regards
Luke.
Its a very basic filter.
Input:
tcp {
type => 'syslog'
port => 5544
}
Test Filters:
if [type] == "syslog" {
dns {
reverse => [ "host" ]
action => "replace"
}
mutate {
add_tag => [ "syslog" ]
}
}
OR
dns {
reverse => ["host"]
action => ["append"]
add_tag => ["dns"]
}
Regards
Luke.
Last edited by lukedevon on Thu Feb 28, 2019 1:44 pm, edited 1 time in total.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: configurations could not be verified
Van you click Verify Configuration and send the error?
Re: configurations could not be verified
Once verified;
Configuration is OK!
However, I just restarted both nodes and now the error has been changed. Please see the attached screenshots.
Br
Luke.
You do not have the required permissions to view the files attached to this post.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: configurations could not be verified
Can you verify crond is running on the server that says it is offline
Code: Select all
service crond status
chage -l nagios
Re: configurations could not be verified
Please find I have attached the screenshots.
Br
Luke.
You do not have the required permissions to view the files attached to this post.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: configurations could not be verified
Can you go to Configure -> Per Instance (Advanced) -> select instance that is failing
Click View -> All Files Combined
And send the whole thing
Thanks
Click View -> All Files Combined
And send the whole thing
Thanks
Re: configurations could not be verified
Hi ,
#
# Logstash Configuration File
# Dynamically created by Nagios Log Server
#
# DO NOT EDIT THIS FILE. IT WILL BE OVERWRITTEN.
#
# Created Fri, 01 Mar 2019 06:42:12 +0800
#
#
# Global inputs
#
input {
tcp {
type => 'syslog'
port => 5544
}
udp {
type => 'syslog'
port => 514
}
}
#
# Local inputs
#
#
# Global filters
#
filter {
dns {
reverse => ["host"]
action => ["append"]
add_tag => ["dns"]
}
}
#
# Local filters
#
#
# Required output for Nagios Log Server
#
output {
elasticsearch {
hosts => ['localhost']
document_type => '%{type}'
workers => 4
}
}
#
# Global outputs
#
output {
}
#
# Local outputs
#
Thank you
Luke.
#
# Logstash Configuration File
# Dynamically created by Nagios Log Server
#
# DO NOT EDIT THIS FILE. IT WILL BE OVERWRITTEN.
#
# Created Fri, 01 Mar 2019 06:42:12 +0800
#
#
# Global inputs
#
input {
tcp {
type => 'syslog'
port => 5544
}
udp {
type => 'syslog'
port => 514
}
}
#
# Local inputs
#
#
# Global filters
#
filter {
dns {
reverse => ["host"]
action => ["append"]
add_tag => ["dns"]
}
}
#
# Local filters
#
#
# Required output for Nagios Log Server
#
output {
elasticsearch {
hosts => ['localhost']
document_type => '%{type}'
workers => 4
}
}
#
# Global outputs
#
output {
}
#
# Local outputs
#
Thank you
Luke.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: configurations could not be verified
That is strange, this does not contain the filter you said you were adding earlier.
Can you post the output of the following
Can you post the output of the following
Code: Select all
ls -al /usr/local/nagioslogserver/logstash/etc/conf.d/
cat /usr/local/nagioslogserver/logstash/etc/conf.d/*
/usr/local/nagioslogserver/logstash/bin/logstash -t /usr/local/nagioslogserver/logstash/etc/conf.d/*.conf