configurations could not be verified

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
lukedevon
Posts: 143
Joined: Sat Mar 24, 2018 9:15 am

configurations could not be verified

Post by lukedevon »

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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: configurations could not be verified

Post by scottwilkerson »

Can you share what you are adding in the new filter?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
lukedevon
Posts: 143
Joined: Sat Mar 24, 2018 9:15 am

Re: configurations could not be verified

Post by lukedevon »

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.
Last edited by lukedevon on Thu Feb 28, 2019 1:44 pm, edited 1 time in total.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: configurations could not be verified

Post by scottwilkerson »

Van you click Verify Configuration and send the error?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
lukedevon
Posts: 143
Joined: Sat Mar 24, 2018 9:15 am

Re: configurations could not be verified

Post by lukedevon »

offline.png
new error.png
hi

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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: configurations could not be verified

Post by scottwilkerson »

Can you verify crond is running on the server that says it is offline

Code: Select all

service crond status
chage -l nagios
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
lukedevon
Posts: 143
Joined: Sat Mar 24, 2018 9:15 am

Re: configurations could not be verified

Post by lukedevon »

1.png
Hi


Please find I have attached the screenshots.

Br
Luke.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: configurations could not be verified

Post by scottwilkerson »

Can you go to Configure -> Per Instance (Advanced) -> select instance that is failing
Click View -> All Files Combined

And send the whole thing

Thanks
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
lukedevon
Posts: 143
Joined: Sat Mar 24, 2018 9:15 am

Re: configurations could not be verified

Post by lukedevon »

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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: configurations could not be verified

Post by scottwilkerson »

That is strange, this does not contain the filter you said you were adding earlier.

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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked