I sent raw text as PM to @cdienger as requested previously.
I think time heals all "NLS config errors" or wounds - today the field is gone.
I'm still going to need other help. For example...
I am trying to use a filter of jdbc_static
It installed clean when I did this:
Code: Select all
cd /usr/local/nagioslogserver/logstash
bin/logstash-plugin install logstash-filter-jdbc_static
When I run "bin/logstash-plugin list" it is shown in the list
This is a snip of the filter text, sanitized a little.
Code: Select all
jdbc_static {
loaders => [
{
id => "remote-geoips"
query => "SELECT
startrange, endrange, building,
geoiplongitude, geoiplatitude, geoiplocation,
geoipcity, geoiptime_zone, geoipcontinent_code,
geoipcountry_code3, geoipcountry_code2, geoipcountry_name
FROM mydatabase ORDER BY startrange"
local_table => "local-geoips"
}
]
local_db_objects => [
{
name => "local-geoips"
index_columns => ["startrange"]
columns => [
["startrange", "int(10) unsigned"],
["endrange", "int(10) unsigned"],
["building", "varchar(8)"],
["geoiplongitude", "decimal(11,8)"],
["geoiplatitude", "decimal(10,8)"],
["geoiplocation", "varchar(64)"],
["geoipcity", "varchar(64)"],
["geoiptime_zone", "varchar(64)"],
["geoipcontinent_code", "varchar(2)"],
["geoipcountry_code3", "varchar(3)"],
["geoipcountry_code2", "varchar(2)"],
["geoipcountry_name", "varchar(64)"]
]
}
]
local_lookups => [
{
query => "SELECT
geoiplongitude, geoiplatitude, geoiplocation,
geoipcity, geoiptime_zone, geoipcontinent_code,
geoipcountry_code3, geoipcountry_code2, geoipcountry_name
FROM local-geoips
WHERE :clientipnumber BETWEEN startrange AND endrange"
parameters => {clientipnumber => "[c-ip]"}
target => "sql_geoip"
}
]
staging_directory => "/tmp/logstash/jdbc_static/import_data"
# run loaders every 2 hours
loader_schedule => "* */2 * * *"
jdbc_user => "user"
jdbc_password => "password"
jdbc_driver_class => "com.mysql.jdbc.Driver"
jdbc_driver_library => "/usr/share/java/mysql-connector-java.jar"
jdbc_connection_string => "jdbc:mysql://some-address:3306/DB"
}
When I try to use it I get at the top:
"fetched an invalid config" with lots of red and... at the bottom.
Code: Select all
:reason=>"Couldn't find any filter plugin named 'jdbc_static'. Are you sure this is correct? Trying to load the jdbc_static filter plugin resulted in this error: no such file to load -- logstash/util/loggable", :level=>:error}
I cannot even start to debug my syntax issues until Logserver says it is okay to play with the jdbc stuff.
So, if anyone understands this one I'm all ears. I'm hoping to develop the required filter and test from the command line. Everything I have done from the command line has helped a ton figuring out what I needed to change. This one is nasty though. I see the plugin files installed where all the other plugins are. It just isn't happy.
Please advise.
I can PM the actual config file and describe the process I am using to test, if that helps.
Thanks
Steve B
XI 5.7.3 / Core 4.4.6 / NagVis 1.9.8 / LiveStatus 1.5.0p11 / RRDCached 1.7.0 / Redis 3.2.8 /
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1